为什么元API不显示Instagram的直接消息?

huangapple go评论50阅读模式
英文:

Why wont the meta-api show Instagram direct messages?

问题

我正在使用v14元数据API,并尝试发送请求来显示Instagram商业帐户上的所有直接消息。使用graph-api工具,我发送了这个请求:

{page-id}/conversations?platform=instagram,并获得以下响应:

{
  "data": [
  ]
}

我猜想这意味着它认为没有直接消息,但实际上应该有2条在响应中。而且,当我不使用?platform=instagram时,它会给我一个包含我在Facebook上收到的消息的响应。有人见过这种情况吗?

正如我所说,它对我的Facebook消息有效,但对我的Instagram消息无效。我已经查阅了文档,但看不出为什么会发生这种情况。我正在尝试设置它,以便我能够接收Instagram直接消息的Webhook。

英文:

I am using the v14 meta-api and I am trying to send a request to show all the direct messages on an Instagram business account. Using the graph-api tool I am sending this request:

{page-id}/conversations?platform=instagram and getting this as a response:

{
  "data": [
  ]
}

I'm assuming this means it thinks there are no direct messages, however there are, there should be 2 that are in the response. Also when I try it without the ?platform=instagram it gives me a response with the messages I've received on Facebook. Has anyone seen this before?

As I said it works for just my Facebook messages but not for my Instagram messages. I've dug through the docs and cant see why this is happening. I am trying to get this set up so I receive webhooks for Instagram direct messages.

答案1

得分: 0

是的,我知道这种行为。如果有消息并且您还没有批准该联系人,那么这些消息在Graph API中是不可用的。一旦在Instagram应用中批准了该联系人,这些消息就会显示出来。

目前,我正在寻找一些API调用来批准新联系人,而无需应用程序交互,但目前还没有成功。

英文:

Yes, I know this behavior. If there are messages and you have not approved the contact, the messages are not available in the Graph API. As soon as the contact is approved in the Instagram App, the messages appear.

ATM, I'm looking for some API call to approve the new contact without app interaction, but no luck so far.

huangapple
  • 本文由 发表于 2023年5月11日 09:48:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76223619.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定