PHPackages                             lzakrzewski/facebook-authentication-bundle - 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. lzakrzewski/facebook-authentication-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

lzakrzewski/facebook-authentication-bundle
==========================================

This bundle helps you to add "Login with facebook" feature to your app

1.0.5(10y ago)875MITPHPPHP &gt;=5.4

Since Jun 20Pushed 10y agoCompare

[ Source](https://github.com/lzakrzewski/FacebookAuthenticationBundle)[ Packagist](https://packagist.org/packages/lzakrzewski/facebook-authentication-bundle)[ RSS](/packages/lzakrzewski-facebook-authentication-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (8)Versions (9)Used By (0)

FacebookAuthenticationBundle
============================

[](#facebookauthenticationbundle)

[![Build Status](https://camo.githubusercontent.com/e4fd9215adccf9e8af250cb7cb21995a6fe3d96026fef49bd8c3da018b8d85fb/68747470733a2f2f7472617669732d63692e6f72672f6c7a616b727a6577736b692f46616365626f6f6b41757468656e7469636174696f6e42756e646c652e737667)](https://travis-ci.org/lzakrzewski/FacebookAuthenticationBundle) [![Latest Stable Version](https://camo.githubusercontent.com/1a0a91202cd9158e915aeb59364311687a8ada7d67af6ce8d29620e118d59ab6/68747470733a2f2f706f7365722e707567782e6f72672f6c7a616b727a6577736b692f66616365626f6f6b2d61757468656e7469636174696f6e2d62756e646c652f762f737461626c65)](https://packagist.org/packages/lzakrzewski/facebook-authentication-bundle) [![Total Downloads](https://camo.githubusercontent.com/31707835abdeb0deb169414ef4720c43641ab6026338bbcc484b0dc89080517e/68747470733a2f2f706f7365722e707567782e6f72672f6c7a616b727a6577736b692f66616365626f6f6b2d61757468656e7469636174696f6e2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/lzakrzewski/facebook-authentication-bundle)

This bundle provides Facebook authentication for your Symfony2 app using the FOSUserBundle. Target: Keep it minimalistic and use existing components from Symfony2 and FOSUserBundle.

Features
--------

[](#features)

- Enable login with facebook feature to your app,
- Add user created from facebook data to your app.

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

[](#requirements)

```
    "require": {
        "php": ">=5.4",
        "friendsofsymfony/user-bundle": "~2.0@dev",
        "lzakrzewski/facebook-authentication-adapter": "~1.0"
    }
```

Supported Facebook API version
------------------------------

[](#supported-facebook-api-version)

- v2.5

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

[](#installation)

#### Step 1: Integrate FOSUserBundle with your app

[](#step-1-integrate-fosuserbundle-with-your-app)

[Read the Documentation for master](https://symfony.com/doc/master/bundles/FOSUserBundle/index.html).

#### Step 2: Require the FacebookAuthenticationBundle with composer

[](#step-2-require-the-facebookauthenticationbundle-with-composer)

```
composer require lzakrzewski/facebook-authentication-bundle "~1.0"
```

#### Step 3: Enable the FacebookAuthenticationBundle

[](#step-3-enable-the-facebookauthenticationbundle)

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Lzakrzewski\FacebookAuthenticationBundle\LzakrzewskiFacebookAuthenticationBundle(),
        // ...
    );
}
```

#### Step 4: Implement your User class with FacebookUser

[](#step-4-implement-your-user-class-with-facebookuser)

```
