facebook-live-chat

1.0.2 • Public • Published

facebook-live-chat

A module for grabbing live chat comments from a Facebook livestream.

Example

const Facebook = require('facebook-live-chat');
 
const fb = new YouTube('FACEBOOK_USER_ID_HERE', 'USER_ACCESS_TOKEN_HERE');
 
fb.on('ready', () => {
    console.log('ready!');
    fb.listen(1000);
});
 
fb.on('chat', json => {
    console.log(json.message);
});
 
fb.on('error', err => {
    console.log(err);
});

Install

$ npm install --save facebook-live-chat

License

MIT

Author

Ole Henrik Stabell

Readme

Keywords

Package Sidebar

Install

npm i facebook-live-chat

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • hennamann