无法使用whatsapp云api发送身份验证模板消息 - “接收者无法”错误

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

我正在尝试使用身份验证模板发送消息(https://graph.facebook.com/v18.0/xxxxxxxx/messages)。但是,我遇到错误“接收者无法接收此消息。”

  • 认证模板已获批准
  • 此问题仅出现在身份验证模板中,而不会出现在实用程序模板中。
  • 当用户发起消息时它起作用。
  • 我可以接收来自其他企业的消息(相同的身份验证消息),因此看起来不像接收端问题。

示例有效负载

"messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "91xxxxxxxxx",
    "type": "template",
    "template": {
        "name": "login_otp_v1",
        "language": {
            "code": "en_US"
        },
        
        "components": [
            {
                "type": "body",
                "parameters": [
                    {
                        "type": "text",
                        "text": "567895"
                    }
                ]
            },
            {
                "type": "button",
                "sub_type": "url",
                "index": 0,
                "parameters": [
                    {
                        "type": "text",
                        "text": "567895"
                    }
                ]
            }
        ]
    }
}

错误响应:

{
                    "code": 131026,
                    "title": "Receiver is incapable of receiving this message",
                    "message": "Receiver is incapable of receiving this message",
                    "error_data": {
                      "details": "Message Undeliverable."
                    },
                    "href": "https://developers.facebook.com/docs/whatsapp/cloud-api/support/error-codes/"
                  }
                
facebook facebook-graph-api whatsapp whatsapp-cloud-api
1个回答
0
投票

我也面临着同样的问题,并努力使身份验证模板发挥作用。如果有人有解决办法吗??请协助 webhook 我遇到此错误代码,经过进一步调查,我发现此代码指的是 enter image description here

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