Socket
Socket
Sign inDemoInstall

facebook-send-api

Package Overview
Dependencies
2
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    facebook-send-api

Promise based module to speak to the facebook send api


Version published
Maintainers
1
Created

Readme

Source

facebook-send-api

typescript & promise based modile for facebook's messenger send api

installation

npm install --save facebook-send-api

usage

const token = 'xxx';
import fb from 'facebook-send-api';
const FBPlatform = new fb(token);

FBPlatform.sendTextMessage(sender.id, 'hello');
FBPlatform.sendButtonMessage((sender.id, 'title', [{
    type: 'postback',
    title: 'reset'),
    payload: RESET_SEARCH,
  },
  {
    type: 'postback',
    title: 'cancel'),
    payload: RESET_CANEL,
  }]);
FBPlatform.sendGenericMessage(sender.id, elements))

Keywords

FAQs

Last updated on 05 Jul 2016

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc