glFusion Wiki

Site Tools


glfusion:remoteauth:facebook

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:
  • http://www.yoursitehere.com/users.php?oauth_login=facebook – Hit Enter
  • http://www.yoursitehere.com – Hit Enter

    Be sure to replace yoursitehere.com with your valid site URL
Deauthorize URL
You can leave this field blank or empty.

Choose Save.

Additional Settings

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:
  • yoursitehere.com – hit enter
  • www.yoursitehere.com – hit enter

    Be sure to replace yoursitehere.com with your actual URL.
Privacy Policy URL
If you have a Privacy Policy for your site, enter the URL to that page in the Privacy Policy URL field.
Namespace
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
If you have a Terms of Use page for your site, enter the URL to that page in the Terms of Service URL field.
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.
Category
Choose an appropriate category for your site.

Record the AppID and the App Secret - you will need to enter these into your glFusion configuration.

Finalizing Setup

Once you have created the Twitter Oauth keys and access tokens, you will need to enter these into the glFusion Configuration.

  1. Navigate to Command & ControlUsers & Submissions
  2. Ensure User Login Method[oauth] is set to True
  3. Set Enable Facebook OAuth Login Method to True
  4. Enter the App ID from Facebook in the Facebook OAuth Consumer Key field
  5. Enter the App Secret from Facebook in the Facebook OAuth Consumer Secret field
  6. Select Save Changes

Now you have Facebook Authentication enabled for your site!

glfusion/remoteauth/facebook.txt · Last modified: 2017/04/12 21:11 (external edit)

Page Tools