Can't connect WhatsApp

Hello everyone
I haven’t managed to connect WhatsApp yet. I have set up the WhatsApp app in the Facebook manager and when I enter the API secret, token, etc. it shows me the right number. But when I enter the callback URL and the token in Facebook I get the following error message:
The callback URL or verify token couldn’t be validated. Please verify the provided information or try again later.

I don’t know if that helps. When I call up the callback URL in the browser I get the following message from Zammad:
422: The change you wanted was rejected.
The WhatsApp channel webhook configuration could not be verified.

Can anyone help me?

1 Like

Hi @heinermann. Do you have some log entries for it?

E, [2024-06-21T14:01:17.613708#11781-149600] ERROR – : WhatsApp Webhook: GET https://DOMAIN/api/v1/channels_whatsapp_webhook/502c9833-fa27-4ed5-8ba5-92ba4e863370
E, [2024-06-21T14:01:17.613760#11781-149600] ERROR – : WhatsApp Webhook: Headers: #<ActionDispatch::Http::Headers:0x000075bf2e833228 @req=#<ActionDispatch::Request GET “https://DOMAIN/api/v1/channels_whatsapp_webhook/502c9833-fa27-4ed5-8ba5-92ba4e863370” for IP>>
E, [2024-06-21T14:01:17.613793#11781-149600] ERROR – : WhatsApp Webhook: Params: #<ActionController::Parameters {“controller”=>“channels_whatsapp”, “action”=>“verify_webhook”, “callback_url_uuid”=>“502c9833-fa27-4ed5-8ba5-92ba4e863370”} permitted: false>
E, [2024-06-21T14:01:17.613818#11781-149600] ERROR – : WhatsApp Webhook: Payload:
E, [2024-06-21T14:01:17.613940#11781-149600] ERROR – : The WhatsApp channel webhook configuration could not be verified. (Exceptions::UnprocessableEntity)

1 Like

In the admin interface, in WhatsApp, is there a log shown as well? It might contain more information what went wrong.

no, there are no entries in the log.

Did you use the official documentation for setting it up? Mh, currently, no idea.

Yes, I followed the instructions from Zammad. However, I still have a message on Facebook that I can’t get rid of. When I click on the links in the message, the app opens and I don’t get an alert. Does that have something to do with it? I suspect there’s an error with my Zammad.


Screenshot 2024-06-27 115435

In my experience you’ll have to add payment information and ensure that the display name of the whatsapp number fits what’s on your companies registration. At least that was the issue a day after I successfully integrated it.

You should find this in the dashboard or by using “review issue” below the number. The interface is extremely confusing and has a bad overview.

It’s most likely on Metas site though.

I have stored the payment information. Do you mean that the app has to have the same name as the stored number?

Would be nice to have the real headers of the request, but there are not logged in a good way currently.
And the verify token is really the correct one? Maybe there is some whitespace present?

the token is correct. there is no whitespace…

What is definitive is that there are missing query parameters from the Meta side. Normally it should be like this:

#<ActionController::Parameters {“hub.mode”=>“subscribe”, “hub.challenge”=>“123456”, “hub.verify_token”=>“j918293jla”, “controller”=>“channels_whatsapp”, “action”=>“verify_webhook”, “callback_url_uuid”=>“a-uuid-here”}

The question will be if it’s filtered in some way on your side or if Meta is sending it already wrong. You could test sending this verify request to another endpoint (you could create one here: https://pipedream.com/).