Answer the question
In order to leave comments, you need to log in
Why does an error appear when authorizing in the instagram API?
I can not understand why when accessing the instagram API an error is returned?
I created an application on https://developers.facebook.com/ and generated a token according to the instructions
https://nikolaus.by/blog/integratsii/kak-poluchit-...
My request: https://api.instagram.com /v1/users/search?q=[USERN... TOKEN]
where in USERNAME I specify my name which I take from the user profile
In access_token I specify my token which was received when registering the application in the section for developers https://developers .facebook.com/ which is generated by clicking on the Generate Token button
When I make a request, the following code is returned:
{"meta": {"code": 400, "error_type": "OAuthAccessTokenException", "error_message": "The access_token provided is invalid."}}
Answer the question
In order to leave comments, you need to log in
Because this is a short-term token and it is valid only for 1 hour. Create a token and exchange it for a long-term one and try again. Read more here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question