Posts under category Facebook WhatsApp Business API

I'm trying to unlink a product catalog from a WhatsApp Business Account (WABA) via the Meta Graph API. Still, I can't find the appropriate API endpoint for this action.

From the Meta Business Manager, I noticed that when unlinking a catalog, the following request is made:

Request URL: https://business.facebook.com/api/graphql/ Request Method: POST { "input": { "waba_id": "WABA_ID_HERE", "catalog_id": "CATALOG_ID_HERE", "action": "UNLINK", "actor_id": "ACTOR_ID_HERE", "client_mutation_id": "" } }

However, this seems to be part of the internal GraphQL API, and I can't find a corresponding endpoint in the official Graph API documentation to unlink a catalog from a WABA.

Is there a specific Graph API endpoint or another method that allows unlinking a product catalog from a WABA through the official Meta Graph API? If so, could you provide details on implementing it or any alternative solution?

Thank you in advance for any help!

I´m getting this error when trying to send a message using the test number. {"message":"(#10) Application does not have permission for this action","type":"OAuthException","code":10,"error_data":{"messaging_product":"whatsapp","details":"There was a problem with the access token or permissions you are using for the API call."},"fbtrace_id":"A_dZgGvbhxRuKDW0rK0IPbP"}

Request failing authentication and authorization for account @s.whatsapp.net: request denied from WWW with message: No valid CAT tokens in header - [[{"id_type":"SERVICE_IDENTITY","id_data":"twi.web"},{"id_type":"SERVICE_IDENTITY","id_data":"whatsapp_biz_api_registration"}]], error is Non-retryable, classified as UserError

Error performing query

Unable to add admin system user and generate permanent access token for whatsapp api.

Note :- Error performing query

"I'm encountering an issue while trying to add an admin system user and generate a permanent access token for the WhatsApp API. The process fails with an 'error performing query' message. Interestingly, this problem only occurs with the app I'm developing for my second business; the admin system user for my first business works fine. Could this be a problem on Facebook's end? or this is the problem my end "

We are currently in the process of implementing the Whatsapp Embedded Signup fucntionality that will be required by Twilio later in the year.

We've followed the documentation and we think we haven't made any mistakes.

In our front-end, everything works fine. The correct Whatsapp Business Account ID and Phone Number ID are retrieved from the Meta window.

After this we attempt to register these credentials to a new subaccount in Twilio using Twilio's Java library. We retrieve the phone number to use as the sender using Meta's API.

The step that fails is registering a Whatsapp Sender on the Twilio subaccount. This is done the following way:

private LinkedPhoneNumberResponseDto linkTwilioPhoneNumber(String countryCode, String phoneNumber, Account account, Long wabaId) {         TwilioCreateRequestDto body = TwilioCreateRequestDto.builder()                 .configuration(WhatsappTwilioConnectionConfigurationRequestDto.builder()                         .wabaId(wabaId.toString())                         .build())                 .senderId("whatsapp:" + countryCode + phoneNumber)                 .profile(WhatsappTwilioConnectionProfileRequestDto.builder()                         .name(account.getFriendlyName())                         .build())                 .build();         log.info("RequestBody is: {}", body);         log.info("ACC INFO = {}:{}:{}:{}", account.getSid(), account.getAuthToken(), account.getFriendlyName(), account.getStatus());         ResponseEntity<LinkedPhoneNumberResponseDto> res = restClient                 .post()                 .uri("https://messaging.twilio.com/v2/Channels/Senders")                 .headers(headers -> {                     headers.setContentType(MediaType.APPLICATION_JSON);                     headers.setBasicAuth(account.getSid(), account.getAuthToken());                 })                 .body(body)                 .accept(MediaType.ALL)                 .retrieve()                 .toEntity(LinkedPhoneNumberResponseDto.class);         if (res.getStatusCode().is2xxSuccessful()) {             return res.getBody();         } else {             throw new BadRequestException("Something went wrong linking the phone number to Twilio");         }     } 

For some reason, no matter what phone number we use, we always get the validation error.

We've already tried making the request thorugh Postman instead of Twilio's Java library. We've also tried three different phone numbers. Multiple Whatsapp Business Accounts have also been used.

Any help would be appreciated.