Answer the question
In order to leave comments, you need to log in
Why does a 400 error occur when interacting with the Instagram API?
Wrote a small application using the Instagram API. Tested on a local server, everything works fine, and after uploading to the hosting, when trying to comment, like, Instagram API returns an error 400:
{meta: {error_type:APINotAllowedError, code:400, error_message:you cannot like this media}}
Question - why is this happening: everything works on the local, but not on the hosting?
Answer the question
In order to leave comments, you need to log in
As it turned out, the problem was the geolocation of the server. Changed the host - everything worked.
But it turned out that it is even better to use JSONP :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question