Forum Academy Marketplace Showcase Pricing Features

Verifying the Endpoint for WhatsApp Webhooks

Hi,

I am trying to setup webhooks for whatsapp business but when configuring the endpoint, whatsapp asks me for a verify token.

How can I add this verify token to my endpoint?

verifytoken

Documentation: Get Started - WhatsApp Business Platform Cloud API - Documentation - Meta for Developers

Step 1 : Find a large handkerchief
Step 2: Cry into it

That is just practice for what you are about to experience doing this.

The verify token is mainly irrelevant (it is there so that YOU know it comes from Meta, not the other way round), what you need to do is set up the endpoint to be GET and configure the parameters manually (not with initialise).

Pass back the (using return data) hub.challenge (which is a number BTW).

This will verify your endpoint. Now getting it to recognise the data … that is another thing :slight_smile:

3 Likes

Hey Nigel! Thanks for replying.

Is this what you mean?

verifytoken

verifytoken4

verifytoken5

This is not working either.

Where am I wrong here?

It needs to be the hub.challenge that was passed in. Not a fixed number.

1 Like

I think I might have not understand what you said. Do you mean this?

verifytoken7

Not working either.

I tried this as well:

verifytoken8

verifytoken9

and also tried this:

verifytoken10

verifytoken11

Not working yet.

1 Like

For anybody looking to do this, in the end, this is what worked:

verifytoken12

Thanks for the guidance @NigelG

The final objective is to configure Whatsapp Webhooks and save the content of a Whatsapp message into our Bubble database.

Trying to solve the next challenge in this process here: Getting data from Whatsapp Webhooks into Bubble's database (can't use auto detect)

1 Like

Hi!
I’m a newbie.
I read your solution but I couldn’t solve the problem.
The “return data from API” window doesn’t appear for me.
What did you type in the “token” field on whatsapp api?

For understanding return data from api check this: Returning data via API? - #4 by keith

The token is a key given by Meta.

If you are a newbie, I suggest you practice first with other more simple APIs or search for a whatsapp plugin in Bubble instead. Connecting to Meta’s APIs can be a pretty big headache.

Muito obrigado, pela ajuda, eu estava com o mesmo problema.
Vou deixar um dica pra que tá iniciando e que mesmo a sua dica fiquem um tempo sem entender.

1 º - Copiar o endereço do endpoint ainda no médoto POST, depois remove o “/inicialize” e cola lá no imput url webhook do facebook.

2º - Fazer esta configuração que você ensinou.

3º - Clicar em verificar e salvar lá no facebook.

Grande abraço.

1 Like