使用来自Instagram API的正确访问令牌清空成功响应 [英] Empty success response with a correct access token from 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/自我/关注吗?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开发人员并使用您的开发人员帐户登录
- 点击管理客户端
- 单击要添加沙箱用户的应用程序的编辑"按钮.
- 单击沙箱"选项卡,然后输入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屋!