PHPackages                             socialh4ck/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. [API Development](/categories/api)
4. /
5. socialh4ck/facebook

ActiveLibrary[API Development](/categories/api)

socialh4ck/facebook
===================

Facebook PHP SDK Package for Laravel 4

1.0(11y ago)02081PHPPHP &gt;=5.3.0

Since Jul 10Pushed 11y agoCompare

[ Source](https://github.com/socialh4ck/facebook)[ Packagist](https://packagist.org/packages/socialh4ck/facebook)[ RSS](/packages/socialh4ck-facebook/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Facebook
========

[](#facebook)

Facebook PHP SDK for Laravel

Add `socialh4ck/facebook` to `composer.json`.

```
"socialh4ck/facebook": "dev-master"

```

Run `composer update` to pull down the latest version of Facebook.

Now open up `app/config/app.php` and add the service provider to your `providers` array.

```
'providers' => array(
    'Socialh4ck\Facebook\FacebookServiceProvider',
)

```

Now add the alias.

```
'aliases' => array(
    'Facebook' => 'Socialh4ck\Facebook\FacebookFacade',
)

```

Configuration
-------------

[](#configuration)

Run `php artisan config:publish socialh4ck/facebook` and modify the config file with your own informations.

1. AppId =&gt; If you donot have appId then get it from facebook developer apps.
2. Secret =&gt; Its come with appId.
3. Redirect =&gt; Specify redirect url after logged in with facebook.
4. Logout =&gt; When somebody logout from your site, it redirects to logout url.
5. Scope =&gt; These are permission you want from your users.

Examples
--------

[](#examples)

1. Get Login Url with your credentials and scope.

    `Route::get('/', function() { return Facebook::loginUrl(); });`
2. Get User Id

    `Route::get('/', function() { return Facebook::getUser(); });`
3. Use facebook API

    `Route::get('/', function() { $profile = Facebook::api('/me?fields=id,name'); });`
4. Get Logout Url

    `Route::get('/', function() { return Facebook::logoutUrl(); });`
5. FQL

    `Route::get('/', function() { return Facebook::api(array( 'method' => 'fql.query', 'query' => "SELECT uid, sex, username, birthday, education, work FROM user WHERE uid = me()", )); });`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4375d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/784787?v=4)[Eliu Florez](/maintainers/EliuFlorez)[@EliuFlorez](https://github.com/EliuFlorez)

---

Top Contributors

[![rojaswilmer](https://avatars.githubusercontent.com/u/89101?v=4)](https://github.com/rojaswilmer "rojaswilmer (1 commits)")

---

Tags

laravelfacebooklaravel4

### Embed Badge

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

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

11337.8k1](/packages/neuron-core-neuron-laravel)[riclep/laravel-storyblok

A Laravel wrapper around the Storyblok API to provide a familiar experience for Laravel devs

6279.6k5](/packages/riclep-laravel-storyblok)

PHPackages © 2026

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