Salesforce 到 WhatsApp 集成 - 短信未发送

问题描述 投票:0回答:1

我已按照元提供的文档将 Salesforce 集成到 WhatsApp - https://developers.facebook.com/

我已使用正文点击以下 API 来发送消息并获得成功响应,但消息未传递到移动 WhatsApp。非常感谢您的帮助。

POST - Endpoint -> https://graph.facebook.com/v18.0/{business_phone_number_id}/messages
Body:
{
      "messaging_product": "whatsapp",
      "recipient_type": "individual",
      "to": "PHONE_NUMBER", // Mobile number
      "type": "text",
      "text": { // the text object
        "preview_url": false,
        "body": "MESSAGE_CONTENT"
        }
}

对于相同的 API,除了传递模板化消息外,不传递其他格式的消息。

具有相同端点的模板化主体

{
    "messaging_product": "whatsapp",
    "to": "PHONE_NUMBER",
    "type": "template",
    "template": {
        "name": "hello_world",
        "language": {
            "code": "en_US"
        }
    }
}
rest salesforce whatsapp
1个回答
0
投票

找到解决方案了。 对于试用帐户 - 首先我们必须发送模板,然后接收者应回复模板。然后我们可以从 salesforce 发送短信。

© www.soinside.com 2019 - 2024. All rights reserved.