fb-downloads
v1.0.7
Published
Download the video and find the Facebook Uid using the profile link
Downloads
56
Readme
fb-downloads
npm install fb-downloads
Credits:
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
})();