Differences

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

Link to this comparison view

Next revision
Previous revision
documentation:latest:authfacebook [2015/06/08 14:46]
127.0.0.1 external edit
documentation:latest:authfacebook [2019/01/15 15:54] (current)
Line 20: 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:
   * use any key name you want. If you want to refuse access when a data is missing, just add a "​!"​ before the key name   * use any key name you want. If you want to refuse access when a data is missing, just add a "​!"​ before the key name
-  * in the value field, set the field name. You can show them using [[https://​developers.facebook.com/​tools/​explorer|Facebook Graph API explorer]]+  * in the value field, set the field name. You can show them using [[https://​developers.facebook.com/​tools/​explorer|Facebook Graph API explorer]] ​and have a list of supported fields in the [[https://​developers.facebook.com/​docs/​graph-api/​reference/​user/​|Graph API User reference]]. For example: 
 +    * cn => name 
 +    * mail => email 
 +    * sn => last_name
  
-See also [[exportedvars|exported variables ​configuration]].+<note important>​Do not query user field in exported variables, as it is already registered by the authentication module in ''​$_user''​.</​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 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>​