问题描述
关于设置Instagram授权API的范围有一些问题,但花了一整天后,我仍然无法弄清楚哪里出了问题:(
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 :(
这是我的代码:
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);
我已将 likes
和 relationships
范围添加到 URL.但是,当用户登录时,Instagram 只要求 Basics
和 Follow/Unfollow
权限,没有 likes
.所以无论我做什么,我都无法代表用户点赞.
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.
非常感谢任何帮助.
推荐答案
即使您将范围添加为喜欢+关系,instagram 也只会给您基本权限.在您提交应用程序以供审核之前,Instagram 不会授予您更新关系、发布赞和评论的权限.使用基本权限,您可以查看喜欢您帖子的人,但您不能对帖子点赞或评论,也不能更新关系状态,例如关注/取消关注/阻止/取消阻止/忽略.有关提交您的应用程序的更多详细信息,请参阅此 https://help.instagram.com/contact/185819881608116
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
这篇关于Instagram 授权范围不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!