Follow the steps given below to add a new identity provider in WSO2 Identity Server.
You have now added the identity provider.
- Navigate to the Identity Provider section under Main > Identity menu-item.
- Click Add.
- Provide values for the following fields under the Basic Information section:
Excerpt Include Configuring an Identity Provider Configuring an Identity Provider nopanel true
- Expand the Facebook Configuration form.
Fill in the following fields where relevant.
Field Description Sample value Enable Facebook Authentication Selecting this option enables Facebook to be used as an authenticator for users provisioned to the Identity Server. Selected Default Selecting the Default checkbox signifies that the Facebook credentials are the main/default form of authentication. This removes the selection made for any other Default checkboxes for other authenticators. Selected Client Id This is the username from the Facebook app. These are obtained from the Facebook App you create using your Facebook Developer account. See Logging in to your Application via Identity Server using Facebook Credentials for more information on how to do this. 1421263438188909 Client Secret This is the password from the Facebook app. Click the Show button to view the value you enter. 12ffb4dfb2fed67a00846b42126991f8 Scope You can restrict the claims sent to the Identity Server. This means you can restrict the claims by specifying them in the scope. User Information Fields You can send a comma separated list of claims that you need to receive. id,email,name Callback URL
This is the URL to which the browser should be redirected after the authentication is successful. It should have this format: https://(host-name):(port)/commonauth. Here Callback URL is the endpoint in WSO2 Identity Server which accepts the response sent by facebook.