Instagram 不显示媒体的所有评论

Instagram does not show all comments of a media

我正在使用 Instagram API 在我的网站上获取用户媒体评论。 我使用此端点获取特定媒体的评论:

https://api.instagram.com/v1/media/{media_id}/comments?access_token={media_owner_access_token}

变量:

{media_id} 是 Instagram 给我的媒体 Instagram Id,就像:

1250190150128742954_182781845

{media_owner_access_token} 是媒体所有者的访问令牌,当用户在我的网站 Instagram 注册时给我它,就像:

9857164750.81d09db.20b41a2a356d6442bav22d340a55e1f5g

当我尝试获取用户特定媒体的媒体评论时,它只会给我媒体所有者的评论,但该媒体也包含其他人的评论!

这就是 Instagram API 的工作方式吗?或者我在这里犯了一个错误? 作为记录,我处于沙盒模式而不是 live 这可能是我的问题的原因!?

I am in sandbox mode not live can it be cause of my problem!?

是的。在沙盒模式下,API 只会 return 来自受邀加入您的沙盒的用户的数据。

来自 Instagram API 文档:

To help you develop and test your app, the users and media available in Sandbox mode are real Instagram data (i.e. what is normally visible in the Instagram app), but with the following conditions:

  • Apps in sandbox are restricted to 10 users
  • Data is restricted to the 10 users and the 20 most recent media from each of those users
  • Reduced API rate limits

您需要让您的应用获得正式使用批准,并在生成令牌时请求适当的范围。

有关详细信息,请参阅 https://www.instagram.com/developer/sandbox/