instagram api OAuthPermissionsException live mode

馋奶兔 提交于 2019-12-06 03:27:42

问题


I'm having an issues with the new API policy of Instagram I already got my app approved and got basic permissions

IG API 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 ?


回答1:


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




回答2:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!