New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mango-reactions

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mango-reactions

Show realtime Facebook Reactions from a live streaming video

  • 2.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

#mangoReactions Build Status

Show realtime Facebook Reactions from a live streaming video

Example

##How to use

npm install mango-reactions --save
var mangoReactions = require('mango-reactions');

var options = {
    "postID": 12345678910, //The live straming post ID
    "access_token": "YOUR FACEBOOK ACCESS TOKEN HERE",
    "callback": callbackFunction
};

var reactions = new mangoReactions(options);

function callbackFunction(data) {
    console.log(data);
    //This will print a object like
    //{"LIKE": 3, "LOVE": 1, "WOW√: 3, "HAHA": 2}
}

###Options callback required

This is the function that will be called every time the script runs

postID required

The Facebook post ID from the streaming video (see bellow)

access_token required

Your Facebook valid Access Token (see bellow)

refreshTime

Amount in seconds that the code will run to update the values. Default is 5 seconds.

##How to start a live video I recommend you read this tutorial on how to start a streaming. It's very easy using the OBS App. https://obsproject.com/forum/resources/how-to-stream-to-facebook-live.391/

##How to get the post ID

How to get the post ID

###Thanks to

  • @persocon helps and pull requests
  • @konpa's devicon

FAQs

Package last updated on 09 Jan 2017

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc