https://github.com/codedotjs/fbvideos
:link: Easily extract downloadable link of publicly available videos on facebook.
https://github.com/codedotjs/fbvideos
api extract facebook fetch link nodejs scrap url videos
Last synced: 4 months ago
JSON representation
:link: Easily extract downloadable link of publicly available videos on facebook.
- Host: GitHub
- URL: https://github.com/codedotjs/fbvideos
- Owner: CodeDotJS
- License: mit
- Created: 2017-07-21T19:40:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T21:05:43.000Z (over 7 years ago)
- Last Synced: 2024-12-16T22:36:16.457Z (about 1 year ago)
- Topics: api, extract, facebook, fetch, link, nodejs, scrap, url, videos
- Language: JavaScript
- Size: 8.79 KB
- Stars: 29
- Watchers: 3
- Forks: 12
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
> :link: Easily extract downloadable link of publicly available videos on facebook.
## Install
```
$ npm install --save fbvideos
```
## Usage
```js
const fbvid = require('fbvideos');
const video = 'https://www.facebook.com/9gag/videos/10155721204506840/';
fbvid.low(video).then(vid => {
console.log(vid)
// => { url: 'https://video.fpat1-1.fna.fbcdn.net/...mp4?934&oe=5972F363' }
});
fbvid.high(video).then(vid => {
console.log(vid);
// => { url: 'https://video.fpat1-1.fna.fbcdn.net/...mp4?934&OE=2kf2lf4g' }
});
```
## API
#### __`fbvid.low(link)`__
- `Returns a` __`url`__ `for` __`low`__ `resolution facebook video.`
__`link`__
`Type :` `string`
#### __`fbvid.high(link)`__
- `Returns a` __`url`__ `for` __`high`__ `resolution facebook video.`
__`link`__
`Type :` `string`
## Related
- __[`facebookid`](https://github.com/CodeDotJS/facebookid)__ `:` `An api to find user id of any facebook user`
- __[`acuter`](https://github.com/CodeDotJS/acuter)__ `:` `A simple wrapper for twitter media`
## License
MIT © [Rishi Giri](http://rishigiri.ml)