Search Results :

×

Joomla OAuth Client Integration with Facebook Single Sign-On (SSO)

This guide provides a comprehensive overview of setting up our Joomla OAuth Client extension to enable user login through Facebook. By following these steps, you can add a "Login with Facebook" button to your site, offering a fast and convenient way for users to register and sign in.

Integrating Facebook Login is one of the most effective ways to reduce registration friction. Since a vast number of users already have a Facebook account, this social login method allows them to access your site with a single click, without needing to create and remember a new set of credentials.


Youtube-color Created with Sketch.

To setup OAuth Single Sign-On between Joomla and Facebook, you can also follow this step by step Setup Video.

In this configuration, Facebook functions as the OAuth server, while Joomla allows users to log in with their Facebook credentials by utilizing the Joomla OAuth Client Plugin.

  • Login into your Joomla site’s Administrator console.
  • From left toggle menu, click on System, then under Install section click on Extensions.
  • Now click on Or Browse for file button to locate and install the plugin file downloaded earlier.
  • Installation of plugin is successful. Now click on Get Started!
  • Under Configure OAuth -> Pre-Configured Apps tab, select your OAuth Provider. You can also search for custom OAuth or custom OpenID application in the search bar, and configure your own custom provider.
Get Started with OAuth Client Setup

  • After selecting your OAuth provider, you will be redirected to the Step 1 [Redirect URL] tab. Now copy the Callback/Redirect URL which we will use to configure the OAuth Server, then click on the Save & Next button.
Get Started with OAuth Client Setup

Facebook Dashboard

  • To build a new OAuth application, click the Create App button in the All Apps section.
Create New Facebook App

  • Select "What do you want your app to do?" on the Create an App section. Then click the Next button to continue.
Create OIDC App

  • In the following screen, Select an app type and select Consumer, then click the Next button. (After your app is built, the app type cannot be changed.)
Select App Type

  • In the Details section, enter the Application name in the Add an app name text field and the App contact email (the default is your Facebook account email), then click the Create app button.
Enter App Details

  • When you click the Create app button, a dialogue window will appear. For your security, you must re-enter your password to continue.
Enter Password

  • In the Add product to your app screen, click on the Set up button from the Facebook Login card.
Configure Settings

  • Navigate to Products from the left navigation panel, then Facebook Login and Settings.
Configure Settings

  • Under the Client OAuth Settings, paste the previously copied Callback/Redirect URL into the Valid OAuth Redirect URIs text field.
Enter Callback URL

  • Go to Settings -> Basic to view your App Id and App Secret (Refer to the image below).
View App ID & Secret

  • Copy your App ID and App Secret which is your Client ID and Client Secret and save it in your miniOrange OAuth Client Plugin.
  • Go back to your Joomla Dashboard. Then go to Step 2 [Client ID & Secret].
  • Paste the Client ID, Client Secret and Domain. Also Set Client Credentials In header and body then click on Save Settings. Once Settings are saved then click on Save Configuration.
Upload IdP
    Metadata

  • Scope & Endpoints are given below, which are required for configuring Joomla as OAuth Client plugin to configure Facebook as a custom OAuth or OIDC provider.
Scope public_profile email
Authorize Endpoint https://www.facebook.com/dialog/oauth
Access Token Endpoint https://graph.facebook.com/v2.8/oauth/access_token
Get User Info Endpoint https://graph.facebook.com/me/?fields=id,name,email,age_range,first_name,gender,last_name,link
Set Client Credentials In Header and In Body

  • User Attribute Mapping is mandatory for enabling users to successfully login into Joomla. We will be setting up user profile attributes for Joomla using below settings.
  • Go to Step 3 [Attribute Mapping] tab and click on Test Configuration button.
Upload IdP
    Metadata

  • You will be able to see the attributes in the Test Configuration output as follows.
Upload IdP
    Metadata

  • Now go to the Step 3 [Attribute Mapping] tab and Select the attribute name for Email and Username from dropdown. Then click on Finish Configuration button.
Upload IdP
    Metadata

  • Now go to Step 4 [SSO URL] tab, here copy the Login/SSO URL and add it to your Site by following the given steps.
Upload IdP
    Metadata

  • Now logout and go to your Joomla site's pages where you have added this link. You will see a login link where you placed that button. Click on this button to perform SSO.


ADFS_sso ×
Hello there!

Need Help? We are right here!

support