Subversion Repositories oidplus

Rev

Rev 436 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
436 daniel-mar 1
 
2
How to setup Facebook Authentication
3
====================================
4
 
5
(1) https://developers.facebook.com/ , register as developer
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
 
14
	Privacy Policy:
15
	https://<...>/?goto=oidplus%3Aresources%24OIDplus%2Fprivacy_documentation.html
16
 
17
	Note the App-ID (this is your OAuth Client ID) and App-Secret (this is your OAuth Client Key)
18
 
19
(5) "Facebook Login" product settings:
20
 
21
	Verified oauth redirect target:
635 daniel-mar 22
	https://<...>/plugins/viathinksoft/publicPages/820_login_facebook/oauth.php
436 daniel-mar 23
 
24
(6) In userdata/baseconfig/config.inc.php, add following lines:
25
 
26
	OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_ENABLED',       true);
27
	OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_CLIENT_ID',     '.............'); // Your App ID
28
	OIDplus::baseConfig()->setValue('FACEBOOK_OAUTH2_CLIENT_SECRET', '.............'); // Your App Secret