Giter VIP home page Giter VIP logo

fbvideos's Introduction




๐Ÿ”— Easily extract downloadable link of publicly available videos on facebook.

Install

$ npm install --save fbvideos

Usage

const fbvid = require('fbvideos');

const video = 'https://www.facebook.com/9gag/videos/10155721204506840/';

fbvid.low(video).then(vid => {
  console.log(vid)
  // => { url: 'https://video.fpat1-1.fna.fbcdn.net/...mp4?934&oe=5972F363' }

});

fbvid.high(video).then(vid => {
  console.log(vid);
  // => { url: 'https://video.fpat1-1.fna.fbcdn.net/...mp4?934&OE=2kf2lf4g' }
});

API

fbvid.low(link)

  • Returns a url for low resolution facebook video.

link

Type : string

fbvid.high(link)

  • Returns a url for high resolution facebook video.

link

Type : string

Related

  • facebookid : An api to find user id of any facebook user
  • acuter : A simple wrapper for twitter media

License

MIT ยฉ Rishi Giri

fbvideos's People

Contributors

codedotjs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fbvideos's Issues

Do this method still works?

Facebook changed alot in their API for video fetching. Just want to make sure, is this method is still effective?

Cross-Domain ( cors ) issue

When I compile code with webpack and run it in my browser it shows access cors access blocked by Facebook.

Please solve this issue.

Example code is not working

Hi,

I run the example code and I get a "Either the video is deleted or it's not shared publicly!", while the video exists and its public
Is the extraction of fb url still supported?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.