5

I'm using the Instagram API.

I'm trying a simple post for a subscription request, and I keep getting

"Invalid format for 'callback_url'. URL must start with http:// or https://".

It clearly starts with that.

I can't find anyone online that's running into this same problem.

Tried the post with a clear callback url:

http://api.instagram.com/v1/subscriptions/?client_id={client_id}&client_secret={secret}&object=tag&aspect=media&object_id=skateboarding&callback_url=http://skateparkoftampa.com/spot/instagram_callback.aspx

And with an HTML encoded callback URL:

http://api.instagram.com/v1/subscriptions/?client_id={client_id}&client_secret={secret}&object=tag&aspect=media&object_id=skateboarding&callback_url=http%3A%2F%2Fskateparkoftampa.com%2Fspot%2Finstagram_callback.aspx

Also tried it with both GET and POST, also by letting the API console create the request by simply filling in the parameters fields, etc. I feel like I'm missing something really obvious or something, but I'm stuck. Any ideas?

Adam Azad
  • 10,675
  • 5
  • 25
  • 63
  • Ever get to the bottom of this? – Tom Hall Oct 30 '13 at 20:09
  • @TomHall - Did you have any resolution on this? – NullException Dec 06 '13 at 05:29
  • 1
    @dt1369 I did get it working in the end. I used the Instagram API Console (https://apigee.com/console/instagram) to keep on trying until it worked. I'm pretty sure one of my problems was that I wasn't returning the correct value when the call was made... Good luck! – Tom Hall Dec 09 '13 at 09:55
  • possible duplicate of [Invalid format for callback url - Instagram API and python requests library](http://stackoverflow.com/questions/19552551/invalid-format-for-callback-url-instagram-api-and-python-requests-library) – Paul Sweatte Sep 04 '14 at 19:46

1 Answers1

0

As sais on Endpoints page:

All endpoints are only accessible via https

You should use your own CLIENT-ID and SECRET-ID and callback url (so don't use API console).

Your callback url may be without https.

Just use link with https:

https://api.instagram.com/v1/subscriptions/

Try examples from this page

You should use POST request to subscribe and unsubscribe, and GET to get list of subscriptions. Please, read documentation accurately.

Josh Crozier
  • 202,159
  • 50
  • 343
  • 273
CnapoB
  • 657
  • 1
  • 9
  • 16