PHPackages                             mirkco/laravel-passport-facebook-login - 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. mirkco/laravel-passport-facebook-login

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

mirkco/laravel-passport-facebook-login
======================================

Facebook Token Request Grant for Laravel Passport

1.0.5(9y ago)849824[1 issues](https://github.com/mirkco/Laravel-Passport-Facebook-Login/issues)[1 PRs](https://github.com/mirkco/Laravel-Passport-Facebook-Login/pulls)MITPHP

Since Mar 20Pushed 8y ago3 watchersCompare

[ Source](https://github.com/mirkco/Laravel-Passport-Facebook-Login)[ Packagist](https://packagist.org/packages/mirkco/laravel-passport-facebook-login)[ RSS](/packages/mirkco-laravel-passport-facebook-login/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

NO LONGER UNDER MAINTAINED
==========================

[](#no-longer-under-maintained)

Please see @danjdewhurst's repo  for a more up-to-date version.

---

Laravel Passport Facebook Login
===============================

[](#laravel-passport-facebook-login)

Provides a new Laravel Passport Grant Client named `facebook_login`, allowing you to log a user in with just their Facebook Login token

Note: A new User **will be created** if an existing user was not found for the given token

Install
-------

[](#install)

Install with composer... `composer require mirkco/laravel-passport-facebook-login`

### Versions

[](#versions)

- Laravel 5.4 and Passport 2.0 only supported at this time

Setup
-----

[](#setup)

- Add `Mirk\PassportFacebookLogin\FacebookLoginGrantProvider::class` to your list of providers **after** `Laravel\Passport\PassportServiceProvider`.
- Add `Mirk\PassportFacebookLogin\FacebookLoginTrait` Trait to your `User` model (or whatever model you have configured to work with Passport).
- Add your Facebook App details to your `.env` file

```
# file .env
FACEBOOK_APP_ID={app_id from Facebook}
FACEBOOK_APP_SECRET={app_secret from facebook}
```

How to use
----------

[](#how-to-use)

- Make a **POST** request to `https://your-site.com/oauth/token`, just like you would a **Password** or **Refresh** grant.
- The POST body should contain `grant_type` = `facebook_login` and `fb_token` = `{token from facebook login}`.
- An `access_token` and `refresh_token` will be returned if successful.

Notes:
------

[](#notes)

It is assumed that your `User` model has `first_name` and `last_name` fields.

Thanks
------

[](#thanks)

This package is based off

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

6

Last Release

3389d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2385350?v=4)[-](/maintainers/se1exin)[@se1exin](https://github.com/se1exin)

---

Top Contributors

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

---

Tags

facebook-loginlaravel-passportlaravellumenoauthpassportgrant

### Embed Badge

![Health badge](/badges/mirkco-laravel-passport-facebook-login/health.svg)

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

###  Alternatives

[coderello/laravel-passport-social-grant

Social Grant for Laravel Passport

180661.8k3](/packages/coderello-laravel-passport-social-grant)[danjdewhurst/laravel-passport-facebook-login

Facebook Token Request Grant for Laravel Passport

2824.4k](/packages/danjdewhurst-laravel-passport-facebook-login)[mikemclin/passport-custom-request-grant

Custom Request Grant for Laravel Passport

343.7k](/packages/mikemclin-passport-custom-request-grant)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

59437.0k8](/packages/jeremy379-laravel-openid-connect)[adaojunior/passport-social-grant

Social grant for Laravel Passport

115285.6k1](/packages/adaojunior-passport-social-grant)[wearedevtical/novassport

A Laravel Nova tool to manage API Authentication (Passport).

663.1k](/packages/wearedevtical-novassport)

PHPackages © 2026

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