Configuring Facebook
Facebook can be used as a federated authenticator in the Identity Server. Do the following to configure the Identity Server to authenticate users using their Facebook credentials.
This section gives you a quick understanding of configuring Facebook as Identity provider so that it acts as a federated authenticator. Check out the Logging in to your application via Identity Server using Facebook Credentials tutorial to try out an end to end scenario of using Facebook as a federated authenticator.
Before you begin
Create a Facebook account and register an application on Facebook.
Sign in to the WSO2 Identity Server Management Console at
https://<Server Host>:9443/carbonusing yourusernameandpassword.
Follow the steps given below to add a new identity provider in WSO2 Identity Server.
Download the WSO2 Identity Server from here and run it.
Log in to the Management Console as administrator.In the Identity section under the Main tab of the Management Console, click Add under Identity Providers.
Give a suitable name as the Identity Provider Name.
Go to Facebook Configuration under Federated Authenticators.
Enter the following values in the form that appears:
Select both checkboxes to Enable Facebook Authenticator and make it the Default.
Click Register.
You have now added the identity provider.
Identity Federation is part of the process of configuring an identity provider. For more information on how to configure an identity provider, see Configuring an Identity Provider.
See the following topics for samples of configuring Facebook for federated authentication: