我正在使用 Instagram API 开发一个 iOS iPhone 应用程序,其中用户允许使用 Instagram 关系 API 关注另一个用户帐户,但我总是收到此 API 请求的错误:
API请求:
收到回复:
{
"meta": {
"error_type": "OAuthPermissionsException",
"code": 400,
"error_message": "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."
}
}
当我在登录时获得范围授权时,我使用以下 URL 进行请求:
但令我惊讶的是,用户只要求访问基本信息权限,而不是关系、评论或喜欢。
请参考以下截图:
我无法判断我是否被授予使用 Instagram 关系 API 的权限;我怎样才能检查呢?
另外,我做错了什么以及如何解决?
一旦获得批准,您将在授权屏幕中看到权限,如下所示:
Follow/Unfollow other users