Search Results :

×

Configure Facebook Single Sign-On (SSO) with OAuth for WordPress

Setting up Facebook Social Media Login on WordPress (Facebook SSO) using OAuth2 is easy with the OAuth / OpenID Connect Single Sign-On (SSO) plugin for WordPress. You can configure the plugin using different other Social Media providers / custom OAuth and OIDC providers. It supports advanced Single Sign-On (SSO) features such as user profile Attribute mapping, Role mapping, etc. Here we will go through a guide to configure SSO between WordPress and Facebook. By the end of this guide, users should be able to login to WordPress from Facebook. To know more about other features we provide in the OAuth Single Sign-On (OAuth & OpenID Connect Client) plugin for WordPress, you can click here.

  • Log into your WordPress instance as an admin.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a OAuth Single Sign On (SSO) Plugin for WordPress and click on Install Now.
  • Once installed click on Activate.
  • To get started, go to the Facebook developers console, click here and sign up/login with your Facebook developer account.
Configure Facebook SSO (Single Sign-On) - Facebook Developer Login

  • Go to the Facebook Developers apps page and click the Create App button to add a new app.
Configure Facebook SSO (Single Sign-On) - Create Facebook App

  • Then choose the Allow people to log in with their Facebook account option as use case and press Next.
Configure Facebook SSO (Single Sign-On) - Select App Use Case

  • Enter the App Name and Add Contact Email for your Facebook app respectively, then click on Create App button to save your settings.
Configure Facebook SSO (Single Sign-On) - App Details

  • Go to App Settings -> Basic to view your App Id and App Secret. The App ID is your Client ID and the App Secret is your Client Secret, keep these values handy as you will need them later to configure the miniOrange OAuth Single Sign-On SSO plugin (Refer to the images below).
  • App Domain: Write your website's domain there.
  • Privacy Policy URL: Fill in this box with the URL linked to your website's privacy policy page.
  • Terms of Service: Fill in this box with the URL linked to your website's terms of service page.
  • User Data Deletion: drop down, select Data Deletion Instruction URL (Enter the URL of your page with the instructions on how users can delete their accounts on your site).
  • Choose a category from the dropdown in the Category field and pick the App Purpose option that describes your App the best, then press Save Changes to save your configurations.
Configure Facebook SSO (Single Sign-On) - App Settings Basic Info

Configure Facebook SSO (Single Sign-On) - Client ID and Client Secret

  • Now scroll down and click on Add Platform button. Select the Website option as you are trying to integrate your Facebook Login with a website. Click on Next.
Configure Facebook SSO (Single Sign-On) - Add Platform

  • Next, enter the Site URL (from your miniOrange OAuth Single Sign-On) and click Save. Then, click Continue.
Configure Facebook SSO (Single Sign-On) - Add Site URL

  • Click on the Use cases tab on the left side and then click on the Customize button that appears next to the Authentication and account creation item.
Configure Facebook SSO (Single Sign-On) - Customize Use Case

  • Below the Permissions section, find the email permission and click on the Add button.
  • Note and Contact Us - SSO between two WordPress sites

    By default, your application only has Standard Access for the "public_profile" and "email" permissions, which means that only you can log in with it. To get Advanced Access you will need to go through the Business Verification, that you can start on the Verification tab on the left side.

Configure Facebook SSO (Single Sign-On) - Add Email Permission

  • Under the Facebook Login >> settings section click on Go to settings button to add the Redirect/Callback URL.
Configure Facebook SSO (Single Sign-On) - Go to Facebook Login Settings

  • Into the Valid OAuth redirect URIs field add the Redirect/Callback URL which you will get from the miniOrange OAuth Single Sign-On (SSO) plugin. Click on Save changes button.
Configure Facebook SSO (Single Sign-On) - Add Redirect URL

  • Currently your app is in Development Mode which also means that people outside of your business can not use it. Once your verification is completed, click on the Go live tab and publish your app by clicking on the Go live button at the bottom right corner. Before you press it, it is recommended to check the steps listed on the "Go live" page, if you configured everything properly.
