DialogFlow NodeJS Facebook
============= Create application on Heroku and create github pipeline Make sure to define hellonode.js in the Procfile Deploy application on Github Open Heroku->application->settings Scroll down to Domains and certificates Domain name is your application name Run app in browser and run hellonode.js
- Open DialogFlow integration and stop the bot
- Open developers.facebook.com
- choose your app
- From left choose webhooks, under the products
- Click on Edit Subscription button
- Click remove subscription
very important: When setting the webhook in developers.facebook
in the callback URL paste domainname / webhook/
For example: https://smartattendancetracker.herokuapp.com/webhook/
To check logs on local command prompt
install heroku cli
heroku login
heroku logs -a smartattendancetracker
=====To check if the app is deployed go to heroku open app you will see just deployed
========change at line 72============