admin管理员组文章数量:1394057
I’ve set up a server to interact with the WhatsApp API and configured everything as per the instructions. I’ve implemented my code, and I’m able to send messages to my server via curl successfully. The server also sends automatic responses when I use curl to send messages.
However, when I try to send messages through the WhatsApp app itself (not via curl), the messages do not seem to trigger my webhook, even though I can receive messages on my mobile device from the WhatsApp API.
Has anyone encountered a similar issue or have any suggestions as to why this might be happening? I’m at a loss as to what might be blocking the WhatsApp app messages from reaching the webhook.
Any help would be greatly appreciated!
Thanks!
I have verified:
The number is correctly added to the allowed list in the WhatsApp Business API dashboard. The server can receive and process messages from curl, but I’m not seeing anything when messages come from the WhatsApp app.
I’ve set up a server to interact with the WhatsApp API and configured everything as per the instructions. I’ve implemented my code, and I’m able to send messages to my server via curl successfully. The server also sends automatic responses when I use curl to send messages.
However, when I try to send messages through the WhatsApp app itself (not via curl), the messages do not seem to trigger my webhook, even though I can receive messages on my mobile device from the WhatsApp API.
Has anyone encountered a similar issue or have any suggestions as to why this might be happening? I’m at a loss as to what might be blocking the WhatsApp app messages from reaching the webhook.
Any help would be greatly appreciated!
Thanks!
I have verified:
The number is correctly added to the allowed list in the WhatsApp Business API dashboard. The server can receive and process messages from curl, but I’m not seeing anything when messages come from the WhatsApp app.
Share Improve this question asked Mar 16 at 0:09 Nicholas TomicNicholas Tomic 11 silver badge1 Answer
Reset to default 1Have you tried following the instructions given at https://developers.facebook/docs/graph-api/webhooks/getting-started/webhooks-for-whatsapp#subscribe ?
You need to create a Meta App and subscribe to 'messages' webhook topic under WhatsApp product on the App dashboard
You then need to subscribe to the WhatsApp business account using following endpoint:
curl -X POST 'https://graph.facebook/<API_VERSION>/<WHATSAPP_BUSINESS_ACCOUNT_ID>/subscribed_apps' \ -H 'Authorization: Bearer <ACCESS_TOKEN>'
版权声明:本文标题:Unable to Receive Messages from WhatsApp App in Webhook despite Successful Curl Requests - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744600925a2615059.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论