graph.instagram.com 无法获取 Followers_count

问题描述 投票:0回答:1

切换到 Instagram Basic Display 和 Instagram Graph API 并遇到问题。我已通过 Facebook Developer 设置了该应用程序,并收到了我的 access_token。当我尝试访问 follower_count 字段时,我得到...

{"error":{"message":"Tried accessing nonexisting field (followers_count) on node type (User)","type":"IGApiException","code":100,"fbtrace_id":"AqHi-QNsUvlSuExA6GOp5A9"}}

但对于某些项目,我得到了结果。我可以接收“id”、“用户名”、“media_count”、“ig_id”。

我觉得这是权限,但不确定要寻找什么?

不起作用:

curl -i -X GET 'https://graph.instagram.com/me/?fields=followers_count&access_token=REMOVED'

有效的示例:

curl -i -X GET 'https://graph.instagram.com/me/?fields=media_count&access_token=REMOVED'
php curl instagram instagram-graph-api
1个回答
0
投票

Basic Display API 的定义中没有字段,您可以在此处参考 https://developers.facebook.com/docs/instagram-basic-display-api/reference/user#fields

您需要使用Instagram Graph API

followers_count
follows_count
仅在 Instagram Graph API 中可用。 它正在按预期工作,请参阅下面的邮递员屏幕截图:- enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.