WhatsApp - configure 'Webhooks' using the 'Callback URL' and 'verify token'

I am following the ‘Quickstart’ section of the Meta WhatsApp development page. After completing the ‘Getting Started’ section, I am trying to do the ‘Configuration’ part of the process. To deploy the ‘Webhook’ (To get alerted when I receive a message or when a message’s status has changed), I need to configure ‘Webhooks’ using the ‘Callback URL’ and ‘verify token’.

I used the callback url ‘https://xxxxxxxxxxx.glitch.me/webhook’ and the verify token. As required, I have added the env variables - VERIFY_TOKEN nad WHATSAPP_TOKEN. I have done all the steps 2 to 5 in in the section “Configure App Dashboard with Glitch endpoint and verification token” (Link to tutorial - Sample App Endpoints - WhatsApp Business Platform - Documentation - Meta for Developers). But I am getting the dialogue - “The callback URL or ‘verify’ token couldn’t be validated. Please verify the provided information or try again later”.

Please help me understand how to solve this issue. Thanks in advance!

Hi @smmanager_avsinnoinf! It seems like there might be an issue with the callback URL or verify token that you provided. Here are a few things that you can try to troubleshoot the issue:

  1. Double-check the callback URL: Make sure that the callback URL that you provided matches the one in your Glitch project. The URL should start with “https://” and end with “/webhook”. Also, make sure that the Glitch project is currently running.
  2. Verify the token: Check that the verify token that you provided matches the one in your Glitch project. The token should be a string of random characters that you chose yourself.
  3. Check the logs: Glitch provides a console log that shows any errors or issues that are occurring with your project. Check the log to see if there are any error messages related to the webhook or callback URL.
  4. Reach out to WhatsApp support: If you are still unable to resolve the issue, you can reach out to the WhatsApp support team for further assistance. You can do this by visiting the WhatsApp Business API support page and filling out the support form.

I hope this helps! Let me know if you have any further questions.

Thanks for the troubleshooting tips @_tr. I will implement them and revert with further developments.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.