irazasyed/video-downloader

This package is abandoned and no longer maintained. No replacement package was suggested.

Video Downloader for Facebook

dev-master / 1.0.x-dev 2019-10-25 09:06 UTC

This package is auto-updated.

Last update: 2020-11-25 11:19:30 UTC


README

Join PHP Chat Chat on Telegram Latest Version on Packagist Software License Quality Score Total Downloads

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

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.