Instagram关系(POST)API在iOS应用中不起作用

问题描述:

我正在使用Instagram API开发iOS iPhone应用程序,其中用户允许使用Instagram Relationship API跟踪另一个用户帐户,并且此API请求总是出现错误:

I'm developing an iOS iPhone app using Instagram API, in which user allow to follow another user account using Instagram Relationship API and I'm always getting an error for this API request:

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进行请求:

When I'm authorized with scope at the time of login I use the URL below for the request:

但是令我惊讶的是,用户只要求访问基本信息权限,而不是关系,评论或类似内容.

But I am surprise that users ask for access only basic info permission not relationship ,comments or like.

请参考以下屏幕截图:

我无法确定是否已被授予使用Instagram Relationship API的特权;我怎么可能检查呢?

I can't tell whether I've been granted the privilege or not to consume the Instagram Relationship API; how can I possibly check that?

还有,我在做什么错,我该如何解决?

Also, what am I doing wrong and how can I resolve it?

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

Once approved you will see the permission in the authorization screen, like this:

Follow/Unfollow other users