This package has been deprecated

Author message:

Moved to https://github.com/Mangocorporation/mango-reactions

mango-reactions

2.2.2 • Public • Published

#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

Readme

Keywords

none

Package Sidebar

Install

npm i mango-reactions

Weekly Downloads

1

Version

2.2.2

License

ISC

Last publish

Collaborators

  • persocon
  • raulmangolin