Instagram authorization scope doesn't work

寵の児 提交于 2019-11-30 19:08:52

问题


There are some questions about setting scope for Instagram authorization API, but after spending the whole day, I still can't figure out what is wrong :(

Here is my code:

var url = string.Format("https://api.instagram.com/oauth/authorize/?client_id={0}&redirect_uri={1}&response_type=code&scope=likes+relationships", clientId, redirectUrl);

return Redirect(url);

I have added likes and relationships scopes to the URL. But, when user logs in, Instagram asks only for Basics and Follow/Unfollow permissions without likes. So I am not able to like on behalf of the user whatever I do.

Any help is very much appreciated.


回答1:


Even though you are adding scope as likes+relationships, instagram will give you basic permissions only. Instagram does not give you the permission to update relationship, post like and comments until you submit the app for review. With basic permissions you can view the people who liked your posts but you can not make like or comment to a post and can not update relationship status like follow/unfollow/block/unblock/ignore. For more details on submitting you app refer this https://help.instagram.com/contact/185819881608116



来源:https://stackoverflow.com/questions/30004784/instagram-authorization-scope-doesnt-work

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