#mangoReactions
![Build Status](https://travis-ci.org/raulmangolin/mango-reactions.svg?branch=master)
Show realtime Facebook Reactions from a live streaming video
![Example](https://github.com/raulmangolin/mango-reactions/raw/HEAD/example/readme/example.png)
##How to use
npm install mango-reactions --save
var mangoReactions = require('mango-reactions');
var options = {
"postID": 12345678910,
"access_token": "YOUR FACEBOOK ACCESS TOKEN HERE",
"callback": callbackFunction
};
var reactions = new mangoReactions(options);
function callbackFunction(data) {
console.log(data);
}
###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](https://github.com/raulmangolin/mango-reactions/raw/HEAD/example/readme/postid.png)
###Thanks to