Skip to main content

Facebook

Configuring Facebook as a Social Provider

In this section, we will show you how to provide an option to log in with Facebook on your cidaas login page.

social-login-provider-display-page

By configuring Facebook as a social provider in cidaas, you will get a new option called Login with Facebook on the login page and Sign up with Facebook on the registration page of your cidaas application.

The overall process would be:

  • On cidaas admin portal: Get Return URL for Facebook.
  • On the Facebook developer portal : Create an application in your Facebook developer account
  • On the Facebook developer portal : Generate App ID and secret in Facebook developers account.
  • On the cidaas admin portal : Add the Facebook App ID and App secret to the cidaas application, and select the appropriate cidaas applications for which you want to enable Facebook.

We will guide you through the process - it's pretty easy!

Facebook setup

Get return url for Facebook

In this section, you'll find steps on how to get the Facebook Allowed return URL from cidaas admin portal.

  1. Log in to the cidaas Admin portal. Navigate to cidaas Admin dashboard -> Settings -> Login Providers -> Social Providers, select Facebook from the menu and click on Create provider.

    social-login-provider

    Amazon-select

  2.  Scroll down to the section "Configuration Steps for Facebook App," which will show Allowed Return URL. Copy it.

    social-provider-facebook-uri

Generate App ID and App secret

In this section, you'll find steps on how to get the Facebook App ID and Secret from the Facebook developer portal.

  1. Log in to the Facebook developer portal and click on My Apps.

  2. Click on Create app > Select " Authenticate and request data from users with Facebook login" > select the desired option > Add the app name and click on Create app.

  3. Select App settings > Basic from the left menu and copy the App ID and secret. social-login-facebook-app-id-secret

  4. Click on the Use cases > Customize > Go to settings > Enter the Allowed Return URL.

    social-provider-facebook-redirect-uri

  5. Let's move to the cidaas setup section above.

cidaas setup

In this section, you'll find steps on

  • how to add App ID and App secret obtained from your Facebook account into your cidaas application and
  • how to choose cidaas client applications for which you want to enable Facebook as a social provider.
  1. Now, navigate to cidaas Admin dashboard -> Settings -> Login Providers -> Social Providers.

    social-login-provider

  2. Click on Facebook > Create provider, enter the required details, and save.

    • Enter the App ID and App secret acquired from the Facebook setup section.

    social-login-app-deatils

  3. After you save, you can select the application you want Facebook to use as a social provider.

    social-login-mapping-the-app

  4. Facebook is available as a social provider for your application.


Note : An administrator can configure single provider to more than one client

Reference Link how to configure other providers?

Need help implementing this?

Please contact us on our Developer Support Page.