SaumilP / ranglo

GNU General Public License v2.0
1 stars 0 forks source link
bot facebook-bot heroku javascript

ranglo (WIP)

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.

Snippet

Pre-Requirements

Setup


This section contains some information on how to configure bot and facebook settings.

Bot hosting

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.

Commands

FB Configuration

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.

Useful Links