Posts under category Facebook WhatsApp Business API

How can I integrate my WhatsApp for business (not using any 3rd party tools like Pabbly, WANotifier, etc.) to send a pdf document (Purchase Order details) to the customers without having to send a welcome text message and the customer not having to reply back with anything to receive the pdf document (Purchase Order details)?.

Note: if this is not possible then how does MakeMyTrip and book my show works where in which when we book tickets or shows we receive a pdf file (booking details) without we in person initiating the conversation of asking the booking details.

Went through the official MetaforDevelopers document https://developers.facebook.com/docs/whatsapp/cloud-api but couldn't find any solutions.

If somebody finds something out of the document link attached above related to my requirement, please let me know! Thanks in advance!

I'm new to the meta business platform. I'm currently setting up a whatsapp business account to send messages programaticaly. I'm able to use the api to send messages and make use of templates. The problem is that the messages are being delivered, but with a delay of over 30 minutes.

The api endpoint I'm using is https://graph.facebook.com/v17.0/{{ _.phoneId }}/messages

Is there any settings required to make them be delivered as fast as possible?

I have registered 2 numbers and it's connected. The problem is, I wanted to use our own number not a test number on this API Call

https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/messages {     "messaging_product": "whatsapp",     "to": "{{Recipient-Phone-Number}}",     "type": "template",     "template": {         "name": "hello_world",         "language": {             "code": "en_US"         }     } } 

I have successfully sent the message by the test number. My question is how to use our own number?

From the app dashboard, I have checked the production number is zero but on the WhatsApp business manager I have 3 numbers, 1 for testing and 2 is should be act as the production number. I have 2 waba ID and pretty sure I use the correct one.

When trying to

https://graph.facebook.com/{{Version}}/{{WABA-ID}}/phone_numbers {     "error": {         "message": "Unsupported get request. Object with ID '*****' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",         "type": "GraphMethodException",         "code": 100,         "error_subcode": 33,         "fbtrace_id": "Ac5S6tqiApK**l1Y_t4nv"     } } 

Does it require BSP to use my Own Number? How to get the phone-number-id?

Ps. My 2 other numbers are already connected with messagebird and it can send messages successfully.

https://graph.facebook.com/v17.0/{{Phone-Number-ID}}/messages

Headers contains Authentication token

passing json body:

{   "messaging_product": "whatsapp",    "recipient_type": "individual",   "to": "{{Recipient-Phone-Number}}",   "type": "template",   "template": {     "name": "ticket_confirmation",     "language": {       "code": "en"     },     "components": [       {         "type": "header",         "parameters": [           {             "type": "image",             "image": {               "link": "https://link.png"             }           }         ]       },       {         "type": "body",         "parameters": [           {             "type": "text",             "text": "xyz"           },           {             "type": "text",             "text": "event name"           },         {             "type": "text",             "text": "2"           },         {             "type": "text",             "text": "ticketname"         },         {                    "type": "date_time",             "date_time": {               "fallback_value": "May 10, 2023"             }         },         {                "type": "text",             "text": "18:30 - 23:30"         },         {                "type": "text",             "text": "location"         },           {             "type": "currency",             "currency": {               "fallback_value": "value",               "code": "INR",               "amount_1000": 2100630             }           }         ]       }     ]   } } 

I am getting this in response

"messages": [     {         "id": "wamid.HBgMOTE3MDQyMjY2ODExFQIAERgSQkQ0MDMyRTYyNTdBNUJGM0M0AA=="     } ] 

I am hitting this API to send my message templates to the user who have purchased tickets on my platform but the message are going after 30mins(before i was getting the message withing secs.