fb-info-video
v1.0.2
Published
Get info video facebook
Downloads
9,530
Maintainers
Readme
User manual fb-video-info package fb-video-info is an npmjs package used to get information about videos on Facebook.
Setting To install fb-video-info, run the following command in the terminal:
npm install fb-video-info
Use First, you need to import fb-video-info into your file as follows:
const fbInfoVideo = require('fb-info-video');
You can then use the getInfo()
function to get information about the video on Facebook. This function takes a link of a Facebook video and returns a Promise. For example:
fbInfoVideo.getInfo('https://www.facebook.com/facebook/videos/10153231379946729/')
.then(info => console.log(info))
.catch(err => console.error(err));
The result will return an object containing information about the video:
{
"video": {
"title": "How to Share With Just Friends | How to share with just friends. | By Facebook",
"reaction": {
"Like": 42187,
"Love": 542,
"Care": 216,
"Haha": 42,
"Wow": 40,
"Sad": 27,
"Angry": 6,
"Thankful": 1
},
"view": "2761205",
"comment": "2582",
"url_video": "https://scontent-iad3-2.xx.fbcdn.net/v/t43.1792-4/10435682_10153231382156729_130140491_n.mp4?_nc_cat=103&ccb=1-7&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6ImhkIn0%3D&_nc_ohc=-kixZyeCVcAAX8KwpRd&_nc_ht=scontent-iad3-2.xx&oh=00_AfDSRosG9PdEJVJNqxqwdIEqZ4XbNxkK19ec1ZC_RcmWeg&oe=641488E6",
"thumbail_video": "https://scontent-iad3-1.xx.fbcdn.net/v/t15.5256-10/313492345_481412517285613_6686871781166722567_n.jpg?stp=dst-jpg_p206x206&_nc_cat=102&ccb=1-7&_nc_sid=ad6a45&_nc_ohc=nsuizbuUYZEAX8pUITY&_nc_ht=scontent-iad3-1.xx&oh=00_AfByzpdUcyJDtFEU-magMx0D4X22MhlLNdkfRFcZNWq4BQ&oe=6418D1DF"
},
"author": {
"id": "20531316728",
"name": "Facebook",
"avatar": "https://scontent-iad3-1.xx.fbcdn.net/v/t1.6435-1/58978526_10158354585751729_7411073224387067904_n.png?stp=cp0_dst-png_p40x40&_nc_cat=1&ccb=1-7&_nc_sid=1eb0c7&_nc_ohc=4uGFXfKkcJAAX9SCuO8&_nc_ht=scontent-iad3-1.xx&oh=00_AfCASGdDOM8ANw5oU8vrFwTp0FoPv4EHt6B5_ntISlIJqA&oe=643BCC65"
}
}