I'm having an issues with the new API policy of Instagram I already got my app approved and got basic permissions
When using the app on sandbox mode I can get API response only for my own user, however when I move to Live Mode and try using the API all I receive is error 400 code
For example https://api.instagram.com/v1/users/search?access_token=MY-TOKEN&count=6&q=world
Response
{ meta: { error_type: "OAuthPermissionsException", code: 400, error_message: "This client has not been approved to access this resource." } }
Even using the same API with my own username still getting the same error
I was trying to search on it but all I can find is the same error happens to unauthorized users
Any idea ?
I have fixed the This client has not been approved to access this resource
Issue by Authorizing the Instagram public_content
scope by visiting the following URL and clicking Authorize.
https://api.instagram.com/oauth/authorize/?client_id=[YOUR_CLIENT_ID]&redirect_uri=[YOUR_REDIRECT_URI]&scope=public_content&response_type=token
Hope this helps someone else.
~Surjith
I found the reason, I can't use that endpoint because I have only permission for basic. for more information https://www.instagram.com/developer/endpoints/users/
来源:https://stackoverflow.com/questions/37627286/instagram-api-oauthpermissionsexception-live-mode