I made a controller in laravel for WhatsApp webhook authentication, run it locally and use ngrok to connect it with WhatsApp webhook, it won't connect, it said "The Callback url or verify token could not be validated", but when I deploy it on heroku it working normally. Is there any special config so I can connect it locally using ngrok ? or is there any alternative solution?
CodePudding user response:
As per the WhatsApp Business Platform Webhook documentation,
Webhooks sent using the WhatsApp Business Management API or Cloud API are sent using HTTPS, so your server must be able to receive and process HTTPS requests, and it must have a valid TLS/SSL certificate installed. Self-signed certificates are not supported.