Interactive Facebook Messanger bot for check facebook messenger platform and chatbot mechanism.
Current version v1
only accepts message from user.
Conversation with bot can start here.
This section contains some information on how to configure bot and facebook settings.
For testing and economic reasons, heroku has been chosen for bot hosting. Please see below useful link on how to setup git repository to push changes to heroku.
Command to login to heroku
shell> heroku login
Command to deploy bot to heroku.
shell> git heroku push master
Command to view heroku configuration variables
shell> heroku config:set FB_PAGE_ACCESS_TOKEN=fake_it_till_you_make_it-token
shell> heroku config
This section contains some information on FB configurations.
To make FB messeging infrastructure, FB developer account would have to be used.
Once Developer account is created, new page can be created using FB account and it can be configured under FB dev profile. Save Page Access Token from Messenger tab (under webhooks
) somewhere safe as it would be used to relay messages between bot and users.
Run below command to confirm your configuration is correct.
shell> curl -X POST "https://graph.facebook.com/v2.6/me/subscribed_apps?access_token=<PAGE_ACCESS_TOKEN>"
NB: Configure bot url to be something like https://my-app.herokuapp.com/webhook/
in messenger configuration.