Thrown when the Webhook Verify Token isn't provided in the constructor
Description
The Webhook Verify Token is a custom secret key that is used to verify against the API
the server is indeed the one that is supposed to receive the incoming requests.
Your server will receive a GET request with the hub.verify_token and hub.challenge parameters.
The verify token should be equal to the one you provided in the constructor.
Once validated, you should reply with the hub.challenge parameter.
The verify token is manually generated while setting up the callback URL in the
Meta's app dashboard -> WhatsApp -> Configuration.
Example
newWhatsAppAPI({ webhookVerifyToken:"your-verify-token", // other options });
Thrown when the Webhook Verify Token isn't provided in the constructor
Description
The Webhook Verify Token is a custom secret key that is used to verify against the API the server is indeed the one that is supposed to receive the incoming requests.
Your server will receive a GET request with the
hub.verify_token
andhub.challenge
parameters. The verify token should be equal to the one you provided in the constructor. Once validated, you should reply with thehub.challenge
parameter.The verify token is manually generated while setting up the callback URL in the Meta's app dashboard -> WhatsApp -> Configuration.
Example
See