Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 2.86 KB

File metadata and controls

70 lines (46 loc) · 2.86 KB

Facebook

Overview

You can authenticate users with Facebook. Before you begin, you need to sign up for a Facebook Developer account.

Steps

To connect your application to Facebook, you will:

  • Register a new application in Facebook
  • Create a Facebook identity provider in AM
  • Set up the connection in Facebook
  • Test the connection

Register a new application in Facebook

  1. Add a New App from the Facebook for Developers Portal.
  2. For How are you using your app?, select For everything else.
  3. Give your application a name.
  4. Click Create.

{% hint style="info" %} Facebook will generate an App ID and App Secret for your application. Make a note of these for later use. {% endhint %}

Create a Facebook identity provider

  1. Log in to AM Console.
  2. Click Settings > Providers.
  3. Click the plus icon plus icon.
  4. Choose the Facebook identity provider type and click Next.

{% hint style="info" %} Ensure you have the generated App ID and App Secret from Facebook the application to hand. {% endhint %}

  1. Give your identity provider a name.

  2. Enter your Facebook application App ID and App Secret.

  3. Click Create.

    Create Facebook IdP

{% hint style="info" %} On the right side of the screen under 1. Configure the Redirect URI, copy the value of the URL. You will use it to update your Facebook application settings. {% endhint %}

Set up the connection

Go to your Facebook application settings and add Facebook Login to the application as a Product.

Configure the following settings:

  1. Enable Client OAuth Login.
  2. Enable Web OAuth Login
  3. Add a Valid OAuth Redirect URIs with the Redirect URI created in the previous step.
  4. Click Save Changes.

Test the connection

You can test your Facebook connection using a web application created in AM.

  1. i.e.In AM Console, click Applications and select your social identity provider.

    Select Facebook IdP

  2. Call the Login Page (i.e. /oauth/authorize endpoint). If the connection is working you will see a Sign in with …​ button.

    If the button is not visible, there may be a problem with the identity provider settings. Check the AM Gateway log for more information.

    Sign in Options