Socket
Socket
Sign inDemoInstall

botbuilder-facebook-thumbs-up

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    botbuilder-facebook-thumbs-up

Checks whether the user's message from Bot Framework contains the Facebook Thumbs Up icon, so that the bot can respond to it appropriately.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Facebook Thumbs Up Checker for Microsoft Bot Framework

###Short sample

const thumbsUp = require('botbuilder-facebook-thumbs-up');

// Check whether the user pressed the Facebook Thumbs Up
// button in Messenger, and respond appropriately:
if (thumbsUp.isThere(session)) {
  session.send('Haha thanks!');
} else {
  // Do the usual bot logic
}

###What's it for? This package provides a way to check whether the user sent a "Thumbs Up" to your bot in Facebook Messenger by clicking the Thumbs Up button. It works with bots written in Node.js using Microsoft Bot Framework (see the botbuilder package).

There is only one method called isThere(), which returns true if the user sent Thumbs Up, and false in all other cases.

In case you need it, thumbsUp.FULL_URL contains the full URL of the Facebook thumbs up icon (a PNG file).

###Comments and suggestions If you have any comments, contact me here: https://github.com/catcher-in-the-try/

Keywords

FAQs

Last updated on 18 Oct 2017

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