question

chingachigames avatar image
chingachigames asked

GetFriendsListRequest returning zero friends

Hi. After invoking GetFriendsListRequest I'm getting a response with an empty friend's list which is not valid. At least on PlayFab's dashboard, I can see that I have some friends.

private void GetFriends() {

var request = new GetFriendsListRequest {

IncludeSteamFriends = false,

IncludeFacebookFriends = false,

XboxToken = null

};


PlayFabClientAPI.GetFriendsList(request, OnFriendsListSuccess, OnFailure);

}


private void OnFriendsListSuccess(GetFriendsListResult result) {

_friends = result.Friends;

Debug.Log($"Friend list count: {result.Friends.Count}");// Friend list count: 0

}

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

I cannot reproduce this issue. Are you sure that you were logging into the correct account? Please note that in PlayFab, adding a friend does not make the friend mutual. I also noticed that you have turned off the IncludeSteamFriends and IncludeFacebookFriends options in your request, if your friends are Steam Friends or Facebook Friends, they won't be shown in the result.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.