1.0.0 • Published 7 years ago

botbuilder-facebook-thumbs-up v1.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

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/