Posts under category Facebook WhatsApp Business API

I have created a media template in what's app business API. But I cannot send the template message where the media file is attached in the header.

My media template object.

{     "name": "business_five",     "components": [         {             "type": "HEADER",             "format": "IMAGE",             "example": {                 "header_handle": [                     "https://scontent.whatsapp.net/v/t61.29466-34/323170987_1239753446972881_6537482729362490175_n.jpg?ccb=1-7&_nc_sid=57045b&_nc_ohc=24dzgQb3Xc8AX9Nllk_&_nc_ht=scontent.whatsapp.net&edm=AH51TzQEAAAA&oh=01_AdRx0hLfUqy4nKvgGz1cf23Em9ElezWo1o4UPrfwPGeVgg&oe=64336E79"                 ]             }         },         {             "type": "BODY",             "text": "Dear All,\nWishing you ramadan mubarak."         }     ],     "language": "en_US",     "status": "APPROVED",     "category": "MARKETING",     "id": "1235769690704590" } 

When I'm sending this template message to others using the API https://graph.facebook.com/{{version}}/{{phone_number_id}}/messages
it's showing the error :

(#132012) Parameter format does not match format in the created template

Can anyone help me with how can I send a media template message? My post field was

$message = [     "messaging_product" => "whatsapp",     "to" => "8801704158504",     "type" => "template",     "template" => [         "name" => $template->name,         "language" => [             "code" => $template->language         ],         "components" => [             [                 "type" => "header",                 "parameters" => [                     'type' => 'image',                     'image' => [                         'link' => 'https://imgur.com/a/wu3BP6R'                     ]                 ]             ]         ]     ] ]; 

I'm trying to implement whatsapp business API but I'm getting forbidden error I think its because i dont have enough permission. I have also implemented this code on Postman its works fine there but its not working in app i dont know why?

var client = new HttpClient();         var request = new HttpRequestMessage(HttpMethod.Post, "https://graph.facebook.com/v15.0/110474688636083/messages");         request.Headers.Add("Authorization", "Bearer EAAM2wERIcIsBAFSGQD3yCSYRd5II5u7hU1859z8VcpNFlZBjJrqJUR2QrgZADHlHYSCG0zWvpYqVkFlzea9TsN1wnu8ZBZBSiEaXQu5OZAQC63ufVKZAQDHZB25CIq3TBQ9rxr2DdZB1oZBgJtia4eAEBbzqfjwJpXm9M5SZCGhDh7JbK0s1ldz2Od099jHfKrFvnQDZD");         var content = new StringContent("{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \""+WHATSAPPNO+"\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"hello_world\",\n        \"language\": {\n            \"code\": \"en_US\"\n        }\n    }\n}", null, "application/json");         request.Content = content;         var response = await client.SendAsync(request);         response.EnsureSuccessStatusCode();         Console.WriteLine(await response.Content.ReadAsStringAsync()); 

thank you for your time

Whatsapp (business) cloud API expires your chat session after 24 hours of inactivity. I developed a mini-app to use the API to send server alarms about the state of my machines, but when the (user-initiated) session is aging more than 24 hours the cloud API disables my notifications, it just silently drops all the messages (that I am sending via API) without any error code. Of course an alarm system can't be so unreliable so I need to keep the session with business test account (which sends all the messages) active before the API expires it.

How can I do it? I can't send messages on behalf of myself using the API, so how can you make the conversation active all the time programmatically so it never becomes inactive?

Or if there are any other methods to send Whatsapp messages programmatically all the time without manually initiating conversation with business account I would like to hear your suggestions.

After weeks of having a WhatsApp Cloud API up and running, suddenly all my phone numbers can no longer send messages. Keep getting (#200) You do not have the necessary permissions required to send messages on behalf of this WhatsApp Business Account.

I have already checked the Meta Token Debugger, and my token has all necessary permissions (whatsapp_business_management and whatsapp_business_messaging (and business_management just in case)), and have added (and re-added) (system)users to my WhatsApp accounts w/ new tokens, but no luck.

I already have a support case with Meta, but so far they've been radio-silent, and it's kinda business critical to make sure my bots are able to reply to any request, so trying here too.