Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by John Peterson · Oct 27, 2018 at 04:22 PM · CloudScriptFriends

GetFriendsList not returning FriendTags.

Dear PlayFab community.

I am trying to write a CloudScript endpoint that will return a player's friends list, including whatever FriendTags would be associated with the friends.

The Server API GetFriendsList does *not* appear to be returning the FriendTags, and I'm wondering why.

Here is what I see in Game Manager:

And here is what server.GetFriendsList is returning:

"Friends": [
                {
                    "FriendPlayFabId": "121BD68E8A8B5E87",
                    "Profile": {
                        "PublisherId": "1855D4D27C9DFD4C",
                        "TitleId": "44B1",
                        "PlayerId": "121BD68E8A8B5E87"
                    }
                }
            ]

Is there any way to get the FriendTags? I need this information with which to filter friends as per this two-way friend confirmation recommendation.

Any help would be much appreciated!

screen-shot-2018-10-27-at-91313-am.png (70.2 kB)
Comment
Canberk Soner

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by John Peterson · Oct 27, 2018 at 04:54 PM

Hmmm...I see something interesting when I call GetFriendsList():

If I call it with an undefined ProfileConstraints (for GetFriendsListRequest), I do get the FriendTags!

But if I call it with anything in ProfileConstraints, I do not get the FriendTags.

It's almost like ProfileConstraints should have a "ShowFriendTags" or something.

Is there any way to specify ProfileConstraints *and* show the FriendTags? Or am I going to need to call GetFriendsList() twice and merge the data to get the results that I need?

Comment

People who like this

0 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Andy ♦♦ · Oct 27, 2018 at 05:42 PM 0
Share

You're right! I was investigating this a bit this morning and noticed the same thing. Taking a look at the service code, when a profile is specified we build the response differently and don't include the tags. That seems like an oversight. It should be a pretty simple fix. I'll get the bug filed.

For now, unfortunately, you're left with needing to make two calls if you need profile data and tags.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    GetFriendsList critical error 3 Answers

    Add Friend in CloudScript Issues 1 Answer

    RemoveFriend is not always working 2 Answers

    Server API - Possible Bug: You only get Friend tags with the GetFriendList call if the parameter ProfileConstraints is null 1 Answer

    GetFriendsList not returning Steam friends 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges