Instagram关系(POST)API在iOS应用中不起作用 [英] Instagram relationship (POST) api is not working in iOS app

查看:143
本文介绍了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

这篇关于Instagram关系(POST)API在iOS应用中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