messenger-bot-tutorial icon indicating copy to clipboard operation
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

Open ruby-bot opened this issue 7 years ago • 3 comments

wrong_verification 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.

ruby-bot avatar Jul 22 '17 06:07 ruby-bot

Have you fixed it yet???

buidairadio avatar Mar 12 '19 08:03 buidairadio

Hi, I have the same problem, how did you solve it?

fabian-mendoza avatar Feb 11 '23 14:02 fabian-mendoza

Hi, I found it the hard way to solve this issue.

  1. Make sure you use the correct port and "then" use ngrok (eg.3000). You have to run both ngrok and node simultaneously.
  2. Use correct endpoint on both code and on the Callback URL
  3. The response is a big json and you have to return req.query["hub.challenge"] as an Integer/Number.

Baalamurgan avatar Apr 10 '23 14:04 Baalamurgan