Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
documentation:latest:authfacebook [2016/05/10 16:48]
coudot [Configuration]
documentation:latest:authfacebook [2019/01/15 15:54] (current)
Line 10: Line 10:
 You need [[https://​metacpan.org/​release/​Net-Facebook-Oauth2|Net::​Facebook::​Oauth2]] package. You need [[https://​metacpan.org/​release/​Net-Facebook-Oauth2|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  +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.
-that.+
  
 ===== Configuration ===== ===== Configuration =====
Line 21: Line 20:
   * **Facebook application ID**: the application ID you get   * **Facebook application ID**: the application ID you get
   * **Facebook application secret**: the corresponding secret   * **Facebook application secret**: the corresponding secret
 +  * **User field**: Facebook field that will be used as default user identifier
  
 If you use Facebook as user database, declare values in exported variables: If you use Facebook as user database, declare values in exported variables:
Line 29: Line 29:
     * sn => last_name     * sn => last_name
  
-<note important>​Do not query ''​id'' ​field in exported variables, as it is already registered by the authentication module in ''​$_user''​.</​note>​+<note important>​Do not query user field in exported variables, as it is already registered by the authentication module in ''​$_user''​.</​note>​ 
 + 
 +<note important>​ 
 +Browser implementations of formAction directive are inconsistent (e.g. Firefox doesn'​t block the redirects whereas Chrome does). 
 +Administrators may have to modify formAction value with wildcard likes *. 
 + 
 +In Manager, go in :  
 + 
 +''​General Parameters''​ > ''​Advanced Parameters''​ > ''​Security''​ > ''​Content Security Policy''​ > ''​Form destination''​ 
 +</​note>​
  
 <note tip>You can use the same Facebook access token in your applications. It is stored in session datas under the name ''​$_facebookToken''</​note>​ <note tip>You can use the same Facebook access token in your applications. It is stored in session datas under the name ''​$_facebookToken''</​note>​