I am trying to set up a web hook for the new Facebook Messenger bot platform on my PHP webserver and am receiving this error:
The URL couldn\'t be val
@shane
webhook: function(req, res) {
if (req.query['hub.verify_token'] === 'tokentoken') {
res.send(req.query['hub.challenge']);
} else {
res.send('Error, wrong validation token');
}
}
Note sure what exactly you're doing. but this is what I did and it's working.
I've tested using ngrok server as I don't have a domain name and the callback URL is https://werwrwetwtw.ngrok.io/webhook
Hope this helps!