Skip to main content
Version: 5.7.0

GetMySocialInfo

Retrieves the social information associated with the logged in user. Includes summary data if includeSummaryData is true.

ServiceOperation
friendGET_MY_SOCIAL_INFO

Method Parameters

ParameterDescription
friendPlatformFriend platform to query. Valid values are "Facebook", "brainCloud" and "All".
includeSummaryDataTrue if including summary data; false otherwise.

Usage

http://localhost:3000
FriendPlatform friendPlatform = FriendPlatform.Facebook;
bool includeSummaryData = true;
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.GetMySocialInfo(friendPlatform, includeSummaryData, successCallback, failureCallback);
JSON Response
{
"data": {
"playerId": "caa0362c-03a8-4c92-8ef6-a19919a97e0a",
"name": "q2a4d5ba811-CAen",
"pictureUrl": "https://graph.facebook.com/v3.2/111234914143270/picture?",
"summaryFriendData": null,
"externalData": {
"Facebook": {
"pictureUrl": "https://graph.facebook.com/v3.2/111234914143270/picture?",
"name": "Tester Tester",
"externalId": "111234914143270"
}
},
"server_time": 1615573285941
},
"status": 200
}