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

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

thomaswelton/laravel-facebook
=============================

4226.7k16[2 issues](https://github.com/thomaswelton/laravel-facebook/issues)[1 PRs](https://github.com/thomaswelton/laravel-facebook/pulls)1PHP

Since Nov 14Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (1)

[![Build Status](https://camo.githubusercontent.com/0ee593d973720f04b38eaf57adbb97e18b20e48b6832bd62536b8540eda555fc/68747470733a2f2f7472617669732d63692e6f72672f74686f6d617377656c746f6e2f6c61726176656c2d66616365626f6f6b2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/thomaswelton/laravel-facebook)[![Latest Stable Version](https://camo.githubusercontent.com/0b21193c04104a8274e4469bec85b4fb82cd11237a1fedf53e9c2b92f71a4c48/68747470733a2f2f706f7365722e707567782e6f72672f74686f6d617377656c746f6e2f6c61726176656c2d66616365626f6f6b2f762f737461626c652e706e67)](https://packagist.org/packages/thomaswelton/laravel-facebook)[![Total Downloads](https://camo.githubusercontent.com/d319839617aa6fc53bdb0a988d15e71d3df6af8de8ce9df4a1d70acb8891e7b6/68747470733a2f2f706f7365722e707567782e6f72672f74686f6d617377656c746f6e2f6c61726176656c2d66616365626f6f6b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/thomaswelton/laravel-facebook)[![Bitdeli Badge](https://camo.githubusercontent.com/4ea96df3685b5bc3fb891dfa39d461cbc9586f8b104ce314bad910d913aec293/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f74686f6d617377656c746f6e2f6c61726176656c2d66616365626f6f6b2f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

Installation
============

[](#installation)

Update your `composer.json` file to include this package as a dependency

```
"thomaswelton/laravel-facebook": "dev-master"
```

Register the Facebook service provider by adding it to the providers array in the `app/config/app.php` file.

```
Thomaswelton\LaravelFacebook\LaravelFacebookServiceProvider

```

Alias the Facebook facade by adding it to the aliases array in the `app/config/app.php` file.

```
'aliases' => array(
	'Facebook' => 'Thomaswelton\LaravelFacebook\Facades\Facebook'
)
```

Configuration
=============

[](#configuration)

Copy the config file into your project by running

```
php artisan config:publish thomaswelton/laravel-facebook

```

Edit the config file to include your app ID and secret key.

Useage
======

[](#useage)

This Facebook class extends the Facebook PHP SDK, so all the methods listed here  are available, as well as the folowing.

### getShareUrl

[](#getshareurl)

Get a share URL. If you have not set your app ID then the URL will use the old sharer.php urls as they do not require an app ID or redirect\_url

```
$shareData = array(
    'link' => '', // url
    'picture' => '', // picture url
    'name' => '', // Title
    'caption' => '', // Caption
    'description' => '', // Description
);

echo Facebook::getShareUrl($shareData);
```

### hasLiked

[](#hasliked)

For page tab apps, will let you know if a user has liked the page. Returns

- 1 - Liked
- 0 - Not liked
- -1 - Don't know either way

```
Facebook::hasLiked();
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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://avatars.githubusercontent.com/u/678372?v=4)[Thomas Welton](/maintainers/thomaswelton)[@thomaswelton](https://github.com/thomaswelton)

---

Top Contributors

[![thomaswelton](https://avatars.githubusercontent.com/u/678372?v=4)](https://github.com/thomaswelton "thomaswelton (10 commits)")[![neilcrookes](https://avatars.githubusercontent.com/u/24232?v=4)](https://github.com/neilcrookes "neilcrookes (1 commits)")

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.2M17](/packages/kartik-v-yii2-password)

PHPackages © 2026

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