PHPackages                             andrewnovikof/facebookserviceprovider - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. andrewnovikof/facebookserviceprovider

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

andrewnovikof/facebookserviceprovider
=====================================

Facebook OAuth2 Provider for Laravel Socialite

3.0.8(7y ago)01.0kMITPHPPHP ^5.6 || ^7.1

Since Aug 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/AndrewNovikof/FacebookSocialiteProvider)[ Packagist](https://packagist.org/packages/andrewnovikof/facebookserviceprovider)[ RSS](/packages/andrewnovikof-facebookserviceprovider/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

Facebook OAuth2 Provider for Laravel Socialite
==============================================

[](#facebook-oauth2-provider-for-laravel-socialite)

[![Latest Stable Version](https://camo.githubusercontent.com/e10839fc1213e204e74b402d10531c046667cc07598a63fa58b84e2475134163/68747470733a2f2f706f7365722e707567782e6f72672f616e647265776e6f76696b6f662f66616365626f6f6b7365727669636570726f76696465722f762f737461626c65)](https://packagist.org/packages/andrewnovikof/facebookserviceprovider)[![Total Downloads](https://camo.githubusercontent.com/b691ef71b457c13f9227d6ce31998568a51d4b5aaee9c0569ba450fbd7d0d460/68747470733a2f2f706f7365722e707567782e6f72672f616e647265776e6f76696b6f662f66616365626f6f6b7365727669636570726f76696465722f646f776e6c6f616473)](https://packagist.org/packages/andrewnovikof/facebookserviceprovider)[![Latest Unstable Version](https://camo.githubusercontent.com/a97d67e4c8ef8ddefa22b08a792f165beaab86ca8f6e070218f26823b6e91444/68747470733a2f2f706f7365722e707567782e6f72672f616e647265776e6f76696b6f662f66616365626f6f6b7365727669636570726f76696465722f762f756e737461626c65)](https://packagist.org/packages/andrewnovikof/facebookserviceprovider)[![License](https://camo.githubusercontent.com/f3ef86410f842336e832a96c725c1b0d83dddbd122af2718fcb7618b87139eb1/68747470733a2f2f706f7365722e707567782e6f72672f616e647265776e6f76696b6f662f66616365626f6f6b7365727669636570726f76696465722f6c6963656e7365)](https://packagist.org/packages/andrewnovikof/facebookserviceprovider)

### 1. Installation

[](#1-installation)

`composer require andrewnovikof/facebookserviceprovider`

### 2. Service Provider

[](#2-service-provider)

- Remove `Laravel\Socialite\SocialiteServiceProvider` from your `providers[]` array in `config\app.php` if you have added it already.
- Add `SocialiteProviders\Manager\ServiceProvider` to your `providers[]` array in `config\app.php`.

For example:

```
'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    SocialiteProviders\Manager\ServiceProvider::class, // add
];
```

- Note: If you would like to use the Socialite Facade, you need to [install it](http://laravel.com/docs/5.2/authentication#social-authentication).

### 3. Add the Event and Listeners

[](#3-add-the-event-and-listeners)

- Add `SocialiteProviders\Manager\SocialiteWasCalled::class` event to your `listen[]` array in `/Providers/EventServiceProvider`.
- Add your listeners (i.e. the ones from the providers) to the `SocialiteProviders\Manager\SocialiteWasCalled[]` that you just created.
- The listener that you add for this provider is `AndrewNovikof\SocialiteProviders\Facebook\FacebookExtendSocialite::class`.
- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

For example:

```
/**
 * The event handler mappings for the application.
 *
 * @var array
 */
protected $listen = [
    SocialiteProviders\Manager\SocialiteWasCalled::class => [
        AndrewNovikof\SocialiteProviders\Facebook\FacebookExtendSocialite::class
    ],
];
```

### 4. Services Array and .env

[](#4-services-array-and-env)

Add to `config/services.php`:

```
'facebook' => [
    'client_id' => env('FACEBOOK_ID'),
    'client_secret' => env('FACEBOOK_SECRET'),
    'redirect' => env('FACEBOOK_REDIRECT'),
],
```

Append provider values to your `.env` file: **Note: Add both public and secret keys!**

```
// other values above
FACEBOOK_ID=your_app_id_for_the_service
FACEBOOK_SECRET=your_app_public_for_the_service
FACEBOOK_REDIRECT=https://example.com/login

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~74 days

Recently: every ~101 days

Total

8

Last Release

2716d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22785281?v=4)[AndrewNovikoff](/maintainers/AndrewNovikoff)[@andrewnovikoff](https://github.com/andrewnovikoff)

---

Tags

facebooklaravel-socialiteoath2phpservice-provider

### Embed Badge

![Health badge](/badges/andrewnovikof-facebookserviceprovider/health.svg)

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

###  Alternatives

[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

599.1M13](/packages/socialiteproviders-apple)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

346.9M19](/packages/socialiteproviders-microsoft)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

401.9M5](/packages/socialiteproviders-instagram)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

586.8M25](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

621.3M8](/packages/socialiteproviders-laravelpassport)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

422.3M22](/packages/socialiteproviders-discord)

PHPackages © 2026

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