【问题标题】:Is possible to use Instagram tags/xxx/media/recent endpoint in sandbox?是否可以在沙盒中使用 Instagram 标签/xxx/媒体/最近的端点?
【发布时间】:2017-01-27 15:32:45
【问题描述】:

我正在尝试在沙盒中的 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 没有。

【问题讨论】:

    标签: http web request instagram instagram-api


    【解决方案1】:

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

    如果您添加带有主题标签的照片,则 API 响应将在 API 响应中仅包含您的照片,否则它将为空。

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

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

    在沙盒模式下 API 的行为与 当您的应用上线时,但有以下限制:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-09
      相关资源
      最近更新 更多