Adding scopes to instagram app?

[亡魂溺海] 提交于 2019-12-07 02:01:13

问题


I am trying to give my app the ability to use other scopes besides the basic permissions, but when I try it with other scopes I get the following error:

Something went wrong :(stdClass Object ( [meta] => stdClass Object ( [error_type] => OAuthPermissionsException [code] => 400 [error_message] => This request requires scope=likes, but this access token is not authorized with this scope. The user must re-authorize your application with scope=likes to be granted write permissions. ) )

The problem is that when I try to re-authorize the user nothing happens. So I went to the documentation again and it says:

Note that in order to use these extended permissions, first you need to submit your app for review

But there is nowhere in the developer website where I can see a any submit app link.

Does anyone has any idea how to proceed? And help will be appreciated, Thanks


回答1:


Your login URL must be like :

https://api.instagram.com/oauth/authorize?client_id=xxxxxx&redirect_uri=zzzzzz&scope=basic+likes+comments+relationships

where xxxxxx is your client_id and zzzzzz is your redirect_uri that you had defined in your application ;)

Hope i helped ^^




回答2:


I just found the answer. It looks like the changed the mechanism. Existing apps are fine till april 28 2015 after that all apps will have to follow new rules here:

http://developers.instagram.com/post/116410697261/publishing-guidelines-and-signed-requests



来源:https://stackoverflow.com/questions/29707126/adding-scopes-to-instagram-app

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