Socket
Socket
Sign inDemoInstall

fb-downloads

Package Overview
Dependencies
50
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fb-downloads

Download the video and find the Facebook Uid using the profile link


Version published
Weekly downloads
58
decreased by-21.62%
Maintainers
1
Install size
5.43 MB
Created
Weekly downloads
 

Readme

Source

fb-downloads

npm install fb-downloads

Credits:

MạnhG

Download the video and find the Facebook Uid using the profile link.

Tải video và tìm Uid facebook bằng link profile"

Example

Find Uid

(async () => {

 const toolfb = require("fb-downloads");
 var id = await toolfb.findUid("https://facebook.com/manhict");
 console.log(id);

})();

Or

const toolfb = require("fb-downloads");
toolfb.findUid("https://m.facebook.com/manhict")
  .then(function (item) {
console.log(item);
});

Download video

(async () => {
  
 var toolfb = require("fb-downloads");
 var videolink = await toolfb.getVideoUrl("https://fb.watch/86k4FSqgSb/");
 console.log(videolink);
 /*object: {
    sd: "https://video-mxp1-1.xx.fbcdn.net/v/t42.1790-2/173146224_513475892983670_3402119856878466716_n.mp4?_nc_cat=109&ccb=1-3&_nc_sid=985c63&efg=eyJybHIiOjUxMSwicmxhIjoxMDI1LCJ2ZW5jb2RlX3RhZyI6InN2ZV9zZCJ9&_nc_ohc=lDBJX2D_07kAX94kfWA&rl=511&vabr=284&_nc_ht=video-mxp1-1.xx&oh=c2b28244715229891040fd74b2f2f869&oe=6087F3D0",
    
    hd: "https://scontent-mxp1-1.xx.fbcdn.net/v/t66.36240-6/10000000_3866505630102943_4884150572227376903_n.mp4?_nc_cat=110&ccb=1-3&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ohc=EKMemjHPdrQAX_o0KsS&_nc_ht=scontent-mxp1-1.xx&oh=c2058c81be8d5e754fff76f13b8001a9&oe=60AD2D08"
 }*/
 console.log(videolink.sd);//link SD
 console.log(videolink.hd);//link HD

})();

Keywords

FAQs

Last updated on 06 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc