question

Brian Jordan avatar image
Brian Jordan asked

Updating linked Steam account usernames (display names) when they change them on Steam?

We're finding that players' Steam display names are cached and not updated when they update them on Steam (even after restarting Steam & re-logging in to our game).

We log them in with Steam like so:

LoginWithSteamRequest loginWithSteamRequest = new LoginWithSteamRequest {CreateAccount = true, SteamTicket = _steamTicket};
PlayFabClientAPI.LoginWithSteam(loginWithSteamRequest, PlayFabLoginSuccess, PlayFabLoginFail);

Our server gets their username from their player profile like so (as per the thread Best practice - steam account names):

PlayerProfileViewConstraints playerProfileViewConstraints = new PlayerProfileViewConstraints {ShowLinkedAccounts = true};
GetPlayerProfileRequest getPlayerProfileRequest = new GetPlayerProfileRequest { PlayFabId = playFabID, ProfileConstraints = playerProfileViewConstraints };
PlayFabServerAPI.GetPlayerProfile(getPlayerProfileRequest, (result) => onGetPlayerProfileSuccess(result, playFabID, connectionID), onPlayFabErrorCallback);

An example QA test account which had a Steam display name change which isn't reflected in their linked account info after Steam/game restart (QA test account owner confirmed permission to post here):

  1. Display name change: VastFluorescence -> Vast (can confirm name change here)
  2. Title: E79E, Game-specific ID: 8737EC2BAE438D81, Studio-wide ID: A5C335E978A9C264, Steam ID: 76561197972454469

Is there any method to update / refresh this username lookup? Should we e.g. un-link and then re-link player's Steam identity each time they load the game? (& would doing so require a delay between API calls?)

apissdksAccount Management
10 |1200

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

1 Answer

·
brendan avatar image
brendan answered

We have a backlog item to check and refresh the stored Steam display name, but I don't have a date for when that'll be addressed just yet. Unlinking and re-linking would certainly do the trick, but it would run the risk of leaving the player unlinked if they disconnect before they can re-link again. In the near-term, I'd recommend using the name from the Steam query directly. I'll add a note to the backlog item that this was brought up here.

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.