messenger-bot-tutorial
messenger-bot-tutorial copied to clipboard
The URL couldn't be validated. Callback verification failed with the following errors: HTTP Status Code = 502; HTTP Message = Bad Gateway
my heroku link is not working. I am making Facebook bot in ruby on rails, and this is giving error.
I have attached screenshot of the error, please help me.
Have you fixed it yet???
Hi, I have the same problem, how did you solve it?
Hi, I found it the hard way to solve this issue.
- Make sure you use the correct port and "then" use
ngrok
(eg.3000). You have to run both ngrok and node simultaneously. - Use correct endpoint on both code and on the Callback URL
- The response is a big json and you have to return
req.query["hub.challenge"]
as an Integer/Number.