Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.02 KB

facebook.md

File metadata and controls

27 lines (18 loc) · 1.02 KB

Using Facebook Messenger with your bot

If you want to use Facebook Messenger to communicate with your bot, get started with the following steps:

Facebook setup

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.

Configure the bot with Facebook Credentials

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.

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

Run with Facebook Adapter

To start Hubot using the Facebook adapter use: npm run facebook