Facebook Messenger Platform. Setting up webhook with SSL

Digital Marketing Facebook Marketing API 3 years ago

4.19K 1 0 0 0

_x000D_ _x000D_ Finally Facebook launched API for their messenger API for their messenger. This will allow us to create chat bots. In getting started guide, I need to setup webhook. This requires webserver which resides in specific domain and must use SSL connection. I have VPS which has static IP. I made self signed certificate and created simple Node JS web server which uses this certificate. First of all I need to verify token for webhook: app.get('/webhook/', function (req, res) { if (req.query['hub.verify_token'] === '') { res.send(req.query['hub.challenge']); } res.send('Error, wrong validation token'); }) Then I launched this server application and In my facebook app dashboard I click to Verify and Save button. It throws me this error message: This means that Facebook does not want to accept my self signed certificate. This brings a several questions: Do I need to use SSL certificates only provided by Certificate Authorities in order to work with facebook messenger? Working with Facebook messenger is far more difficult than Telegram.

User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 3 years ago
_x000D_ You can use cloudflare to get https instead of self-sign. Or you can use https://letsencrypt.org
0 views
0 shares

No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Similar Forum


Q

What are the best SEO tools for a personal website? What website or tools should I use to build and...

What are the best SEO tools for a personal website? What website or tools should I use to build and...
Q

Why is keyword research important?

Why is keyword research important?
Q

What is SEO ?

What is SEO ?