Download the PHP package lzakrzewski/facebook-authentication-bundle without Composer
On this page you can find all versions of the php package lzakrzewski/facebook-authentication-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lzakrzewski/facebook-authentication-bundle
More information about lzakrzewski/facebook-authentication-bundle
Files in lzakrzewski/facebook-authentication-bundle
Package facebook-authentication-bundle
Short Description This bundle helps you to add "Login with facebook" feature to your app
License MIT
Informations about the package facebook-authentication-bundle
FacebookAuthenticationBundle
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
- Enable login with facebook feature to your app,
- Add user created from facebook data to your app.
Requirements
Supported Facebook API version
- v2.5
Installation
Step 1: Integrate FOSUserBundle with your app
Read the Documentation for master.
Step 2: Require the FacebookAuthenticationBundle with composer
Step 3: Enable the FacebookAuthenticationBundle
Step 4: Implement your User class with FacebookUser
Notice field for store FacebookId should be named facebookId
or Annotation FacebookId
should be used: FacebookId Annotation.
Step 5: Configure the config.yml
Minimal configuration:
Parameters: app_id
and secret
are needed to get access token: Access Tokens.
Example of full configuration:
Parameters:
scope
An array of permissions: Permissions with Facebook Login,fields
By default, not all the fields in a node or edge are returned when you make a query. You can choose the fields (or edges) you want returned with the "fields" query parameter. Choosing Fields.
Notice
scope
Should containpublic_profile
,email
or more,fields
Should containname
,email
or more.
Step 6: Confgure your routing.yml
Step 7: Enable facebook_listener
in your security.yml
Step 8: Update your database schema
Step 9: Setup your facebook app
Now when route /facebook/login
will be requested then procedure of code exchange will be process Code exchange.
Further documentation
- FacebookId
- Events
- Custom login path
- Testing
All versions of facebook-authentication-bundle with dependencies
friendsofsymfony/user-bundle Version ~2.0@dev
lzakrzewski/facebook-authentication-adapter Version ~1.0