Instagram API. "Unable to reach callback url"

Ok guys, here is the setup. I am developing a site for the festival and should use the Instragram API. The client would like to automatically upload images from Instagram that use a specific hashtag. There is no problem, the instagram API supports this function and many others.

But when I try to make a subscription (via the cURL send operation), I get an error message that my callback-url is unavailable. But it is achievable. I can not resort to it through the browser without problems.

My cURL operation is as follows:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, count($postData));
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
$result = curl_exec($ch);       
curl_close($ch);    

and this is the answer that I get after completing the above operation:

{"meta": {"error_type": "APISubscriptionError", "code": 400, "error_message": "Failed to get the callback URL \" ... myUrl ... \ "." }}

Any online instagram guru who knows what I'm doing wrong?

Note. I tried to subscribe in my reverse / url / api file as well as in a separate php file.

+5
source share
1 answer

If you use your home computer to develop it, make sure that the callback URL you provided to instagram servers can be reached (from the side)

, (, )
( )

+1

All Articles