question

nicolasballester avatar image
nicolasballester asked

GetFriends add playerId(title)

Good morning,

First, i getFriends, so i can create a window of firends. When i click on a friend, im going to do, the usual actions, as invite that friend to a group.

The fun part, is that i have to make GetPlayerProfile for that player to get the playerId(Title), because InvitePlayer requests an entity, that only admits character_id or title_player_id.

As long as there are some requests, that asks for master_id and title_id, why do not retrieve both when getting friends? It will improve the performance

apisFriends
10 |1200

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

Sarah Zhang avatar image
Sarah Zhang answered

You can call this API GetTitlePlayersFromMasterPlayerAccountIds to get the corresponding title player Id via the friend’s PlayFabId(master player id). Besides, you can try to add the feature request to post your ideas that adding title player Id in the response of GetFriendsList API.

1 comment
10 |1200

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

justin-1 avatar image justin-1 commented ·

Be careful with this! GetTitlePlayersFromMasterPlayerAccountIds has a limit of 25 MasterPlayerAccountIds. If you enter more Ids, you will get an error.

0 Likes 0 ·
nicolasballester avatar image
nicolasballester answered

I didnt know there was a section for feature request, thanks!

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.