带有来自 Instagram API 的正确访问令牌的空成功响应 [英] Empty success response with a correct access token from Instagram API

查看:26
本文介绍了带有来自 Instagram API 的正确访问令牌的空成功响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取用户的关注者,但收到了空响应.有人知道怎么回事吗?

I'm trying to get the user's followers, but I receive an empty response. Does anyone know what's wrong?

https://api.instagram.com/v1/users/self/follows?access_token=XXXXXX

{"pagination":{},"meta":{"code":200},"data":[]}

谢谢

推荐答案

原因可能是您处于沙盒模式.Instagram API 在沙盒模式下的行为有所不同.其中一种不同行为是用户对 Instagram 和/或其数据集访问的筛选/可见性.

The reason maybe you are in sandbox mode. Instagram APIs behave differently in Sandbox mode. One of those different behaviors is the screening / visibility of users on Instagram and / or their data set access.

以下是添加沙盒用户的方法:

So here's how you add a Sandbox user:

  • 转到Instagram 开发者并使用您的开发者帐户登录
  • 点击管理客户
  • 点击您要添加沙盒用户的应用的编辑"按钮.
  • 点击 Sandbox 选项卡并输入 Instagram 用户的用户名/电子邮件 ID,然后按 Enter
  • 点击保存更改
  • Go to Instagram Developer and login with your developer account
  • Click on Manage clients
  • Click on the Edit button for the app you want to add Sandbox users.
  • Click on Sandbox tab and enter the username / email id of an Instagram user and press enter
  • Click on Save Changes

关于沙盒概念的几点注意事项:

Regarding the Sandbox concept few things to note:

  • 每个应用只能添加 20 个用户
  • 任何用户都可以成为最多 5 个应用的沙盒用户.
  • 沙盒模式下只能拉取属于沙盒用户的近期数据

有关更多详细信息,请查看此答案 逐案解释了该概念或了解更多详情,请查看 沙盒 Instagram 文档

For more details, check out this answer which explains the concept in a case by case basis or for more details, check out Sandbox Instagram Documentation

希望有帮助!

这篇关于带有来自 Instagram API 的正确访问令牌的空成功响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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