2.2.2 • Published 7 years ago

mango-reactions v2.2.2

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

#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

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago