Instagram Api和包python Instagram change scope

Instagram Api和包python Instagram change scope,python,api,scope,instagram,instagram-api,Python,Api,Scope,Instagram,Instagram Api,我使用了python instagram,我想更改范围,但使用包python instagram我不知道如何更改?我看到了代码,但我找不到我们可以在哪里更改它 我需要更改添加“关系”范围的范围,因为我有一个错误: 错误:(400)OAuthPermissionsException此请求需要scope=relationships,但此访问令牌未经此授权 范围用户必须使用重新授权您的应用程序 范围=要授予写入权限的关系 当您授权应用程序并获取访问令牌时,需要声明作用域。您可以通过创建如下URL来授权

我使用了
python instagram
,我想更改范围,但使用包
python instagram
我不知道如何更改?我看到了代码,但我找不到我们可以在哪里更改它

我需要更改添加“关系”范围的范围,因为我有一个错误:

错误:(400)OAuthPermissionsException此请求需要scope=relationships,但此访问令牌未经此授权 范围用户必须使用重新授权您的应用程序 范围=要授予写入权限的关系


当您授权应用程序并获取访问令牌时,需要声明作用域。您可以通过创建如下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参数中传入scope

您需要向Instagram申请许可才能使用这些范围:关系、评论和喜好。这是必须填写的表格链接,以便提交您的许可申请


希望你得到你想要的。

2015年11月17日之后,Instagram中的许多权限都受到了严格限制。您必须提交权限请求才能获得该范围。请参阅以下链接:


我收到了这个错误,
{“code”:400,“error\u type”:“OAuthException”,“error\u message”:“您必须包含有效的客户端id、响应类型和重定向\u uri参数”}
这是我使用的链接:
https://instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize?scope=public_content&redirect_uri=http://localhost&response_type=code&client_id={client id}
我可以保证客户端id是有效的。