irazasyed / video-downloader
Video Downloader for Facebook
Installs: 916
Dependents: 0
Suggesters: 0
Security: 0
Stars: 59
Watchers: 6
Forks: 24
Open Issues: 2
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ^6.1
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is auto-updated.
Last update: 2020-11-25 11:19:30 UTC
README
Video Downloader Package for Facebook. Automatically generates download links for HD and SD quality & lets you download them. Comes with Laravel Support out of the Box!
Install
Via Composer
$ composer require irazasyed/video-downloader
Usage
getVideoInfo Method:
Get Video Info By Video ID:
$downloader = new Irazasyed\VideoDownloader\Factory('facebook'); $videoInfo = $downloader->getVideoInfo('10154015752566729');
Get Video Info By URL:
$videoUrl = 'https://www.facebook.com/facebook/videos/vl.515712155263726/10154015752566729/?type=1&theater'; $downloader->getVideoInfo($videoUrl);
Example Response:
$response = [ "title" => "Facebook" // Video Title if exists, Page Title otherwise. "description" => "Is seeing the world on your mind?" // Video Caption "owner" => "Facebook" // Uploader Name "created_time" => "1441004460" // Unix Time "hd_link" => "<HD MP4 LINK>" "sd_link" => "<SD MP4 LINK>" ];
Supported URL Types (HTTP/HTTPS):
- http://www.facebook.com/video.php?v=VIDEO_ID
- http://www.facebook.com/photo.php?v=VIDEO_ID
- http://www.facebook.com/video/video.php?v=VIDEO_ID
- https://www.facebook.com/USER_NAME/videos/USER_ALBUM/VIDEO_ID/?type=2&theater
- https://www.facebook.com/USER_NAME/videos/VIDEO_ID/?pnref=story
Download Method:
$isAsyncRequest = true; $downloader->download('Remote_File_URL', '/path/to/destination/filename.mp4', $isAsyncRequest);
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email syed+gh@lukonet.com instead of using the issue tracker.
Credits
Disclaimer
This project and its author is neither associated, nor affiliated with Facebook in anyway. Use of this project is at your own risk and subject to the license of this project. This is simply an experimental project. It is highly recommended to go through the Automated Data Collection Terms of Facebook & the License section of this project for more information.
License
The MIT License (MIT). Please see License File for more information.