Remove a social login provider from a user profile
Removes a social login identity provider from a user account. see Map social login accounts for more information.
Accepted content types
- application/x-www-form-urlencoded
- multipart/form-data
Authentication
This operation uses your social login API key for authentication. This key can be found on the Settings page of the Social Login dashboard. See Get started for more information.
Base URL
The base URL for this operation is your application domain followed by /api/v2; for example:
https://educationcenter.rpxnow.com/api/v2
You can find your application domain in the Social Login dashbaord on the Settings page:
Example request
This command removes the social login provider with the identifier http://www.facebook.com/profile.php?id=10158391536229336 form a user account.
curl -X POST \
--data-urlencode apiKey=1234567891234567891234567891234567891234 \
--data-urlencode identifier="http://www.facebook.com/profile.php?id=10158391536229336" \
--data-urlencode all_identifiers=true \
--data-urlencode primaryKey=12 \
--data-urlencode unlink=true \
https://janrain-docs.rpxnow.com/api/v2/unmap
Example response
If your API call succeeds the response consists of the status ok.
{
"stat": "ok"
}
Parameters
Parameters can be configured as x-www-form-urlencoded or as multipart/form-data body parameters.
Parameter | Type | Required | Description |
---|---|---|---|
apiKey | string | ✓ | Social login secret for authenticating the operation. To verify your API key, log in to Console and, on the Manage Application page, check the value of the rpx_key setting. This value also appears on the Settings page in the Social Login dashboard. |
identifier | string | ✓ | Social login identifier you're removing from the user account. Use this member to remove a single social login identity provider from an account. You need to include either the identifier or the all_identifiers member in your operation. |
all_identifiers | boolean | ✗ | If true, the operation removes all the social login identifiers mapped to the primary key. If false, the operation only removes the specified identifier. Removing all the identifiers means removing all the social login identity providers for the user. You need to include either the identifier or the all_identifiers member in your operation. |
primaryKey | integer | ✗ | Index number of the attribute. |
Updated almost 2 years ago