Socket
Book a DemoInstallSign in
Socket

fb-messenger-bot-express

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fb-messenger-bot-express

Simple Express middleware for facebook messenger bot platform

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
8
-11.11%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Installation (via npm)

$ npm install fb-messenger-bot-express

Usage

Simple Usage

var express = require('express')
  , fbb = require('fb-messenger-bot-express')
  , app = express();

app.use(fbb());

Set your incoming message callback function

var express = require('express')
  , fbb = require('fb-messenger-bot-express')
  , app = express();

app.use(fbb({
  incoming: function(req, res) {
      // handle incoming messages
  }
}));

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",
  "incoming": function(req, res) {}
}

License

MIT License

Author

Patrick Zimmermann (patrick@knowhere.to)

knowhere GmbH (https://knowhere-media.de, https://github.com/knowhereto)

Keywords

messenger

FAQs

Package last updated on 20 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.