Skip to content
This repository has been archived by the owner on Oct 30, 2020. It is now read-only.
/ video-downloader Public archive

Video Downloader for Facebook.

License

Notifications You must be signed in to change notification settings

irazasyed/video-downloader

Repository files navigation

Video Downloader

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 [email protected] 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.