状态为“活动”-“质量待定”的 Whatsapp 消息模板无法发送。获取“(#132001) 翻译中不存在模板名称”

问题描述 投票:0回答:1
{
    "error": {
        "message": "(#132001) Template name does not exist in the translation",
        "type": "OAuthException",
        "code": 132001,
        "error_data": {
            "messaging_product": "whatsapp",
            "details": "template name (message_request) does not exist in en_US"
        },
        "fbtrace_id": "A_EjJh2lU36b3yKxpX9q8WD"
    }
}

我们已在元业务设置下的 WhatsApp 管理器中成功创建了一个具有 2 个按钮的消息模板。

Name of the template: message_request 
Language: English (US)
Status: Active – Quality pending

尝试使用图形 API 向用户发送消息时,出现错误。

要求:

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "913456666661",
  "type": "template",
  "template": {
        "name": "message_request",
        "language": {
            "code": "en_US"
        }
  }
}

回应:

{
    "error": {
        "message": "(#132001) Template name does not exist in the translation",
        "type": "OAuthException",
        "code": 132001,
        "error_data": {
            "messaging_product": "whatsapp",
            "details": "template name (message_request) does not exist in en_US"
        },
        "fbtrace_id": "A_EjJh2lU36b3yKxpX9q8WD"
    }
}

是什么原因导致这个问题?

facebook-graph-api whatsapp-cloud-api
1个回答
0
投票

确保 API 调用中指定的语言代码(本例中为 en_US)与您在 WhatsApp 管理器中为模板设置的语言匹配。有时,模板在系统中传播需要时间。如果您最近创建或修改了模板,请考虑等待更长的时间。该模板是否已完全批准并处于活动状态? 当我与 ISP 合作伙伴合作时,我经常遇到这个错误。我联系了他们的支持人员,他们强制将模板与 FB 模板同步。

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