【问题标题】:Instagram Tag Recent search always return null arrayInstagram Tag 最近搜索总是返回空数组
【发布时间】:2016-09-06 08:13:29
【问题描述】:

我想查找特定标签媒体和这些信息。

然后,跟着 instagram API 文档。

但是,特定标签媒体 API 总是返回空数组。

我尝试了这一步。

  1. 获取 AccessToken

https://api.instagram.com/oauth/authorize/?client_id=[C_ID]&redirect_uri=http://localhost:3001/instagram/callback&response_type=token&scope=basic+public_content+relationships

重定向并返回访问令牌

http://localhost:3001/instagram/callback#access_token=ACCESS_TOKEN

  1. 查找特定标签(例如雪)

https://api.instagram.com/v1/tags/snow?access_token=ACCESS_TOKEN

返回,

{
     "meta": 
     {
         "code": ​200
     },
     "data": 
           {
            "media_count": ​11664,
            "name": "snow"
      }

 }
  1. 并查找特定标签媒体列表

https://api.instagram.com/v1/tags/snow/media/recent?access_token=ACCESS_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": [ ]

}

为什么返回空数组?

什么是max_tag_id、min_tag_id?

【问题讨论】:

    标签: instagram instagram-api


    【解决方案1】:

    您几乎肯定没有看到任何结果,因为您正在搜索的主题标签在您最近 20 个帖子中没有使用过。

    这是一个简短的article explaining how the new Instagram API works

    TL;DR:如果您的应用处于沙盒模式,它只能看到您或您的沙盒用户过去 20 条帖子。

    【讨论】:

      猜你喜欢
      • 2016-05-03
      • 2018-03-14
      • 1970-01-01
      • 2022-11-14
      • 2019-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多