ios - 通过Instagram API发布时出现APINotAllowedError

标签 ios api instagram

Instagram API中似乎存在一个错误。当我发布要求喜欢媒体的请求时,我得到以下答复。

{
  "meta":  {
    "error_type": "APINotAllowedError",
    "code": 400,
    "error_message": "you cannot like this media"
  }
}

我的代码以前运行良好。但是现在不起作用。我还在Instagram网站的API Console上测试了LIKE api。 Instagram网站上的API控制台也返回相同的输出。有人可以调查这个问题对我有帮助吗?

这是我通过Instagram网站上的API控制台发送的示例请求。
POST /v1/media/742359403607622196/likes?access_token=1141855090.1fb234f.1073806ddd2c46d2bbfb3259b1a5ef1c HTTP/1.1
X-HostCommonName: api.instagram.com
Host: api.instagram.com
Content-Length: 0
X-Target-URI: https://api.instagram.com
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Connection: Keep-Alive

最佳答案

尝试为您的应用程序使用另一个Instagram帐户。

我收到了与“400”错误相同的问题。我会假设每秒或每分钟的通话次数没有记录,因为尝试多线程喜欢发帖后开始出现“400”错误。

但就我而言,同一个功能可以与另一个帐户的access_token完美配合使用(我只是减少了线程数量,并为func增加了一些延迟)。

关于ios - 通过Instagram API发布时出现APINotAllowedError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24257557/

相关文章:

ios - 使用 Swift (LinkedIn API) 将 JSON 响应解析为数据模型

ios - UICollectionView - 仅在需要时注册 Nib

ios - 为 collectionview 重新加载数据

c# - 将两个不同的 JSON 对象 FromBody 传递到 Controller

1 个模型的 django-rest-framework 多个序列化程序?

api - Instagram 实时从回调中获取帖子

ios - 如何区分为 `UIDocumentInteractionController` "Open in"菜单选择的 Action

oauth-2.0 - 获取Instagram的页面信息

ios - 嵌套在 Objective-C 中的每个循环

api - Magento 2 Rest Api 在产品更新时过于频繁地清除缓存