API graph.facebook.com/v18.0/[numberid]/messages not working
1

I was sending messages through https://graph.facebook.com/v18.0/[numberid]/messages API normally during my app tests until today without any issues. Suddenly, the messages are not being delivered. As the response back from the graph API, I get the status 200 and the successful json body content. Below is the format of my request data:

{ "messaging_product": "whatsapp", "recipient_type": "individual", "to": "+[country code][area code][telephone number]", "type": "text", "text": { "preview_url": false, "body": "Hello, this is a test message" } }

Please help!

Alexandre
تم طرح السؤال منذ حوالي شهرين
Alexandre

Here's the response back just in case it helps:

HTTP/1.1 200 OK Content-Type: text/javascript; charset=UTF-8 Vary: Origin x-ad-api-version-warning: You are calling a deprecated version of the Ads API. x-business-use-case-usage: {"xxx":[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]} Access-Control-Allow-Origin: * facebook-api-version: v18.0 Strict-Transport-Security: max-age=15552000; preload Pragma: no-cache Cache-Control: private, no-cache, no-store, must-revalidate Expires: Sat, 01 Jan 2000 00:00:00 GMT x-fb-request-id: Al2Q_-v_iqQphTeLI5q9Uk7 x-fb-trace-id: HGzN4Awk1DM x-fb-rev: 1016595301 X-FB-Debug: KRim6/O6BpkzfKn0+9hSy6Qno6/EWDIXFqGjef/vK/5mX7d82OmR5RFgjViWZKoL1X0G7R0V9wPcQy9uO2CCCQ== Date: Wed, 18 Sep 2024 19:45:56 GMT X-FB-Connection-Quality: EXCELLENT; q=0.9, rtt=14, rtx=0, c=10, mss=1380, tbw=372, tp=-1, tpl=-1, uplat=536, ullat=0 Alt-Svc: h3=":443"; ma=86400 Connection: keep-alive Content-Length: 181

{ "messaging_product": "whatsapp", "contacts": [ { "input": "+xxx", "wa_id": "xxx" } ], "messages": [ { "id": "wamid.xxx" } ] }

‏١٨ سبتمبر‏‏١٢:٥٣ م‏111
الإجابة المحددة
1

Team, I found the issue and it was simpler than I thought. Nothing technical and I believe having it documented here will help other people: - Check if your application "App Mode" selection is not in Development mode. In order to make the WhatsApp send messages to any number, the application must be in Live mode. I've changed my Privacy Statement and Terms of Services pages location and that may have triggered the mode change back to Development. Before switch to Live again, I had to update the pages location and that worked for me. All messages are being sent normally now!

‏١٩ سبتمبر‏‏٤:٤٨ ص‏111
Alexandre