PHPackages                             abhimanyusharma003/laravel-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. abhimanyusharma003/laravel-facebook

ActiveLibrary[API Development](/categories/api)

abhimanyusharma003/laravel-facebook
===================================

A laravel service provider for Facebook PHP SDK

74841PHP

Since Jun 2Pushed 11y ago2 watchersCompare

[ Source](https://github.com/abhimanyusharma003/laravel-facebook)[ Packagist](https://packagist.org/packages/abhimanyusharma003/laravel-facebook)[ RSS](/packages/abhimanyusharma003-laravel-facebook/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Facebook
================

[](#laravel-facebook)

Facebook PHP SDK for Laravel

Installation
------------

[](#installation)

- Add below line to `composer.json`

    ```
     "abhimanyusharma003/laravel-facebook": "dev-master"
    ```
- Run `composer update` or `composer install `
- Open `app/config/app.php` and add the service provider to your `providers` array.

    ```
     'providers' => array(
      	'Abhimanyusharma003\LaravelFacebook\LaravelFacebookServiceProvider',
     )
    ```
- Now add the alias.

    ```
     'aliases' => array(
         'Facebook' =>   'Abhimanyusharma003\LaravelFacebook\LaravelFacebookFacade',
     )
    ```

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

[](#configuration)

- Run `php artisan config:publish abhimanyusharma003/laravel-facebook`
- This will create a `config.php` file in `config\packages\abhimanyusharma003\laravel-facebook` folder
- Customize `config.php` with your information

Setting details are.

- `appid`: Your facebook app id.
- `secret`: Your facebook app secret.
- `redirect`: URL where to redirect after log in.
- `logout`: URL where to redirect after logout.
- `scope`: These are permission you want from your users

Examples
--------

[](#examples)

- Get Login Url with your credentials and scope.

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

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

    ```
     Route::get('/', function(){
     	$profile = Facebook::api('/me?fields=id,name,first_name,last_name,username,email,gender,birthday,hometown,location,picture.width(100)');
     });
    ```
- Get Logout Url

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b396fac7bff5c9561f7c7d00968d1bb55dfe2daef42e3010f39d9f7ad3d4ff04?d=identicon)[abhimanyu003](/maintainers/abhimanyu003)

---

Top Contributors

[![abhimanyu003](https://avatars.githubusercontent.com/u/265913?v=4)](https://github.com/abhimanyu003 "abhimanyu003 (11 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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