3- Meta configuration

We will make the corresponding configurations for WhatsApp and the meta api to work correctly.

Get a permanent token

You can get this permanent token on the meta developer page:

Meta for developers account > My apps > WhatsApp > Settings.

Activate webhook fields

This is mandatory, otherwise our solution will not work.

We must check the messages option which is the only one we need to receive the messages, if you need other options in this section you can configure it.

Configure webhook

To configure the webhook you need the url of your application in fly.io in my case it would be https://******.fly.dev/whatsapp this can be obtained in the overview section in the application that is in fly.io.

As for the verification identifier or Access Token we put the same that we put in the fly.io environment variable as mentioned in [access token key].

Version of the api

As for the version of the api you can change it as required in the mentioned file (.env).

It is important to keep in mind that the meta api is updated, so we must update the environment variable every so often.

You must also modify this parameter according to the version you are using, both in messages and in the fields you use in your implementation.

This would be all from meta and the connection to establish, if everything is connected correctly you should be able to start sending and receiving messages without any problem, although as other connections are missing you may get errors related to this in the fly.io console.

📌 More information about the permanent tokenarrow-up-right

Última actualización