[英]Which WhatsApp Business Account ID to use?
Can someone please clarify which is the correct WhatsApp Business Account ID to use to access the WhatsApp cloud API?有人可以澄清哪个是用于访问 WhatsApp 云 API 的正确 WhatsApp 企业帐户 ID 吗?
I have properly set up my webhook and can receive messages.我已正确设置我的 webhook 并且可以接收消息。 However when I try to send a message using the WhatsApp Business Account ID
(marked as number 1 in the attached image) provided here , I get the following error:但是,当我尝试使用此处提供的WhatsApp Business Account ID
(在附图中标记为数字 1)发送消息时,出现以下错误:
error: {
message:
"Unsupported post request. Object with ID '< my app id>' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
type: "GraphMethodException",
code: 100,
error_subcode: 33,
fbtrace_id: "AQXqjuSJKTWBnyJdUK_W-jj",
},
However when I switch to the second WhatsApp Business Account ID
in the curl command (marked as number 2 in the attached image), it works.但是,当我在 curl 命令中切换到第二个WhatsApp Business Account ID
(在附图中标记为数字 2)时,它起作用了。
What confuses me is that the incoming message has the first WhatsApp Business Account ID
(marked number 1 in the attached image) like so:让我感到困惑的是,传入的消息具有第一个WhatsApp Business Account ID
(附图中标记为数字 1),如下所示:
message: {
object: "whatsapp_business_account",
entry: [
{
id: "xxxxxxxxxxxxxxx", // This matches the first
changes: [
...
],
},
],
};
I am using the current api v14.0.我正在使用当前的 api v14.0。 Is there some setting I need to change?我需要更改某些设置吗?
Probably you need to add the user of this acces token to the WABA (Whatsapp Business Account).可能您需要将此访问令牌的用户添加到 WABA(Whatsapp 商业帐户)。 You can do it by accessing your Business Manager > Whatsapp Accounts menu.您可以通过访问商务管理平台 > Whatsapp 帐户菜单来完成。
If you don't know which user is this, you can paste the access token value on the Access Token Debug Tool to find out.如果您不知道这是哪个用户,可以将访问令牌值粘贴到访问令牌调试工具上进行查找。
PS: it has to be done even for System Users! PS:即使是系统用户也必须这样做!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.