【问题标题】:Message sent using WhatsApp but not delivered to recipients using WhatsApp business API使用 WhatsApp 发送但未使用 WhatsApp 业务 API 发送给收件人的消息
【发布时间】:2022-06-14 05:08:27
【问题描述】:

您好,我想在我的网络应用程序中使用 WhatsApp 业务 API。我在邮递员中测试过。

只要在 WhatsApp 选项卡下的 Facebook 业务页面中运行示例 curl 代码, 它使用 Facebook 保存的模板将临时访问令牌和消息传递给收件人成功运行。 但是,当我只向收件人发送短信时,API 响应会通过消息 ID 成功,但消息尚未发送给收件人。

下面给出了我的 curl 代码示例

curl --location --request POST 'https://graph.facebook.com/v13.0/106433498743301/messages' \ --header 'Authorization: Bearer EAAOw8oNtvXkBAKk89CqJtyusjxk7c7qGSNS0quxqeZBRtjE5MYwZCK0USeGGLV4n56qNAuaRoRWZA2oCIS8zcz6U5UZAtQCOb6YQnjuXZBfLnyZAwsOZBpASpnNOvvz29T0Jn0aXgZAdo9VKmBv0CkNYuOeb1I7X0GZCEwLHPZBFpfOCj4K3S9CMPjBfYR5Jog06LC95P7UgCr5Fy2nqbRM5Ys' \ --header 'Content-Type: application/json' \ --data-raw '{ "messaging_product": "whatsapp", "preview_url": false, "recipient_type": "individual", "to": "xxxxxxx150", "type": "text", "text": { "body": "Test message" } }'

【问题讨论】:

    标签: php curl facebook-graph-api whatsapp


    【解决方案1】:

    我遇到了同样的问题。在我从手机向测试号码发送消息后,它起作用了。

    问候

    里昂

    【讨论】:

      猜你喜欢
      • 2018-09-01
      • 1970-01-01
      • 2017-02-04
      • 2022-01-15
      • 2015-04-05
      • 1970-01-01
      • 2019-09-19
      • 2013-10-08
      • 1970-01-01
      相关资源
      最近更新 更多