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 /
  • API and SDK Questions /
avatar image
Question by corporate · Sep 04, 2017 at 03:16 AM · Account ManagementAuthentication

Error Code 1011: AccountAlreadyLinked

Hi there -

How can I recover account information in cases where the user installs the game, authenticates anonymously at first and using Facebook later, deletes the app, and then installs it again and repeats the same process? If I use ForceCreate == true for LinkFacebookAccountRequest, that just creates a duplicate account with none of the information carried over; if I leave it to false, then I encounter error 1011. Detailed steps below - what do I do?

With ForceCreate == true

Steps:

  1. Install the app on the iOS device
  2. Authenticate anonymously using iOS device ID
  3. Log in with Facebook (ForceCreate = true) and link the accounts (great!)
  4. Uninstall the app
  5. Install the app again
  6. Authenticate anonymously using iOS device ID
  7. Log into the same Facebook account (ForceCreate = false)
  8. Discover that I now have two player accounts on PlayFab and that, crucially, the virtual currency and other items from the old one didn't carry over into the new one

With ForceCreate == false

Steps:

  1. Install the app on the iOS device
  2. Authenticate anonymously using iOS device ID
  3. Log in with Facebook (ForceCreate = false) and link the accounts (great!)
  4. Uninstall the app
  5. Install the app again
  6. Authenticate anonymously using iOS device ID
  7. Log into the same Facebook account (ForceCreate = false)
  8. Get the 1011: AccountAlreadyLinked error
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 Brendan · Sep 04, 2017 at 03:20 AM

The key point is that if you create an account (CreateAccount = true in the login call), that's a distinct account. It's important to have your FTUE guide the player to the correct login. Have a look at our login best practices guide, to get started with that: https://api.playfab.com/docs/tutorials/landing-players/best-login. The key is to make sure to offer the opportunity to get to their existing account, if they have one, from the start. There will still be players who won't read anything you put in front of them, and wind up with multiple accounts. For those players, you either leave the account separate, or else offer to merge some part of account A to account B, by signing the player into the first one, reading the details you need, then signing into the second and writing them there.

Comment

People who like this

0 Show 2 · 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 corporate · Sep 12, 2017 at 10:16 PM 0
Share

Hi @Brendan -

This worked swimmingly, as usual!

Another question, and slightly off-topic - the game I'm working on is an incremental game, which means that some values can go up to 1e308 (I have to use doubles to handle them within the game).

Since one of the main benefits of linking accounts is the ability to restore data when switching devices or what not, it would be useful to store this data in the cloud - however, I'm not sure if there are limits as to the size of things that can be stored (e.g., another service I worked with ignored everything that was greater than a long).

What, if any, are PlayFab's limits and, if they're less than 1e308, is there a workaround?

Cheers,

George

avatar image Brendan ♦♦ corporate · Sep 12, 2017 at 10:32 PM 0
Share

Well, for compatibility across all the SDKs we support, statistics are 32-bit, so you wouldn't be able to have a leaderboard that has those numbers at full fidelity. We have quite a few clicker games on the platform - in general, they store the player's values in player data, updating the backend on a timer so that the player scores are updated in the service every minute or so (with the occasional extra save when key things occur in-game). A double-precision value (up to 1.8 * 10^308) only needs 64 bits, and even if you use some of the specialized large math libraries, values generally aren't that long. Player data values are measures in thousands of bytes, minimally - so there's plenty of room to work with.

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

    Get Language List fails at Entity Authentication 2 Answers

    LinkAndroidDeviceID Login with Email Address at a later stage 1 Answer

    Google login issues not using GPGS for Unity not working consistently? Code already redeemed 1 Answer

    Best Login practices 1 Answer

    User log in with unsupported platform 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