Posts under category Facebook WhatsApp Business API

I am using the WhatsApp Cloud API to create and send forms using the Flow feature. The forms are successfully created and are accessible by other users without any issues. However, when I try to open the form on my own WhatsApp Business App, it gets stuck on the loading screen and never fully loads. Even simple test messages like "Hello World" fail to display.

Here are the steps I've taken:

  1. Created a form using JSON.
  2. Verified that the JSON is correctly formatted.
  3. Confirmed that the form works on other users' devices.
  4. Updated my WhatsApp Business App to the latest version.
  5. I have a good internet connection

Example JSON:

{     "version": "3.1",     "screens": [         {             "id": "WELCOME_SCREEN",             "layout": {                 "type": "SingleColumnLayout",                 "children": [                     {                         "type": "TextHeading",                         "text": "Hello World"                     },                     {                         "type": "TextBody",                         "text": "Let's start building things!"                     },                     {                         "type": "Footer",                         "label": "Complete",                         "on-click-action": {                             "name": "complete",                             "payload": {}                         }                     }                 ]             },             "title": "Welcome",             "terminal": true,             "success": true,             "data": {}         }     ] } 

Log Information:

[2024-08-07 16:38:01] local.DEBUG: Sending message to WhatsApp API  [{"stdClass":{"type":"interactive","interactive":{"type":"flow","body":{"text":"Hello word template"},"action":{"name":"flow","parameters":{"mode":"draft","flow_message_version":"3","flow_token":"aiqvYS","flow_id":"11655894848158","flow_cta":"Me Test","flow_action":"navigate","flow_action_payload":{"screen":"WELCOME_SCREEN"}}},"header":{"type":"text","text":"Welcome to the BotController"}},"to":"2637123456","messaging_product":"whatsapp","recipient_type":"individual"}}] 

Has anyone encountered this issue before or have any suggestions on how to resolve it? Any insights or solutions would be greatly appreciated.

Additional Info:

  • My device is running the latest version of the WhatsApp Business App.
  • Basic flow forms also fail to load on my device.

Thank you in advance!

I'm using this package to send messages on WhatsApp Business, but when I try to use it i get this error:

{"error":{"message":"Unsupported post request. Object with ID 'messages' 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":"AZy2DQf7fRL003f1RJcY8Kf"}}

I tried changing the token many times and also switching phone numbers. What can I do?

Here's what i did:

Added this to config/services.php:

 'whatsapp' => [             'from-phone-number-id' => env('WHATSAPP_FROM_PHONE_NUMBER_ID'),             'token' => env('WHATSAPP_TOKEN'),         ], 

Added application token and phone number id inside .env:

WHATSAPP_FROM_PHONE_NUMBER_ID=XXXXXX WHATSAPP_TOKEN=XXXXXX 

And then I created a notification class in Laravel like the instructions said and used the notification facade to send the message.

I just tried using the notify method of the Notifiable Trait like this:

Route::get('/wa', function () {     $user = User::find(4);     $user->notify(new AppuntamentiPazienti());     return view('homepage'); }); 

but i got the same error.

I'm trying to test the embeded signup process our company wishes to roll out. We have a verified business account which is a tech provider.
So I have created a facebook app which I am using for the embedded signup flow, that is linked to the business account and configured for the embedded signup flow.
The bit I'm really unclear on is how I am supposed to test this, I have been creating a business and verifying a phone number as part of the embedded signup flow, I have been provding some random business name and a URL to a site, not a real legit businesses, just something to allow me to test. I can complete the signup flow, but within a couple of days, that account always gets disabled with message : "Business Manager profile does not have information that we need to determine whether your business complies with WhatsApp's Business Policy."
Surely I don't need a legit business in order to test this, I understand the error and disabling the account due to the information but is there no such thing as creating a test WA business account? really interested to know how have others tested this?
Everything I google seem to talk about test accounts and numbers but these don't seem relevant for testing a number registered via embedded signup.
Thanks

Is there a way to get the account restrictions from the Whatsapp business account api?

More specifically I want to get the account restricted in the screenshot:

I have explored the available endpoints but couldn’t find any that provide this information. I’ve tried already:

• Checking the https://graph.facebook.com/{{api-version}}/{{business-account-id}} endpoint but it doesn’t seem to return any related info.

Reviewing the documentation but didn’t find relevant information about account restrictions.

Thanks in advance for your help!

I have successfully created a webhook and configured it to handle incoming messages and send responses using Twilio's API. However, I'm currently using a Twilio-provided WhatsApp Business number. I need to switch to my existing WhatsApp Business number so that when clients message my number, it triggers the webhook and Twilio API sends the response.

1.Created a Twilio account and set up the WhatsApp Sandbox for testing. 2.Verified my WhatsApp Business number with WhatsApp. 3.Configured webhook URLs in the Twilio console to handle incoming messages. 4.Successfully handled incoming messages and sent responses using Twilio's provided number.