Configure Facebook SSO (Single Sign-On) - Go Live

You have successfully configured Facebook as Social Login (OAuth Provider) into your WordPress Site.


  • Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
Facebook Single Sign-On (SSO) OAuth - Add New Application

  • Choose your Application from the list of OAuth / OpenID Connect Providers, here Facebook
Facebook Single Sign-On (SSO) OAuth - Select Application

  • After selecting the provider copy the Callback URL which needs to be configured in OAuth Provider's SSO application Configuration.
  • Enter the Client Credentials like Client ID & Client Secret which you will get from the Facebook SSO application.
  • Please refer the below table for configuring the endpoints for Facebook in the plugin.
  • App Name: Facebook
    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
    Scope: public_profile email
  • Click on Next.
Facebook Single Sign-On (SSO) OAuth - Add App Name and Client Credentials

  • After verifying all the details on the summary page, click on Finish to save the configuration as well as test the SSO connection.
Facebook Single Sign-On (SSO) OAuth - Finish Configuration

You have successfully configured WordPress as OAuth Client for achieving user authentication with Facebook Single Sign-On (SSO) login into your WordPress Site.

  • Go to Configure OAuth tab and search your application name to add a new client application into your website, here Facebook.
Facebook Single Sign-On (SSO) OAuth - Add New Application

  • Please refer the below table for configuring the scope & endpoints for Facebook in the plugin.
  • Scope: identify 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
Facebook Single Sign-On (SSO) OAuth - Add App Name and Tenant ID

  • Choose your Grant Type from the list of options & Click on Save Settings to save the configuration.
Facebook Single Sign-On (SSO) OAuth - Add Grant Type

You have successfully configured WordPress as OAuth Client for achieving user authentication with Facebook Single Sign-On (SSO) login into your WordPress Site.

  • User Attribute Mapping is mandatory for enabling users to successfully login into WordPress. We will be setting up user profile attributes for WordPress using below settings.

Finding user attributes:

  • Go to Configure OAuth tab. Scroll down and click on Test Configuration.
Configure Facebook SSO (Single Sign-On) - Test Configuration

  • You will see all the values returned by your OAuth Provider to WordPress in a table. If you don't see value for Email or Username, etc. make the required settings in your OAuth Provider to return this information.
  • Once you see all the values in Test Configuration, go to Attribute / Role Mapping tab, you will get the list of attributes in the dropdowns.
Configure Facebook SSO (Single Sign-On) - Attribute / Role Mapping


  • The settings in the Single Sign-On (SSO) Settings tab define the user experience for Single Sign-On (SSO). To add a Facebook login widget on your WordPress page, you need to follow the below steps.
  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
Configure Facebook SSO (Single Sign-On) - WordPress Login Button Setting

  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
Configure Facebook SSO (Single Sign-On) - WordPress Login Button Setting

  • Open your WordPress page and you can see the Facebook SSO login button there. You can test the Facebook Single Sign-On (SSO) now.
  • Make sure the "Show on login page" option is enabled for your application. (Refer to the below image)
Configure Facebook SSO (Single Sign-On) - Show On Login Page Option

  • Now, go to your WordPress Login page. (Eg. https://< your-wordpress-domain >/wp-login.php)
  • You will see an Facebook SSO login button there. Once you click the login button, you will be able to test the Facebook Single Sign-On (SSO).
Configure Facebook SSO (Single Sign-On) - Login Button


In this Guide, you have successfully configure Facebook Single Sign-On (SSO) by configuring Facebook as OAuth Provider and WordPress as OAuth Client using our OAuth Single Sign-On (OAuth & OpenID Connect Client) plugin for WordPress. This solution ensures that you are ready to roll out secure access to your WordPress site using Facebook login credentials within minutes.



 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

We'll Reach Out to You at the Earliest!


ADFS_sso ×
Hello there!

Need Help? We are right here!

support