messenger.js example does not work with ngrok because SSL certificate cannot be validate in facebook app webhooks

This issue has been tracked since 2017-04-01.


While implementing the messenger.js test case I was not able to connect to my ngrok generated site from the webhooks setup in the facebook app page. The following error is generated

The URL couldn't be validated. Callback verification failed with the following errors: curl_errno = 51; curl_error = SSL: no alternative certificate subject name matches target host name ''; HTTP Status Code = 200; HTTP Message = Connection established

Can you please update the example warning that ngrok is not working? Otherwise please let me know where I went wrong.


trieudh58 wrote this answer on 2017-04-02

Note that you should use https://.... generated by ngrok, not http://.....

Are you doing it right?

mahermalaeb wrote this answer on 2017-04-13

@trieudh58 Yes I have used https://.... Did you try it on your side and is it working with messenger?

I think I am doing right as explained by the example

bitpantry wrote this answer on 2018-07-04

@mahermalaeb did you figure this out? I'm getting the same error.

lyhourchhen wrote this answer on 2020-06-20

I resolved it by passing verify token from the console /webhook will accept the Verify Token {token} instead of the real verify token you created because of the script generate a new one.

chessai wrote this answer on 2021-02-12

@lyhourchhen mind creating a PR updating the documentation for this?

More Details About Repo
Owner Name wit-ai
Repo Name node-wit
Full Name wit-ai/node-wit
Language JavaScript
Created Date 2016-04-12
Updated Date 2022-12-02
Star Count 1928
Watcher Count 98
Fork Count 497
Issue Count 36


Issue Title Created Date Updated Date