Instagram图API未知错误获取对话

发布于 2025-02-12 07:47:58 字数 1109 浏览 2 评论 0原文

我从此处找到的Instagram消息传递文档中遵循“入门”页面中的所有步骤( https://develovelers.facebook.com/docs/messenger-platform/instagram/get-started )。我什至启用了消息控制工具,并且能够成功执行文档中提到的所有步骤的请求,除了进行对话吗?从图形API。

我的要求是 卷发-i -x获取 “ https://graph.facebook.com/v9.0/xxxxxx/conversations?platform = instagram& access_token = eaa ...”

,我的回答是,

HTTP/2 500 
content-type: application/json; charset=UTF-8
access-control-allow-origin: *
facebook-api-version: v13.0
strict-transport-security: max-age=15552000; preload
pragma: no-cache
cache-control: private, no-cache, no-store, must-revalidate
expires: Sat, 01 Jan 2000 00:00:00 GMT
x-fb-request-id: AWxxxx
x-fb-trace-id: Gxxxxx
x-fb-rev: 1xxxxx
x-fb-debug: Icxxxxx
content-length: 77
date: Tue, 21 Jun 2022 04:11:42 GMT
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

{"error":{"code":1,"message":"An unknown error occurred","error_subcode":99}}

我想知道为什么自从我跟随所有内容时, 。关于我错过或错的任何建议吗?谢谢

I followed all of the steps in the getting started page from the Instagram Messaging docs found here (https://developers.facebook.com/docs/messenger-platform/instagram/get-started). I even enabled message control tools and was able to successfully perform GET requests on all steps mentioned in the docs except for GETing the conversations? from the Graph API.

My request was
curl -i -X GET
"https://graph.facebook.com/v9.0/xxxxx/conversations?platform=instagram&access_token=EAA..."

And my response was

HTTP/2 500 
content-type: application/json; charset=UTF-8
access-control-allow-origin: *
facebook-api-version: v13.0
strict-transport-security: max-age=15552000; preload
pragma: no-cache
cache-control: private, no-cache, no-store, must-revalidate
expires: Sat, 01 Jan 2000 00:00:00 GMT
x-fb-request-id: AWxxxx
x-fb-trace-id: Gxxxxx
x-fb-rev: 1xxxxx
x-fb-debug: Icxxxxx
content-length: 77
date: Tue, 21 Jun 2022 04:11:42 GMT
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

{"error":{"code":1,"message":"An unknown error occurred","error_subcode":99}}

I'm wondering why since I followed everything up to here and it was working. Any suggestions on what I could've missed or did wrong? Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

左秋 2025-02-19 07:47:58

缺少权限可能会导致此问题。它在

从Facebook登录:

  1. Instagram_basic
  2. instagram_manage_messages
  3. pages_manage_metadata

请记住,您的Facebook开发人员帐户必须能够通过“中等”的“中等”级别访问在Facebook页面上连接到Instagram帐户,您想要在Instagram帐户上执行任务。查询。

Missing permissions can cause this issue. It is listed as the first issue under the error codes section. Make sure you give the user access token appropriate permissions before you create the token. It says moderate but the permissions required are:

From Facebook Login:

  1. instagram_basic
  2. instagram_manage_messages
  3. pages_manage_metadata

Remember, your Facebook Developer account must be able to perform Tasks with atleast "Moderate" level access on the Facebook Page connected to the Instagram account you want to query.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文