Posts under category Facebook WhatsApp Business API

I have created a WhatsApp Business Platform Test account. I am able to send and receive the hello-world template message but when I send a test message without template(as specified by the api) it doesn't push it to the mobile phone. Strangely I get success response in both cases.

Url: https://graph.facebook.com/v15.0/11ZZZZZZZZZZZZZ/messages

Here are the jsons and their responses

{    "messaging_product":"whatsapp",    "to":"91ZZZZZZZZZZ",    "type":"template",    "template":{       "name":"hello_world",       "language":{          "code":"en_US"       }    } } {    "messaging_product":"whatsapp",    "contacts":[       {          "input":"91ZZZZZZZZZZ",          "wa_id":"91ZZZZZZZZZZ"       }    ],    "messages":[       {          "id":"wamid.HBgMOTE3MjkwMDIxMzYwFQIAERgSMjZCRkQ3RDc0RjM0QkNEZZZZZZ=="       }    ] } 

In these case I successfully receive message on the mobile

{    "messaging_product":"whatsapp",    "to":"91ZZZZZZZZZZ",    "type":"text",    "text":{       "preview_url":false,       "body":"Hello World Testing"    } } {    "messaging_product":"whatsapp",    "contacts":[       {          "input":"91ZZZZZZZZZZ",          "wa_id":"91ZZZZZZZZZZ"       }    ],    "messages":[       {          "id":"wamid.HBgMOTE3MjkwMDIxMzYwFQIAERgSQUJERkM2RUE1RTEwQTExZZZZZZ=="       }    ] } 

However I don't receive message on the mobile. Is there anything I am missing in the second case?

Our app already have business_management, whatsapp_business_messaging, whatsapp_business_management approval from facebook. The issue is when we try to subscribe to any business whatsapp number outside our business manager it gives us error of "error_user_title": "App not linked to a Business", "error_user_msg": "Your App is not linked to a Business or the Business doesn't have access to the WhatsApp Business Account.",

I have created a WhatsApp business App on https://developers.facebook.com/apps/

I am able to send messages using the API & Access Token

curl -X POST \   'https://graph.facebook.com/v15.0/FROM_PHONE_NUMBER_ID/messages' \   -H "Authorization: ACCESS_TOKEN" \   -d '{     "messaging_product": "whatsapp",     "to": "1650XXXXXXX",     "text": {"body" : "hi"}    }' 

I want to send the message in a WhatsApp group, any ways to achieve this?

I develop a page with login for Whatsapp API Cloud following those steps:

https://developers.facebook.com/docs/whatsapp/embedded-signup/pre-filled-data

<script>   window.fbAsyncInit = function () {     FB.init({       appId: "XXXXXXX",       cookie:   true, // enable cookies       autoLogAppEvents: true,       xfbml: true,       version: "v15.0",     });   };   // Load the JavaScript SDK asynchronously   (function (d, s, id) {     var js,       fjs = d.getElementsByTagName(s)[0];     if (d.getElementById(id)) return;     js = d.createElement(s);     js.id = id;     js.src = "https://connect.facebook.net/en_US/sdk.js";     fjs.parentNode.insertBefore(js, fjs);   })(document, "script", "facebook-jssdk");   // Facebook Login with JavaScript SDK   function launchWhatsAppSignup() {     // Launch Facebook login     FB.login(       function (response) {         if (response.authResponse) {           const accessToken = response.authResponse.accessToken;           console.log(accessToken);           //Use this token to call the debug_token API and get the shared WABA's ID           fetch(             `https://graph.facebook.com/v15.0/debug_token?input_token=${accessToken}&access_token=EAARzkHctTewBABQoSZA3gDI36fFBO1ZCW1DV4uW3eUMZClzbZBB8wvmpFNhrShuZA2ej4oZAxxXD0md0vZAkr4NQ6ZBzOzNsK9QMjz0bz3xEzSKQ0BDQU9qD2DoZA3XwGDGyAyAssqgEkGM9iUSmj6CspwPUWwIVuByJdOxtKV4dSNG1Fm44hTWgQ`           )             .then((response) => response.json())             .then((data) => console.log(data));         } else {           console.log("User cancelled login or did not fully authorize.");         }       },       {         scope: "business_management,whatsapp_business_management",         extras: {           feature: "whatsapp_embedded_signup",           setup: {             // ... // Prefilled data can go here           },         },       }     );   } </script> <script async  crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script> <button   onclick="launchWhatsAppSignup()"   style="     background-color: #1877f2;     border: 0;     border-radius: 4px;     color: #fff;     cursor: pointer;     font-family: Helvetica, Arial, sans-serif;     font-size: 16px;     font-weight: bold;     height: 40px;     padding: 0 24px;   " >   Login with Facebook </button> 

But the problem is whatsapp shows in pop-up: You don't have any WhatsApp Business Accounts.

and tell me to create an WhatsApp Business Accounts, that i already have in my bussiness account linked with my whatsapp bussiness number.