PHPackages                             red-dot/facebook-sso - 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. red-dot/facebook-sso

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

red-dot/facebook-sso
====================

A PHP package for Facebook Single Sign-On (SSO)

061PHP

Since Sep 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tirednemo/facebook-sso-php)[ Packagist](https://packagist.org/packages/red-dot/facebook-sso)[ RSS](/packages/red-dot-facebook-sso/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

facebook-sso-php
================

[](#facebook-sso-php)

- Go to [Facebook Developers](https://developers.facebook.com/apps)
    - Create your app
    - Specify the Site URL where Facebook should redirect after a successful login
    - Add [additional permissions](https://developers.facebook.com/apps/120945277695523/permissions?use_case_enum=FB_LOGIN), if required, for retrieving information other than public profile.
    - Note down the App ID and App secret.
- In your project, create a new `composer.json` file or update the existing one if you already have one.
- Install from Packagist ```
    composer require red-dot/facebook-sso:dev-main

    ```
- Now, to use the FacebookSSO package in your project
    - Include the Composer autoloader with `require_once __DIR__ . '/vendor/autoload.php';` at the top of your PHP file.
    - Import the namespace `use RedDot\FacebookSSO\FacebookSSO;`.
    - Create an instance of the FacebookSSO class `$facebookSSO = new FacebookSSO($clientId, $clientSecret, $redirectUri);`.
    - Make sure to replace `$clientId`, `$clientSecret`, and `$redirectUri` with your actual values.
    - That's it! You can now use the FacebookSSO package in your projecs!
- Check out the `examples/example-login.php` file for usage reference.

Reference: [Manually Build a Login Flow](https://developers.facebook.com/docs/facebook-login/guides/advanced/manual-flow/)

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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/29e633b085fd2695bff96c25a574c7161389cc66895ae239cb3b7e5d0149c585?d=identicon)[tirednemo](/maintainers/tirednemo)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/red-dot-facebook-sso/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M117](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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