Been experimenting with the instagram-ruby-gem on and off for a few
days – no matter what I do, when a try to create a realtime
subscription, I get https://api.instagram.com/v1/subscriptions.json:
400: Unable to reach callback URL – I can always reach the URL with a
web browser and I’ve tried exposing the url with both localtunnel and heroku with no
success.
Are there other issues that will produce this same error message? Any
other ideas?
def sub
client = Instagram.client
client.create_subscription(
:object => 'tag',
:callback_url => root_url,
:aspect => "media",
:object_id => "pizza"
)
end
I had the same problem.
Seems that instagram doesn’t reach the URLs that returns a blank page.
In my case, the script that receives the call had a syntax error and, with
error_reporting=off, gives back an empty page. Once I’ve fixed the script, instagram starts to reach the URL.