question

Nelson Ciofi avatar image
Nelson Ciofi asked

Best practice to login a returning linked player with Facebook?

Hi,

I managed to create a frictionless login using deviceID. Then following some tutorials I give the Link with Facebook options, and another frictionless login with facebook when the player returns. So far so good.

What should I do if that player buys a new device and the facebook (or other option) is already linked?

Since the player is on another device, how do I find if it has the facebook link to provide a login button instead of a link button ?

Should I have a Create Account/Login Existing Account UI since the beginning?

Player Data
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

·
Seth Du avatar image
Seth Du answered

>What should I do if that player buys a new device and the facebook (or other option) is already linked?

Actually, you don’t have to concern about this issue. Since the Facebook account is linked, you can always login into your account via LoginWithFacebook, and no matter what device you are using, as long as you keep the Facebook identity, you can always access to the same account you have previously linked. Once the player account is linked with 3rd party platform identity or custom ID, unless you unlink it via API call or Game manager, PlayFab will always keep those identities and changing the device will have no effects on it.

> Since the player is on another device, how do I find if it has the facebook link to provide a login button instead of a link button ?

You can use GetAccountInfo to retrieve player account information.

> Should I have a Create Account/Login Existing Account UI since the beginning?

It is always necessary to have both create new account UI and login into existing account UI in your game.

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.