fbm-send-api
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

Facebook Messenger Send API

Helper methods for interacting with the send API, these perform validation of text lengths and also filter out any null or undefined values from button arrays.

Installation

Add this to your project with npm install --save ByteLondon/fbm-send-api.

Usage

Set up functions like this, to generate messages ready for sending to Facebook.

const mkFeedbackMessage = () => mkTextMessage('Are you happy?', mkQuickReplies({
  '👍': 'YES',
  '👎': 'NO'
}))

These can be used directly with the Send API, and also with some SAAS providers such as ChatFuel.

Readme

Keywords

none

Package Sidebar

Install

npm i fbm-send-api

Weekly Downloads

5

Version

1.5.1

License

BSD-3-Clause

Unpacked Size

6.28 kB

Total Files

4

Last publish

Collaborators

  • ianp