question

Anas Siraj avatar image
Anas Siraj asked

Best way to store usernames on profile?

We are trying to store a user's username in Playfab. What is the best way to do that? I see that Display Name limit is only 24 characters while steam usernames are up to 32 characters.

We can use login with Steam since our game supports Oculus login as well and thats not integrated with Playfab yet.

The goal is for username to be pulled in one api call when pulling a Friendlist. Instead of calling multiple api calls. Is this possible?

3 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.

Sarah Zhang avatar image Sarah Zhang commented ·

Could you please clarify that, do you mean you would like to store the player’s Steam displayname as the PlayFab displayname so that players can obtain the steam friends’ Steam display names when calling the PlayFab API -- GetFriendsList? If not, which one API you want to call? Could you please tell us how you call the multiple APIs now? What is you process of API calling? Will you use the Oculus account info in this process?

0 Likes 0 ·
Anas Siraj avatar image Anas Siraj Sarah Zhang commented ·

@Sarah Zhang, we are calling GetFriendsList to get all the friends in our friendlist along with their profile using constraints after that we are making a call to the subsystem to get their displayname from the information provided to us in the profile information linked accounts. We are trying to skip this second call of trying to get displayname from subsystem for each friend. Is there any where we can store displaynames in playfab? We cant use the displayname field since it is only 24 characters and some platforms like Steam have dispalynames up to 32 characters.

0 Likes 0 ·
Anas Siraj avatar image Anas Siraj Sarah Zhang commented ·

Just to add to that... we can't use login with Steam and other platforms because Oculus is not supported yet so for Oculus we have to do login with Custom ID anyways. We are using Linked Account for storing a unique identifier instead via custom id.

0 Likes 0 ·

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Forclarification, the API GetFriendsList provides the feature to return the Steam information of the friends. This feature requires the caller and its PlayFab friend are also connected in Steam. You can set the field -- IncludeSteamFriends as true to let the API return the Steam information of friends, includes the SteamName, etc. You need to link the players’ Steam accounts to the PlayFab accounts to use this feature.

According to your description, you can’t use the API LoginWithSteam to log in the PlayFab account using the Steam authentication ticket, is it right? Can you use the API LinkSteamAccount? We don’t so familiar with Oculus, as you said, Oculus don’t support “login with Steam”, but you can use the subsystem to get the friends’ Steam information. Could you please clarify that can you get the Steam authentication ticket in your program?

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.