我正在尝试使用身份验证模板发送消息(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/"
}