Library for connecting to Facebook directly using BotBuilder.
Install
npm install botbuilder-facebook-connector --save
You can create the connector by passing the settings for connecting to Facebook, or by passing a messenger-bot instance
// passing settings
let connector = new FacebookConnector(null, {
token: process.env.FACEBOOK_TOKEN,
verify: process.env.FACEBOOK_VERIFY,
});
// passing messenger-bot instance
import { FacebookConnector } from "botbuilder-facebook-connector";
import * as Bot from "messenger-bot";
let messengerBot = new Bot({
token: process.env.FACEBOOK_TOKEN,
verify: process.env.FACEBOOK_VERIFY,
});
let connector = new FacebookConnector(messengerBot);
- [ ] Cards
- [x] Hero card
- [x] Thumbnail card
- [ ] Receipt card
- [ ] Sign-in card
- [x] Animation card
- [x] Audio card
- [ ] Video card (I get no response from facebook on this one, no idea why)
- [ ] Adaptive card, not supported by facebook, Microsoft just renders to an image, more info
- [x] Quick replies
- [ ] Buttons
- [ ] Templates
- [ ] Button template ref
- [x] Generic template ref
- [x] List template ref
- [x] Media template ref
- [x] Open graph template ref
- [ ] Receipt template ref
- [ ] Airline boarding pass template ref
- [ ] Airline check-in reminder template ref
- [ ] Airline itinerary template ref
- [ ] Airline flight update template ref