Client GetFriendsList with IncludeFacebookFriends = true returns all Facebook friends correctly, but returned FacebookInfo is always null.
Reading the forum / documentation history if this is intended or not is a bit complicated because of new addition like profile constraints, privacy restrictions, etc..
So, primary question, should FacebookInfo be set for facebook friends when queried with GetFriendsList? We definitely hope so as we need to get the facebooks friend ID for further actions.
GetFriendsListRequest request = new GetFriendsListRequest(); request.IncludeFacebookFriends = true; request.ProfileConstraints = new PlayerProfileViewConstraints(); request.ProfileConstraints.ShowStatistics = true; request.ProfileConstraints.ShowAvatarUrl = true; request.ProfileConstraints.ShowLocations = true; PlayFabClientAPI.GetFriendsList(request, (result)=> { }
foreach (PlayFab.ClientModels.FriendInfo _friend in result.Friends) { // ALWAYS NULL EVEN FOR FACEBOOK FRIENDS if (_friend.FacebookInfo != null) { Debug.Log("FacebookFriend " + _friend.FacebookInfo.FacebookId);