fb-messenger-bot-express
fb-messenger-bot-express is a node.js package for providing a Connect/Express middleware that can be used to provide the required endpoints for facebook messenger bot platform.
npm)
Installation (via$ npm install fb-messenger-bot-express
Usage
Simple Usage
var express = fbb = app = ; app;
Set your incoming message callback function
var express = fbb = app = ; app;
Configuration Options
-
validationCode
: Configures the validation code for your webhook. -
route
: Configures the webhook path -
incoming
: Callback function for incoming messages from facebook messenger.
The default configuration is the equivalent of:
"validationCode": "fbvalidation" "route": "/messenger" {}
License
Author
Patrick Zimmermann (patrick@knowhere.to)
knowhere GmbH (https://knowhere-media.de, https://github.com/knowhereto)