PHPackages                             wilr/silverstripe-facebookconnect - 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. wilr/silverstripe-facebookconnect

ActiveSilverstripe-module[Authentication &amp; Authorization](/categories/authentication)

wilr/silverstripe-facebookconnect
=================================

Integration of Facebook Connect into SilverStripe

1.3.0(11y ago)463.8k24[2 issues](https://github.com/wilr/silverstripe-facebookconnect/issues)BSD-3-ClausePHP

Since Apr 9Pushed 7y ago7 watchersCompare

[ Source](https://github.com/wilr/silverstripe-facebookconnect)[ Packagist](https://packagist.org/packages/wilr/silverstripe-facebookconnect)[ Docs](https://github.com/wilr/silverstripe-facebookconnect)[ RSS](/packages/wilr-silverstripe-facebookconnect/feed)WikiDiscussions master Synced today

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

Facebook Connect Integration Module
===================================

[](#facebook-connect-integration-module)

Maintainer Contact
------------------

[](#maintainer-contact)

- Will Rossiter &lt;will (at) fullscreen (dot) io&gt;

Requirements
------------

[](#requirements)

- SilverStripe 3.1

Overview
--------

[](#overview)

The module provides a **basic** interface for implementing the Facebook PHP SDK on your SilverStripe website. The Facebook SDK allows users to login to your website using their Facebook account details, creating a single sign-on within the existing SilverStripe member system.

### What it provides

[](#what-it-provides)

- Loads the Facebook PHP SDK.
- Provides $FacebookLoginLink template variable to generate a link to login to Facebook. Upon clicking the link and being redirected back to your application the SilverStripe `Member::currentUser()` will be populated with a `Member`instance linked to the users Facebook profile.

```

	$Name $Avatar(small)

```

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

[](#installation)

```
composer require "wilr/silverstripe-facebookconnect" "dev-master"

```

[Register your website / application](https://developers.facebook.com/apps/?action=create)with Facebook.

Set your configuration through the SilverStripe Config API. For example I keep my configuration in `mysite/_config/facebookconnect.yml` file:

```
FacebookControllerExtension:
  app_id: 'MyAppID'
  api_secret: 'Secret'

```

Update the database by running `/dev/build` to add the additional fields to the `Member` table and make sure you `?flush=1` when you reload your website.

```
Login via Facebook

```

You can also access the Facebook PHP SDK in your PHP code..

```
// https://developers.facebook.com/docs/php/FacebookSession/4.0.0
$session = Controller::curr()->getFacebookSession();
```

For more information about what you can do through the SDK see:

### Options

[](#options)

All the following values are set either via the Config API like follows

Config::inst()-&gt;update('FacebookControllerExtension', '$option', '$value')

Or (more recommended) through the YAML API

FacebookControllerExtension: option: value

### app\_id

[](#app_id)

Your app id. Found on the Facebook Developer Page.

### api\_secret

[](#api_secret)

Facebook API secret. Again, from your Application page.

### create\_member

[](#create_member)

Optional, default: true

Whether or not to create a `Member` record in the database with the users information. If you disable this, ensure your code uses $CurrentFacebookMember rather than $Member. Other access functionality (such as admin access) will not work.

### member\_groups

[](#member_groups)

Optional, default ''

A list of group codes to add the user. For instance if you want every member who joins through facebook to be added to a group `Facebook Members` set the following:

FacebookControllerExtension: member\_groups: - facebook\_members

### permissions

[](#permissions)

Optional, default 'email'

A list of permission codes you want from the user. Permission codes are listed on [developers.facebook.com](https://developers.facebook.com/docs/reference/login).

Ensure you include email in your list if you require `create_member`.

### facebook\_fields

[](#facebook_fields)

Default 'email','first\_name','last\_name'

A list of fields you want to retrieve from Facebook for the user. Available fields are listed on [developers.facebook.com](https://developers.facebook.com/docs/graph-api/reference/user).

Ensure you include email in your list if you require `create_member`.

### sync\_member\_details

[](#sync_member_details)

Optional, default true

Flag as to whether to replace user information (such as name) in your database with the values from Facebook.

License
-------

[](#license)

Released under the BSD-3-Clause License.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 83.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.

###  Release Activity

Cadence

Every ~152 days

Total

4

Last Release

4373d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/101629?v=4)[Will Rossiter](/maintainers/wilr)[@wilr](https://github.com/wilr)

---

Top Contributors

[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (73 commits)")[![phillprice](https://avatars.githubusercontent.com/u/320214?v=4)](https://github.com/phillprice "phillprice (5 commits)")[![bimah](https://avatars.githubusercontent.com/u/713791?v=4)](https://github.com/bimah "bimah (2 commits)")[![jyrkij](https://avatars.githubusercontent.com/u/9883?v=4)](https://github.com/jyrkij "jyrkij (2 commits)")[![emilberg](https://avatars.githubusercontent.com/u/1150252?v=4)](https://github.com/emilberg "emilberg (1 commits)")[![dullgiulio](https://avatars.githubusercontent.com/u/578051?v=4)](https://github.com/dullgiulio "dullgiulio (1 commits)")[![alexandruz](https://avatars.githubusercontent.com/u/36546?v=4)](https://github.com/alexandruz "alexandruz (1 commits)")[![andrelohmann](https://avatars.githubusercontent.com/u/617168?v=4)](https://github.com/andrelohmann "andrelohmann (1 commits)")[![a2nt](https://avatars.githubusercontent.com/u/672794?v=4)](https://github.com/a2nt "a2nt (1 commits)")

---

Tags

facebooksilverstripe

### Embed Badge

![Health badge](/badges/wilr-silverstripe-facebookconnect/health.svg)

```
[![Health](https://phpackages.com/badges/wilr-silverstripe-facebookconnect/health.svg)](https://phpackages.com/packages/wilr-silverstripe-facebookconnect)
```

###  Alternatives

[silverstripe/mfa

Enable multi-factor authentication with fallback codes

10358.1k11](/packages/silverstripe-mfa)[bigfork/silverstripe-oauth-login

SilverStripe logins via OAuth2, using the PHP League's OAuth2 client

1897.4k2](/packages/bigfork-silverstripe-oauth-login)[silverstripe/contentreview

Flags pages for periodical author review (incl. reporting)

22267.5k5](/packages/silverstripe-contentreview)

PHPackages © 2026

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