Facebook Integration with BotKit and NPM

Dashbot offers Botkit middleware to make plugging into your facebook bot easy.

Create a bot API key

Each bot needs its own API key for tracking.

Create a bot to get an API key.

Install Dashbot via NPM

npm install --save dashbot

Include Dashbot

Use the API key created above.

const dashbot = require('dashbot')(<strong>process.env.DASHBOT_API_KEY</strong>).facebook;

After you create your Botkit controller, simply add send and receive middleware

const controller = Botkit.facebookbot(...);

// Add the dashbot middleware  


View a complete example.