question

scottadams avatar image
scottadams asked

Why doesn't GetFriendsList return SteamInfo or LinkedAccounts?

I am able to get back profile info on a friend such as last logged in, Avatar URL, and display name just fine.

I have Linked Accounts checked in Client Profile Options for the title.

I am trying to determine if a returned friend is also a steam friend so I can put an icon by their name.

 PlayFabClientAPI.GetFriendsList
        (
            new GetFriendsListRequest()
            {
                IncludeFacebookFriends = false,
                IncludeSteamFriends = true,
                ProfileConstraints = new PlayerProfileViewConstraints()
                {
                    ShowAvatarUrl = true,
                    ShowDisplayName = true,
                    ShowLastLogin = true,
                    ShowTags = true
                }
            },
            resultCallback,
            errorCallback
        ); 
Friends
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.

scottadams avatar image scottadams commented ·

I just added ShowLinkedAccounts = true, to the constraints and now getting values back. SteamInfo is still returned as null.

I am investigating to see if there is enough in the linked accounts to give me what is needed.

0 Likes 0 ·
scottadams avatar image scottadams commented ·

With further testing I find I am getting the steamInfo back now as well.

0 Likes 0 ·

1 Answer

·
scottadams avatar image
scottadams answered

Need to add ShowLinkedAccounts = true, to the PlayerProfileViewConstraints

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.

dylan-1 avatar image dylan-1 commented ·

Thanks bud

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.