npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fb-info-video

v1.0.2

Published

Get info video facebook

Downloads

2,716

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"
  }
}