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 /
  • General Discussion /
avatar image
Question by Doronhn · Oct 21, 2020 at 05:34 AM · apisPlayer DatasdksAccount ManagementAuthentication

recover yser account \ marge user accounts into one

Hey,

Currently all my players login to Playfab using DeviceID (Mobile) \ CustomID (PC).

Some of them link there account with Facebook \ google.

If they connect to Playfab from different account (tablet \ iPad or another PC) and try to link the new account to the same Facebook \ Google. i want to be able to let them the option to load or data from the old user and unlink the old account and link the new account.

how do i do that?

Comment

People who like this

0 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 Citrus Yan · Oct 21, 2020 at 09:59 AM

DeviceID and CustomID are considered as anonymous login mechanisms, which means that the player cannot log into the same account on other devices, once they lost or broke their devices, it would be hard to recover the account for them. Facebook and google, are considered as recoverable login mechanisms, which means that the players can log into their accounts on any devices as long as they have access to their facebook/google accounts.

The best practice is to suggest the players link recoverable login mechanisms, in your case, are facebook and google, to their accounts, when there are only anonymous login mechanisms linked. After that, players can log into their accounts using facebook/google on new devices, and link the current device id with the logged-in account. In this process, second account is not necessary, avoiding the trouble of migrating data from old account to new account later. For more details, please check out the doc on Login basics and best practices.

Comment

People who like this

0 Show 4 · 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 Doronhn · Oct 21, 2020 at 11:12 AM 0
Share

Hey,

Thanks for the answer.

This is not possible in my game. All users signed in with CustomID \ Device ID. Some of them linking their account with Facebook \ Google.

Lets take user A, he signed in by CustomID - in PC, got level 10 and tommorow he download my game from app store and sign in with his android device.

so currencly User A has two account, one from PC (facebook linked to it) and the other from android.

user a want to link his android account to facebook also in order to load all the data from the old account are marge both accounts.

how do i do that?

avatar image Citrus Yan Doronhn · Oct 22, 2020 at 07:16 AM 0
Share

Since they are two sperate accounts now, you'll need to manually migrate the data, such as Player data, Statistics, Inventory, etc. We have corresponding server APIs to do that:

Player Data:

https://docs.microsoft.com/en-us/rest/api/playfab/server/player-data-management?view=playfab-rest

Player Item:

https://docs.microsoft.com/en-us/rest/api/playfab/server/player-item-management?view=playfab-rest

Character Data:

https://docs.microsoft.com/en-us/rest/api/playfab/server/character-data?view=playfab-rest

Friend List Management:

https://docs.microsoft.com/en-us/rest/api/playfab/server/friend-list-management?view=playfab-rest

...

avatar image Doronhn Citrus Yan · Oct 22, 2020 at 07:20 AM 0
Share

i get that, but how do i get the old PlayfabID?

what should i do with the old account? delete it?

Show more comments

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

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Verify on Discord Server with Playfab. 1 Answer

    How can i add Open Id Player External Identifier 1 Answer

    How to display avatar - Player Profile Pic 1 Answer

    Place Loading screen until PlayFab Player Account Info Fully Loaded 1 Answer

    Handling banned players and GDPR's account deletion 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