Step 1: Create the new identity provider resource
POST {{apiPath}}/environments/{{envID}}/identityProviders
You can use the POST /environments/{{envID}}/identityProviders
endpoint to create the identity provider configuration for Facebook. This request automatically creates the core attribute mapping to associate the PingOne username
attribute with the Facebook email
attribute. To verify the mapping, you can use the ?expand=attributes
query filter to show the core attribute details in the POST
response.
In the request, the name
property for the new identity provider is required and must be unique within the environment. The enabled
property is required and should be set to true
, and the type
property is required and must specify FACEBOOK
as the identity provider type.
The {{facebookAppID}}
and {{facebookAppSecret}}
are required. These are the values you must obtain from Facebook.
The response shows the configuration data for the new identity provider.
Note: The response also includes an attributes
link to initiate a request to create additional attribute mappings.
Request Body
{"name"=>"UseCaseFacebookIdP_{{$timestamp}}", "description"=>"Facebook social media identity provider.", "enabled"=>true, "type"=>"FACEBOOK", "appId"=>"{facebookAppId}", "appSecret"=>"{facebookAppSecret}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |