Hi
I know from previous experience of games that this can be a tricky thing trying to cover every case of login logout of facebook, changing device etc. I tried to setup a flowchart just to see how I would handle my accounts and logins/logouts but I still have some problems with it.
Here is what I have:
As soon as player starts the game for the first time it will create an account using what I call a coreId. CoreID is iOS, Android or Custom login that all are hardware specific (using MAC adress+timestamp in desktops as custom ID).
This will not work if player changes hardware so I offer FB connection. It will then login to PF with a token but NOT create a new account. If it fails to login I just link the token to the PF-account I have using LinkFacebookAccount.
So far so good. Now say that I change mobile device.
Same thing happens. New account is created, I play a few rounds but then realize I want to have my old progress so I connect to FB again. This time it will be able to login with the FB token and therefor will use the old PFAccount.
The problem is that I can never now disconnect my FB account as then it will revert to the newer account (logging in with my new CoreId).
I'm kinda stuck here at the flow. Anyone that would care to help?