Instagram Api与PythonStagram change scop包

2024-10-01 02:40:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用了python-instagram并且我想更改范围,但是对于包python-instagram我不知道怎么做?我看到了密码,但我找不到可以更改的地方?在

我需要更改add“relationship”作用域的范围,因为我有一个错误:

ERROR: (400) OAuthPermissionsException-This request requires scope=relationships, but this access token is not authorized with this scope. The user must re-authorize your application with scope=relationships to be granted write permissions.


Tags: add密码request地方错误witherrorthis
3条回答

你需要向Instagram申请权限才能使用这些范围:关系、评论和喜欢。这是一个链接到表格必须填写才能提交您的许可申请。在

https://help.instagram.com/contact/185819881608116

希望你得到你想要的。在

2015年11月17日之后,Instagram的很多权限都受到了很大的限制。您必须提交一个请求以获得该范围的许可。请参考以下链接:

授权应用程序并获取访问令牌时,需要声明作用域。您可以通过创建如下URL来授权您的app/get令牌:

https://instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize?scope={relationships comments likes}&redirect_uri={redirect uri}&response_type=code&client_id={client id}

只需在scope参数中传入作用域。在

相关问题 更多 >