question

sathyaraj avatar image
sathyaraj asked

Get friends from other title

We have a feature to display all the friends across all our titles in the game. We can add users from other titles as friends and it shows up as friends in the playfab dashboard. But when we try to fetch the same using client API we get friends from current title. Is there a way we can retrieve all the friends using PlayFabClientAPI.GetFriendsList method

10 |1200

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

brendan avatar image
brendan answered

Ah, I have to correct that. Reviewing the code, the GetFriendsList API call always returns the set of users who are in the player's friends list who have also played the current game. If you'd like to have an option to also show information for friends who do not have a title record for the current game, I'd have to request adding that to our Feature Requests forum. We cannot change the existing behavior of the API call, as that would be a breaking change which would impact live titles.

2 comments
10 |1200

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

sathyaraj avatar image sathyaraj commented ·

Cool. So until the feature is added is there any workaround to achieve the same!

0 Likes 0 ·
brendan avatar image brendan sathyaraj commented ·

Sorry, no - the call to retrieve friends is GetFriendsList, which returns the list of friends who have also played the current game.

0 Likes 0 ·
brendan avatar image
brendan answered

Can you please provide the Title IDs and PlayFab IDs of the users in question? The way the PlayFab friends list works, the friends are set at the Master Account level, which is shared across titles. To be clear, if you mean Facebook friends, Facebook only provides information on friends who have played the same title by default.

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.

sathyaraj avatar image sathyaraj commented ·

C31F and 72B9

102E6CE687CB971F kate has profile in C31F and F2D0C407C0D4E0C2 Julia has profile in 72B9

kate and julia are friends and can be seen in the dashboard.

0 Likes 0 ·

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.