Facebook

Authentication Users Password

Presentation

Facebook is a famous social network service. Facebook uses OAuth2 protocol to allow applications to reuse its own authentication process (it means, if your are connected to Facebook, other applications can trust Facebook and let you in).

You need Net::Facebook::Oauth2 package.

You need to register a new application on Facebook to get an application ID and a secret. See https://developers.facebook.com/apps on how to do that.

Configuration

In Manager, go in General Parameters > Authentication modules and choose Facebook for authentication module. You can also use Facebook as user database.

Then, go in Facebook parameters:

If you use Facebook as user database, declare values in exported variables:

Do not query id field in exported variables, as it is already registered by the authentication module in $_user.
You can use the same Facebook access token in your applications. It is stored in session datas under the name $_facebookToken