Posts under category Meta & Facebook

I am using the Whatsapp Business API and I am testing my app using their test format, which gives you a test number and you can add your personal phone number to receive the test template. I am correctly receiving the test template from Meta to my phone number, however when I actually test my app, by me sending a message to that test number, this error shows up:

response: { status: 400, statusText: 'Bad Request', headers: Object [AxiosHeaders] { vary: 'Origin, Accept-Encoding', 'x-business-use-case-usage': '{"199147949938479":[{"type":"whatsapp","call_count":1,"total_cputime":1,"total_time":1,"estimated_time_to_regain_access":0}]}', 'content-type': 'application/json', 'www-authenticate': 'OAuth "Facebook Platform" "invalid_request" "(#131030) Recipient phone number not in allowed list"',

My phone number is definitely in the allowed list as I am receiving their test template with no problems. Maybe there is a problem with my area code? I am from Argentina and my area code is +54. It also has a 9 before the actual phone number. I tried with and without the 9 and in all possible format. No results. Any clues what may be?

I'm trying to get notified about my contacts' status(picture & video) changes on whatsapp using whatsmeow go library. The library doesn't specifically mention this feature on the documentations. Does anyone know if this feature is supported or if there is a work around for it? Also does this comply with whatsapp terms of services or no?

I tried to check whatsapp web client and their business api but I could not find a clue.

I am building a website in which i want that when a user places an order, store owner should receive the order details in his whatsapp. Like First and last name, address, email, mobile and products which he purchased. Currently i tried Twilio for this purpose, but i don't want to use any 3rd party for this. I want to use only CORE PHP and whatsapp business api or library to achieve this.

Here is what i have done so far.

`<?php require 'vendor/autoload.php'; use Twilio\Rest\Client; $accountSid = '0000-0000-0000-0000-00000'; $authToken  = '0000-0000-00000-00000-00000'; $twilioNumber = 'whatsapp:+12000000000';  $whatsappNumber = 'whatsapp:+1255844885454';  $firstName = $_POST['first_name']; $lastName = $_POST['last_name']; $address = $_POST['address']; $townCity = $_POST['town_city']; $mobile = $_POST['mobile']; $totalprice = $_POST['totalprice']; $orderDetails = "First Name: $firstName\nLast Name: $lastName\nAddress: $address\nTown/City: $townCity\nMobile: $mobile\nTotal Amount: Rs$totalprice"; $client = new Client($accountSid, $authToken); try {     $message = $client->messages->create(         $whatsappNumber,         array(             'from' => $twilioNumber,             'body' => $orderDetails         )     );     header("Location: checkout.php");     exit(); } catch (Exception $e) {     echo 'Error: ' . $e->getMessage(); } `