I am experiencing an issue with the WhatsApp Message API. Here is a summary of the steps and problem:
I created an app, which is currently in developer mode. When I send a test message from the developer app, it is successful. I then registered a different Facebook account as a business for that app and attempted to use the message API. Here are the results of my tests:
Text Message Type: When I send a message with type text, it is successfully delivered to the user. Template Message Type: When I send a message with an approved template, the status shows as accepted, but the user does not receive the message. In both cases, the messages are sent to the same phone number. That phone number does not blocked business phone number
Additionally, I set up a webhook to monitor incoming messages. The webhook only records messages sent through the developer app as tests. Messages sent by the registered business account are not triggering webhook activity.
Here’s the response I received after sending a template message:
{
"messaging_product": "whatsapp",
"contacts": [
{
"input": "84338180471",
"wa_id": "84338180471"
}
],
"messages": [
{
"id": "wamid.HBgLODQzMzgxODA0NzEVAgARGBIxOUUzOUMyMDc2NTExODI1NkQA",
"message_status": "accepted"
}
]
}
How can I resolve this issue so that template messages are properly delivered, and webhook events are triggered for messages sent through the registered business account?