A Node.js module using the Facebook Graph API to quickly extract direct video URLs from Facebook links for easy downloading.
Use the package manager npm to install.
npm install another-fb-video-downloader
const { facebook } = require('another-fb-video-downloader');
// ? facebook(url, lq = true||false)
// ? url: string
// ? lq: boolean (true for low quality) (optional)
facebook('https://www.facebook.com/100008639590618/videos/266077793027023/' false)
.then(videoUrl => console.log(videoUrl))
.catch(error => console.error(error));
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
@monokaijs for the original code