Facebook OAuth Authentication
To use Facebook's remote login feature, you will need to create a Facebook App ID in the Facebook Developers Console at https://developers.facebook.com/apps/.
Once logged into the Developer's Console - select Add a New App. This will open the initial Application Information screen:
Enter the Display Name, for example, the name of your website. Enter the contact email and choose a category. Category should be reflective of your web site, for example, Productivity. Now select Create App ID.
This will bring up the Product Add Screen:
You will want to select the Get Started button for the Facebook Login. This will bring up the Facebook Oauth Information Screen:
Here you will enter the following information:
- Client OAuth Login
This enables the standard Oauth token flow
You should set this to Yes
- Web OAuth Login
Enables web based Oauth client login
You should set this to Yes
- Embed Browser OAuth Login
Enabled browser control redirect
You should set this to No - it is not needed for remote authentication
- Force Web OAuth Reauthentication
This setting controls whether the user must enter their password to Facebook each time they log into your site. Generally this should be set to No, but if you have higher security requirements and wish to have your users always re-authenticate with Facebook, set this to Yes.
- Valid OAuth redirect URI's
Important Setting - Ensure the following URLs are entered into this field - hit enter after each URL:
- Deauthorize URL
You can leave this field blank or empty.
Settings -> Basic
From the left navigation, choose Settings, then Basic.
- Display Name
Enter the display name you want to have displayed on the Facebook login / authorization page
- App Domains
Important Setting You must enter the domains for your site in order for remote login to function properly. Enter the following in this field:
You can leave this field blank
- Contact Email
You should enter your email here - this is where Facebook will send important information regarding service changes.
- Terms of Service URL
- App Icon
You can upload an App Icon (must be 1024 x 1024 pixels in size) that will display when folks are prompted to enter their credentials.
Choose an appropriate category for your site.
Record the AppID and the App Secret - you will need to enter these into your glFusion configuration.
Once you have created the Twitter Oauth keys and access tokens, you will need to enter these into the glFusion Configuration.
Navigate to Command & Control → Users & Submissions
Ensure User Login Method[oauth] is set to True
Set Enable Facebook OAuth Login Method to True
Enter the App ID from Facebook in the Facebook OAuth Consumer Key field
Enter the App Secret from Facebook in the Facebook OAuth Consumer Secret field
Select Save Changes
Now you have Facebook Authentication enabled for your site!