PHPackages                             muvi/facebook - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. muvi/facebook

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

muvi/facebook
=============

Extends Facebook Graph SDK for PHP to return filesize for remote files

1.1.0(5y ago)032Apache-2.0PHPPHP &gt;=7.0

Since Jan 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chhapanbhogi/Facebook-SDK)[ Packagist](https://packagist.org/packages/muvi/facebook)[ RSS](/packages/muvi-facebook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Extends Facebook PHP SDK to return file size of remote files
============================================================

[](#extends-facebook-php-sdk-to-return-file-size-of-remote-files)

Currently the [Facebook SDK for PHP](https://github.com/facebookarchive/php-graph-sdk) does not return the file size of remote files for which remote files cannot be uploaded. This is a bug and though there is a pull request for it but it has not been merged yet. This package extends the Facebook SDK to return the file size and upload remote files.

Install
-------

[](#install)

You can install this package via composer.

```
composer require muvi/facebook
```

Usage
-----

[](#usage)

Instead of using Facebook\\Facebook just use

```
use FacebookExtended\Facebook;
...
$fbConfig = [
    'app_id' => 'YOUR-FACEBOOK-APP-ID',
    'app_secret' => 'YOUR-FACEBOOK-SECRET-KEY',
    'default_graph_version' => 'v6.0',
];

$fb = new Facebook($fbConfig);
```

This will handle all types of files i.e. local, remote and also stream wrappers.

By default Facebook resumable upload uses 1 Mb chunk for uploading. If you want to upload chunks greater than 1 Mb then you can pass the chunk size in bytes to the uploadVideo method.

```
use FacebookExtended\Facebook;
...
$fbConfig = [
    'app_id' => 'YOUR-FACEBOOK-APP-ID',
    'app_secret' => 'YOUR-FACEBOOK-SECRET-KEY',
    'default_graph_version' => 'v6.0',
];

$fb = new Facebook($fbConfig);
$fb->setDefaultAccessToken(YOUR_PAGE_TOKEN);
$chunkSize = 1048576 * 5;
$response = $fb->uploadVideo(YOUR_FACEBOOK_PAGE_ID, YOUR_VIDEO_PATH, [META DATA], null, 5, null, $chunkSize);
```

The above example will upload 5Mb chunks. Do not use large sizes otherwise you would lose the benefit of Resumable upload.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~105 days

Total

2

Last Release

1852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/69a87506b52bcfa01f0d8dd2c84911dc40161e23d9c0e57393411e546be4e8cf?d=identicon)[chhapanbhogi](/maintainers/chhapanbhogi)

---

Top Contributors

[![SurajMuvi](https://avatars.githubusercontent.com/u/25480042?v=4)](https://github.com/SurajMuvi "SurajMuvi (3 commits)")

---

Tags

phpfacebookfacebook sdk

### Embed Badge

![Health badge](/badges/muvi-facebook/health.svg)

```
[![Health](https://phpackages.com/badges/muvi-facebook/health.svg)](https://phpackages.com/packages/muvi-facebook)
```

###  Alternatives

[kartik-v/yii2-social

Module containing useful widgets for Yii Framework 2.0 that integrates social functionalities from DISQUS, Facebook, Google etc.

91256.5k8](/packages/kartik-v-yii2-social)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)[akkaweb/cakephp-facebook

CakePHP 3 Facebook Plugin

2114.5k](/packages/akkaweb-cakephp-facebook)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
