Instagram API & IOS

Instagram API & IOS

我不知道为什么 Instagram 团队从未想过要对移动应用程序集成更加友好 我想做的就是阅读我的移动应用程序中特定 HashTag 的帖子 JSON,我发现的只是一个非常基本的教程,如何为用户获取访问令牌,以及数百万个指南this page !!

当我尝试直接在浏览器上检查结果时 https://api.instagram.com/v1/tags/challenge/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":[]}

有谁知道我应该遵循哪些步骤才能获得所需的信息?因为在这部分花太多时间让我心烦!!

例如,我完全按照 this tutorial 在我的应用程序中获取授权和访问令牌

您处于沙盒模式,因此它将return仅来自您的沙盒授权用户的媒体,以下是相关信息:

As another example, let's consider an endpoint that returns a list of media: /tags/{tag-name}/media/recent. The response returned by this endpoint will contain only media with the given tag, as expected. But instead of returning media from any public Instagram user, it will return only media that belongs to your sandbox users, restricted to the last 20 for each user.

这里是link关于沙盒模式的更多细节:https://www.instagram.com/developer/sandbox/

一旦您的应用获得批准,您将看到所有媒体。

尝试搜索您在帐户中发布的主题标签,该标签将显示在结果中