We're getting a friend list via CloudScript with the following function:
export function GetFriendList(playerID): PlayFabServerModels.FriendInfo[] { let retVal = server.GetFriendsList({ IncludeFacebookFriends: true, IncludeSteamFriends: false, PlayFabId: playerID, ProfileConstraints: CreatePlayerProfileViewConstraints(true, true, true) }).Friends; return retVal; }
This gives us the following result:
{\"FriendPlayFabId\":\"2147A0DD303F88A2\",\"Profile\":{\"PublisherId\":\"9FC655C648B8DA29\",\"TitleId\":\"6131\",\"PlayerId\":\"2147A0DD303F88A2\",\"LastLogin\":\"2017-12-13T17:32:12.368Z\",\"DisplayName\":\"jhghgj\",\"Tags\":[]}}
It only contains the profile and the PlayFabId, but not the Friend-Tags, as the documentation says:
https://api.playfab.com/documentation/server/method/GetFriendsList
If we set null for ProfileConstraints, we get this:
{\"FriendPlayFabId\":\"2147A0DD303F88A2\",\"TitleDisplayName\":\"jhghgj\",\"Tags\":[\"ReferralAcquisitionByLocalPlayer\"],\"FacebookInfo\":{}}
And it contains the Friend Tags this time! (One tag: ReferralAcquisitionByLocalPlayer)
But if we need both, the profile and the tags - we have to call the function twice and combine the results, therefore resulting in two API Calls.
Is there any fix for this?