【问题标题】:How to get Instagram user-created posts within a particular hashtag?如何在特定主题标签中获取 Instagram 用户创建的帖子?
【发布时间】:2020-04-28 07:59:18
【问题描述】:

使用 Instagram 新的图形 API,我们可以在特定主题标签中获取 Instagram 用户创建的帖子吗?

例如:如果我们将用户名/id 和主题标签传递给 API,那么它将返回用户创建的帖子以及主题标签。

图形 API 可以吗?

【问题讨论】:

    标签: javascript instagram instagram-api


    【解决方案1】:

    是的,它叫Hashtag-Search,于2018年推出
    https://developers.facebook.com/blog/post/2018/10/31/instagram-graph-api-hashtag-search-launch/

    完整的 API:
    https://developers.facebook.com/docs/instagram-api/guides/hashtag-search/

    在你的情况下 -
    输入 - 用户 ID 和标签查询
    输出 - 标签 ID

    https://developers.facebook.com/docs/instagram-api/reference/ig-hashtag-search#reading

    使用上述标签 ID 进行进一步操作,例如从用户/故事加载帖子等。

    希望有所帮助。

    【讨论】:

    • 但它似乎在 2020 年 6 月 29 日被弃用。instagram.com/developer
    • 弃用基于标签名称的直接搜索(弃用于 2018 年完成)instagram.com/developer/changelog 例如,不允许使用以下内容 - GET /tags/{tag-name} 较新API 要求用户首先获取标签的 hashtag-id,然后使用该 id 执行其他操作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多