Added support for new Messenger Platform features (#26). This includes:
bot.setGetStartedButtonbot.setPersistentMenubot.sendSenderAction
See the README for full documentation.
- [BREAKING] Removed
bot.verify()middleware. Instead, specify the optionverifywhen creating the bot instance, and the middleware will be automatically set up. Example:
let bot = new Bot({
token: 'PAGE_TOKEN',
verify: 'VERIFY_TOKEN'
})- [BREAKING] Added
errorevent to bot instance. This will require you to create abot.on('error')handler, otherwise Node will throw the error instead. - Add message integrity checking. Specify your app's secret as
app_secretin the options of the bot instance. You can find this on your Facebook app's dashboard. - Add testing for all functions.