L
L
Leonid Fedotov2014-01-14 17:47:50
API
Leonid Fedotov, 2014-01-14 17:47:50

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

2 answer(s)
L
Leonid Fedotov, 2014-01-16
@iLeonidze

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 :)

A
Alexander Zelenin, 2014-01-14
@zelenin

Did you get a new token or are you using the old one?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question