I am using Cloud API Whatsapp but not sending a message to any number, I get a 200 status when I make a request to graph.facebook.com but I am not received the message in my Whatsapp number.
This is an example configuration for Node with Axios
var axios = require('axios');
var data = '{\r\n "messaging_product": "whatsapp",\r\n "to": "00000000000",\r\n "type": "template",\r\n "template": {\r\n "name": "hello_world",\r\n "language": {\r\n "code": "en_US"\r\n }\r\n },\r\n}';
var config = {
method: 'post',
url: 'https://graph.facebook.com/v13.0/103491645721389/messages',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer token'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
I dont have problems for show bearer token and my phone because only I am testing the API.
I want to know if the reason I can't see the message on Whatsapp is that many people are using it and maybe there are problems. Or maybe I'm setting something wrong. Yesterday when I tried everything was going great, but today I only receive the status 200 but it does not show me the message. I have recreated another app in developers.facebook but nothing happens.
Some video or guide to implementing the API in Node?, because in the documentation it is in curl and I need to guide myself with Node