Subversion Repositories oidplus

Rev

Rev 1207 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1207 daniel-mar 1
 
2
How to setup Facebook Authentication
3
====================================
4
 
1405 daniel-mar 5
(1) Go to https://developers.facebook.com/ and register as developer
1207 daniel-mar 6
 
7
(2) Create a new project
8
 
9
(3) Setup "Facebook Login" feature
10
Select "Web", enter your OIDplus system URL and ignore all other steps.
11
 
12
(4) In the app settings (at the left menu):
13
 
1405 daniel-mar 14
Privacy Policy is set to:
1207 daniel-mar 15
 
16
    https://<...>/?goto=oidplus%3Aresources%24OIDplus%2Fprivacy_documentation.html
17
 
18
Note the App-ID (this is your OAuth Client ID) and App-Secret (this is your OAuth Client Key)
19
 
20
(5) "Facebook Login" product settings:
21
 
22
Verified oauth redirect target is set to:
23
 
24
    https://<...>/plugins/viathinksoft/publicPages/820_login_facebook/oauth.php
25
 
26
(6) In userdata/baseconfig/config.inc.php, add following lines:
27
 
28
	OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_ENABLED',       true);
29
	OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_CLIENT_ID',     '.............'); // Your App ID
30
	OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_CLIENT_SECRET', '.............'); // Your App Secret