If you want to use Facebook Messenger to communicate with your bot, get started with the following steps:
Follow the instructions from the link below to setup Facebook to obtain the FB_PAGE_ID
, FB_APP_ID
, FB_APP_SECRET
, FB_WEBHOOK_BASE
, and FB_PAGE_TOKEN
.
There are two available options for configuration depending on whether you choose the simple provisioning flow to run your bot on Bluemix or run your bot locally with the development configuration.
Take the Facebook values obtained in the previous section and append to the end of config/env
:
export FB_PAGE_ID=xx
export FB_APP_ID=xx
export FB_APP_SECRET=xx
export FB_WEBHOOK_BASE=xx
export FB_PAGE_TOKEN=xx
To start Hubot using the Facebook adapter use: npm run facebook