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.