简体   繁体   English

使用哪个 WhatsApp 企业帐户 ID?

[英]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 吗?

whatsapp API 示例

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.

相关问题 上传到 Instagram 企业帐户的视频总是返回“媒体 ID 不可用”错误消息 - Video upload to Instagram Business Account always returns "Media ID is not available" error message 如何从 Facebook 业务经理激活自动 Whatsapp 模板? - How to activate automatic Whatsapp template from Facebook business manager? 当我们通过 WhatsApp 发送图像时,如何在 WhatsApp Business Cloud API 中获取图像的 URL - How to get the URL of an image in WhatsApp Business Cloud API, while we send an image through WhatsApp 发送文档附件时如何在 WhatsApp Business API 中设置文件名参数? - How to set filename parameter in WhatsApp Business API while sending document attachment? 如何使用移动应用程序进入whatsapp共享链接? - How to use mobile app into whatsapp share link? 使用服务器进行聊天备份,例如 Telegram 或 WhatsApp - Use a server for chat backup like Telegram or WhatsApp 有可能将Instagram故事从node.js服务器发布到我的帐户吗? (不是商业帐户) - It is possible to publish Instagram story from a node.js server to my account? (not a business account) 为什么不使用GraphQL作为业务逻辑层? - Why not to use GraphQL as a business logic layer? 如何使用 Google 服务帐户和 Google API 根据其用户 ID 验证 G-Suite 用户的密码 - How to use Google Service Account and Google API to validate G-Suite User's Password against its user ID 如何使用移动应用程序到whatsapp共享链接中工作? - How to use mobile app into whatsapp share link working?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM