Skip to main content
Version: 5.7.0

GetExternalIdForProfileId

Retrieves the external ID for the specified user profile ID on the specified social platform.

Does not require the calling user to be a friend of the other user.

ServiceOperation
friendGET_EXTERNAL_ID_FOR_PROFILE_ID

Method Parameters

ParameterDescription
profileIdProfile (user) ID.
authenticationTypeAssociated authentication type. Full list of types can be found here.

Usage

http://localhost:3000
string profileId = "profileId";
AuthenticationType authenticationType = AuthenticationType.Facebook;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.Friend.GetExternalIdForProfileId(profileId, authenticationType, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"externalId": "19e1c0cf-9a2d-4d5c-9a71-1b0f6b309b4b"
}
}