Facebook Social Login

This section describes how to configure Facebook social login for OpenIAM. Follow the steps below.

OpenIAM must be configured to use HTTPS prior to proceeding.


Creating and Configuring a Facebook Application

To use Facebook social login:

  1. Register on Facebook for Developers.
  2. Create a new app at Facebook Apps:
    • Select App type: Consumer.
    • Enter a Display Name and App Contact Email.
    • Click Create App ID and complete the security check.

The new application will initially be in Development mode. In Development mode, your app can only request data from users with an app role. To access end-user data, your app must have Advanced Access permissions and be set to Live mode. OpenIAM supports both Live and Development modes.

  1. On your application page:
    • Click ProductsFacebook LoginWeb.
    • Enter your site URL (e.g., https://your_openiam_domain).
    • Complete the quick-start wizard following Facebook's instructions.
    • Go to the Settings tab → Valid OAuth Redirect URIs and add:
      https://[your_openiam_domain]/idp/social/facebook/callback
    • Save the changes.
Note: Facebook applications launch in Development mode by default. Only Admins can use the functions in Development mode. To go Live, follow Facebook's procedure.

Facebook Admin

  1. Go to Settings > Basic on your Facebook application to confirm you can see the App ID and App Secret.

Facebook Application


Configuring OpenIAM

Creating an Authentication Provider

  1. In the Webconsole, go to Access Control > Authentication Providers > Create New Provider.
  2. Select Facebook from the dropdown.
  3. On the Authentication Provider screen:
  • Copy and paste the App ID and App Secret from Facebook.
  • Fill in the required fields and save.

Auth Provider

  1. Update the appropriate Content Provider with the following URL patterns:
  • /idp/social/facebook/callback
    • Authorization: Disabled
    • Authentication Rule: None
  • /idp/social/facebook/login
    • Authorization: Disabled
    • Authentication Rule: None
    • Supported HTTP Methods: POST

Preparing Users

Each user who may log in via Facebook must have an identity in the managed system selected on the Auth Provider page (in this example, the Facebook Managed System).

Facebook Users


Testing the Feature

  1. Navigate to the OpenIAM login page.
  2. Click the Facebook login button.
  3. A Facebook pop-up will appear asking the user to share information with the app.

Facebook Login Prompt