question

Pierre Demessence avatar image
Pierre Demessence asked

Deleting a user does not unlink Facebook

Hello,

It seems that deleting a user from the PlayFab admin panel does not unlink the Facebook account (and maybe others accounts).

It is then impossible to link the Facebok account again because its ID seems to be kept somewhere in the PlayFab server.

Here is the steps I made to have the bug :

  1. Link a PlayFab account with a Facebook account.
  2. Delete the PlayFab account without unlinking Facebook.
  3. Try to link another PlayFab account with the same Facebook account.
    • This should give a LinkedAccountAlreadyClaimed error.
  4. Try to do the same with forceLink=true.
    • This should give a Error 500 HTTP error.
Player Data
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.

Pierre Demessence avatar image Pierre Demessence commented ·

I forgot to add some details : I'm aware that deleting a player put it in a queue and thus the actual deletion is delayed by a few minutes/hours.

In the case of the issue I encountered, the player had been deleted for a whole week.

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

So, it's important to understand the essentials of the account system first:

The player account, while created for a title, has a core that is at the Publisher ID level. The idea is that you have a player create an account, link it to other login mechanisms, and then that's all shared between titles, with each title having its own title-specific data for the player (user data, statistics, etc.).

When you delete an account, it is queued for deletion - and during that period, attempts to re-use it may fail, as it's being processed to remove all the title-specific components.

So yes, the Facebook link is already claimed because there's a pre-existing account that has that Facebook account linked. If you delete the player account from the title the publisher layer still exists.

If you were to login to the title using LoginWithFacebook, what you would find is that you would get a new set of all the title-relevant information, but you would have the same PlayFab ID as you had originally.

If you want to link that Facebook account to a different account, you must use the ForceLink option.

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.

brendan avatar image brendan commented ·

Additional, for completeness: For accounts created with an email address in the credentials (via RegisterPlayFabUser, or AddUsernamePassword), that email address is also part of the core in the Publisher ID layer. Once deleted from a title, you can still sign in (creating new title-level info for the player account) using that account's credentials. If you want to create a new account (new PlayFab ID) using that email, you'll need to change the email address on the existing account via the Game Manager. And since your view of the player in the Game Manager is at the title level, you will need to have signed into one title with those credentials to be able to see it in that title.

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.