可以在沙盒中使用Instagram标签/xxx/media/recent endpoint



我试图在sandbox中使用Instagram API上的这个端点:

https://api.instagram.com/v1/tags/<NAME>/media/recent?access_token=<TOKEN>

但是它返回:

{"pagination": {"deprecation_warning": "next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead"}, "meta": {"code": 200}, "data": []}

所以我试了:

https://api.instagram.com/v1/tags/brasilbest/media/recent?access_token=3942609881.87c85c5.9823c28375544c5395f83db9c01a12f8&min_tag_id=0&max_tag_id=10

返回:

{"meta": {"error_type": "APIInvalidParametersError", "code": 400, "error_message": "max_id must not be a media id."}}

我尝试只使用max_tag_id和min_tag_id,我也尝试了max_tag_id和min_tag_id的不同值。

我的问题是如何在该请求中使用max_tag_id和min_tag_id,如果有可能获得最近的媒体,而我的应用程序在沙箱中?

当我使用

https://api.instagram.com/v1/tags/search?q=google&access_token=<TOKEN>

或:

https://api.instagram.com/v1/tags/google?access_token=3942609881.87c85c5.9823c28375544c5395f83db9c01a12f8

它的工作原理。但是v1/tags/google/media/recent没有

您只能在沙盒模式下获得20个帖子,并且只会在API响应中显示您和沙盒用户的帖子。

如果你添加了带有标签的照片,那么API响应将只有你的照片,如果没有,它将是空的。

一旦你从沙盒上线,你就会得到所有的帖子。

max_tag_id和min_tag_id将不能在沙盒模式下工作,因为它仅限于最近的20个帖子。

当您处于沙盒模式时,API的行为与当你的应用是实时的,但有以下限制:

  • 数据仅限于沙盒用户和每个沙盒用户最近的20个媒体
  • 降低API速率限制

最新更新