gpt4 book ai didi

instagram-api - Instagram Graph API 有沙盒模式吗?

转载 作者:行者123 更新时间:2023-12-04 13:00:22 25 4
gpt4 key购买 nike

docs说(第 4 步):

In the App Review for Instagram section, click Add to Submission for each permission your App will need from its Users. instagram_basic is required. instagram_manage_comments, instagram_manage_insights, and instagram_content_publish are optional.

Scroll to the bottom of the page, and in the Current Submission sub-section, for each submission, click its View Notes link.

In the View Notes dialogue for each permission submission, provide a description for how you will use the data returned by any endpoints that require the permission, and a screencast showing how your app will use the data.

Once you've completed your notes for all of your permission submissions, click the Submit For Review button at the bottom of the page. Note that this is separate from your App Review, which you will do after testing.

After you've added both Facebook Login and Instagram API products to your app configuration, add Facebook Login to your app and record a screencast showing how you will use data returned by the Instagram API. This is similar to the Facebook Login screencast but with Instagram data, so the same guidelines apply.


第 5 步:

Once you've been notified that your Instagram API product submission has been approved, you can use the Graph API Explorer to test your app.


使用 Facebook 登录,我可以创建一个在沙盒模式下运行的应用程序。这让我可以创建一个截屏视频。为了能够使用 Instagram Graph API(在网站上),我需要(从我可以收集到的):
  • 链接到 Instagram 商业帐户的 Facebook 页面
  • 一个应用程序图标
  • 隐私政策页面
  • 一个可以使用 Facebook 登录的网站
  • 每个权限将如何使用的描述
  • 截屏...究竟是什么?一个基本上准备好的网站,但不是从 Instagram 获取数据,而是将它们硬编码在代码中?

  • 或者毕竟有沙盒模式?
    UPD 我在上面的引文中强调了重要的部分。然后:

    5. Test Your App

    Once you've been notified that your Instagram API product submission has been approved, you can use the Graph API Explorer to test your app.

    Go to the Graph API Explorer...

    The first call you will make is to the Graph API's /user/accounts edge...

    Locate the Page that you connected to the Instagram Business Account and click its ID...

    Next, [make /page?fields=instagram_business_account request].


    这是我在 Graph API Explorer 中得到空响应的地方(仅返回 id 字段),或者:

    200:- OAuthException:(#200) Access to this data is temporarily disabled for non-active apps or apps that have not recently accessed this data due to changes we are making to the Facebook Platform. https://developers.facebook.com/status/issues/205942813488872/

    GET /...?fields=instagram_business_account HTTP/1.1


    在我的网站上。在通过评论(Instagram App Review 和 Facebook App Review)之前,我可以向 Instagram Graph API 提出哪些请求?

    最佳答案

    看起来 Facebook 提供的文档有些误导。实际上,您可以通过 Graph API Explorer(或通过从您的代码发送 GET 请求)以非常有限的方式使用 Instagram Graph API,在您获得步骤 4 中所述的初始批准之前,仅访问您的 Instagram 企业帐户。

    脚步:

  • 打开图形 API 资源管理器。
  • 首先,您需要在“访问 token ”部分添加额外的权限。该部分底部有一个“添加权限”下拉菜单。打开该下拉菜单并选择:instagram_basic、manage_pages、business_management 权限。根据您尝试执行的操作,您可能还需要其他权限(例如 instagram_manage_comments、ads_management、manage_pages)。
  • 选择额外权限后,单击“获取访问 token ”按钮。
  • 现在,您拥有具有正确权限的访问 token ,您应该能够执行 instagram_business_account 请求。这将返回您的企业帐户的 Instagram id,然后您可以将其用于其他请求。

  • 完成这些步骤后,我可以通过 Instagram Graph API 为我的企业帐户获取媒体,尽管我仍在尝试找出标签请求返回空列表的原因。

    关于instagram-api - Instagram Graph API 有沙盒模式吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49393519/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com