Instagram 关系 (POST) api 在 iOS 应用程序中不起作用

Instagram relationship (POST) api is not working in iOS app

我正在使用 Instagram API 开发一个 iOS iPhone 应用程序,其中用户允许使用 Instagram 关系 API 关注另一个用户帐户,我是总是收到此 API 请求的错误:

API 请求:

https://api.instagram.com/v1/users/157xxxx469/relationship?access_token=169527xxxx.f71bc56.fb2a414a0ee7469ca381a3659f5cxxxx

收到回复:

{
  "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 请求:

https://api.instagram.com/oauth/authorize/?client_id=56a6xxxx6a8b41f288477fxxxxea253e&redirect_uri=http://localhost:8888/MAMP/&response_type=token&scope=likes+comments+relationships

但令我惊讶的是,用户只要求访问基本信息权限,而不是关系、评论或喜欢。

请参考以下截图:

我不知道我是否被授予使用 Instagram 关系的特权API;我怎么可能检查呢?

另外,我做错了什么,我该如何解决?

一旦获得批准,您将在授权屏幕中看到权限,如下所示:

Follow/Unfollow other users