<p align="center">
<img src="https://avatars0.githubusercontent.com/u/4674786?s=400&u=2f77d382a4428c141558772a2b7ad3a36bebf5bc&v=4" width="128" height="128"/>
</p>
<p align="center">
<a href="#"><img title="FB-DOWNLOADER-SCRAPPER" src="https://img.shields.io/badge/-FB--DOWNLOADER--SCRAPPER-blue?style=for-the-badge"></a>
</p>
<p align="center">
<a href="https://github.com/victorsouzaleal"><img title="Autor" src="https://img.shields.io/badge/Author-victorsouzaleal-blue.svg?style=for-the-badge&logo=github"></a>
</p>
</p>
<p align="center">
<a href="https://hits.seeyoufarm.com"><img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fvictorsouzaleal%2Ffb-downloader-scrapper&count_bg=%23007EC6&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=true"/></a>
<a href="#"><img title="Version" src="https://img.shields.io/github/package-json/v/victorsouzaleal/fb-downloader-scrapper?color=blue&logo=github&style=flat-square"></a>
<a href="#"><img title="Size" src="https://img.shields.io/bundlephobia/min/fb-downloader-scrapper?color=blue&logo=npm&style=flat-square"></a>
<a href="https://github.com/victorsouzaleal/fb-downloader-scrapper/stargazers/"><img title="Stars" src="https://img.shields.io/github/stars/victorsouzaleal/fb-downloader-scrapper?color=blue&logo=github&style=flat-square"></a>
<a href="https://github.com/victorsouzaleal/fb-downloader-scrapper/watchers"><img title="Watching" src="https://img.shields.io/github/watchers/victorsouzaleal/fb-downloader-scrapper?color=blue&logo=github&style=flat-square"></a>
<a href="#"><img title="MAINTENED" src="https://img.shields.io/badge/MAINTENED-YES-blue?style=flat-square"/></a>
</p>

## Instalation :
```bash
> npm i fb-downloader-scrapper@latest
```

## Example - ESM
```js
import { getFbVideoInfo } from "fb-downloader-scrapper"

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 - CommonJS
```js
const { getFbVideoInfo } =  require("fb-downloader-scrapper")

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)
})

```

## 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=HBksFQIYOnBhc3N0aHJvdWdoX2V2ZXJzdG9yZS9HRU53QUJxTFlmaUNkNjRCQUZyWnlINmNnODFFYm1kakFBQUYVAALIAQAVAhg6cGFzc3Rocm91Z2hfZXZlcnN0b3JlL0dLdy1jUkY5WURmc3ZvVUNBTm1OWG5rT3Y3cHVidjRHQUFBRhUCAsgBAEsHiBJwcm9ncmVzc2l2ZV9yZWNpcGUBMQ1zdWJzYW1wbGVfZnBzABB2bWFm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Tire o Feij&#xe3;o do pote de sorvete e fa&#xe7;a essa receita ainda hoje! &#x1f600;'
    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'
}
```

