Skip to content

Facebook 触发 WhatsApp Business 账户对象#

¥Facebook Trigger WhatsApp Business Account object

使用此对象接收 WhatsApp Business 账户 (WABA) 更改的更新。有关触发器本身的更多信息,请参阅 Facebook 触发器

¥Use this object to receive updates when your WhatsApp Business Account (WABA) changes. Refer to Facebook Trigger for more information on the trigger itself.

Use WhatsApp trigger

n8n 建议将 WhatsApp 触发器节点WhatsApp 凭证 一起使用,而不是使用 Facebook 触发器节点。该触发节点包含两倍的待订阅事件。

¥n8n recommends using the WhatsApp Trigger node with the WhatsApp credentials instead of the Facebook Trigger node. That trigger node includes twice the events to subscribe to.

Credentials

你可以在 此处 中找到此节点的身份验证信息。

¥You can find authentication information for this node here.

Examples and templates

有关使用示例和模板以帮助你入门,请参阅 n8n 的 Facebook 触发器集成 页面。

¥For usage examples and templates to help you get started, refer to n8n's Facebook Trigger integrations page.

先决条件#

¥Prerequisites

使用此触发器之前,你需要在应用和 WhatsApp 账户中进行一些配置:

¥This Object requires some configuration in your app and WhatsApp account before you can use the trigger:

  1. 使用你的 WhatsApp 企业账户订阅你的应用。你必须订阅你公司拥有的应用。与你企业共享的应用无法接收 Webhook 通知。

¥Subscribe your app under your WhatsApp business account. You must subscribe an app owned by your business. Apps shared with your business can't receive webhook notifications. 2. 如果你是解决方案合作伙伴,请确保你的应用已完成应用审核并已申请 whatsapp_business_management 权限。

¥If you are working as a Solution Partner, make sure your app has completed App Review and requested the whatsapp_business_management permission.

触发器配置#

¥Trigger configuration

要使用此对象配置触发器:

¥To configure the trigger with this Object:

  1. 选择要连接的凭据。选择一个现有的 Facebook 应用凭证 对象或创建一个新的 Facebook 应用凭证 对象。

¥Select the Credential to connect with. Select an existing or create a new Facebook App credential. 2. 输入与你的凭据关联的应用的 APP ID。请参阅 Facebook 应用凭证 文档,了解更多信息。

¥Enter the APP ID of the app connected to your credential. Refer to the Facebook App credential documentation for more information. 3. 选择“WhatsApp Business 账户”作为对象。

¥Select WhatsApp Business Account as the Object. 4. 字段名称或 ID:默认情况下,节点将使用 * 通配符过滤器触发所有可用的事件。如果你想限制事件,请使用 X 移除星号,并使用下拉菜单或表达式选择你感兴趣的更新。选项包括:

¥Field Names or IDs: By default, the node will trigger on all the available events using the * wildcard filter. If you'd like to limit the events, use the X to remove the star and use the dropdown or an expression to select the updates you're interested in. Options include:

  • 消息模板状态更新

    ¥Message Template Status Update

  • 调用号码名称更新

    ¥Phone Number Name Update

  • 调用号码质量更新

    ¥Phone Number Quality Update

  • 账户审核更新

    ¥Account Review Update

  • 账户更新

    ¥Account Update 5. 在“选项”中,启用“包含值”开关。如果未启用该选项,此对象类型将无法使用。

¥In Options, turn on the toggle to Include Values. This Object type fails without the option enabled.

请参阅 WhatsApp Business 账户 Webhook 和 Meta 的 WhatsApp 企业账户 Graph API 参考以获取更多信息。

¥Refer to Webhooks for WhatsApp Business Accounts and Meta's WhatsApp Business Account Graph API reference for more information.