priyansh-fb-downloader

2.0.0 • Public • Published

Instalation :

> npm i --save priyansh-fb-downloader

Example - No Cookies/User-Agent

const getFbVideoInfo = require("priyansh-fb-downloader")

getFbVideoInfo("https://www.facebook.com/FoodMakersBr/videos/tire-o-feij%C3%A3o-do-pote-de-sorvete-e-fa%C3%A7a-essa-receita-ainda-hoje/454262112817834/")
.then((result)=>{
    console.log(result)
}).catch((err)=>{
    console.log(error)
})

Example - With Cookies/User-Agent (Optional)

const getFbVideoInfo = require("priyansh-fb-downloader")
const cookies = "your-fb-cookies"
const userAgent = "your-user-agent"

getFbVideoInfo("https://www.facebook.com/FoodMakersBr/videos/tire-o-feij%C3%A3o-do-pote-de-sorvete-e-fa%C3%A7a-essa-receita-ainda-hoje/454262112817834/", cookies, userAgent)
.then((result)=>{
    console.log(result)
}).catch((err)=>{
    console.log(error)
})

Output Example

{
    url: 'https://www.facebook.com/FoodMakersBr/videos/tire-o-feij%C3%A3o-do-pote-de-sorvete-e-fa%C3%A7a-essa-receita-ainda-hoje/454262112817834/'
    duration_ms: 189632,
    sd: 'https://video.xx.fbcdn.net/v/t42.1790-2/291993469_1608973876186623_6166983060768213875_n.mp4?_nc_cat=109&ccb=1-7&_nc_sid=55d0d3&efg=eyJybHIiOjU0MCwicmxhIjoxMDY2LCJ2ZW5jb2RlX3RhZyI6InN2ZV9zZCIsInZpZGVvX2lkIjo0NTQyNjIxMTI4MTc4MzR9&_nc_ohc=N-comWpG9-sAb4PLB1W&rl=540&vabr=300&_nc_ht=video.fgig29-1.fna&oh=00_AfBGG3j3Z4kT9q-dSEUAA_vQ3M6swPYcyDr0KVBPitPxZg&oe=6625ABBF'
    hd:'https://scontent.xx.fbcdn.net/o1/v/t2/f1/m69/GENwABqLYfiCd64BAFrZyH6cg81EbmdjAAAF.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ht=video.fgig29-1.fna.fbcdn.net&_nc_cat=111&strext=1&vs=1a025aaab4b2fe23&_nc_vs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MTc2MTAwA2FwcAVWaWRlbwJjdBlDT05UQUlORURfUE9TVF9BVFRBQ0hNRU5UE29yaWdpbmFsX2R1cmF0aW9uX3MHMTg5LjYzMgJ0cxVwcm9ncmVzc2l2ZV9lbmNvZGluZ3MA&ccb=9-4&oh=00_AfAm3fYzsoEwGZ572nnYHpm7fqzk81TZg7SFlJ3Z7UIVGw&oe=6621B916&_nc_sid=1d576d&_nc_rid=652626539735996&_nc_store_type=1'
    title: 'Tire o Feijão do pote de sorvete e faça essa receita ainda hoje! 😀'
    thumbnail: 'https://scontent.fgig29-1.fna.fbcdn.net/v/t15.5256-10/292550706_1191207104786597_3564334825307849740_n.jpg?stp=dst-jpg_s960x960&_nc_cat=103&ccb=1-7&_nc_sid=5f2048&_nc_ohc=fLZQh_qFYBUAb7zL87i&_nc_ht=scontent.fgig29-1.fna&oh=00_AfCiM2A2dNpskVlOrYT4SfmKQjZGBsBFM0fV0ta-q81HFw&oe=66258602'
}

Package Sidebar

Install

npm i priyansh-fb-downloader

Weekly Downloads

2,377

Version

2.0.0

License

MIT

Unpacked Size

11.2 kB

Total Files

7

Last publish

Collaborators

  • priyanshu_12