question

Bijian Wu avatar image
Bijian Wu asked

LoginWithFacebook with Create Account set to true

            PlayFabClientAPI.LoginWithFacebook(new LoginWithFacebookRequest
            {
                TitleId = PlayFabSettings.TitleId,
                CreateAccount = true,
                AccessToken = currToken,
                InfoRequestParameters = InfoRequestParams
            }, OnPlayfabTAuthComplete, OnPlayfabTAuthFailed);
Does it a good pratise to always set CreateAccount to true when player click login with Facebook? what happens if they already created an account before? does PlayFab creates new account for them? or does PlayFab knows that and does not create account for them?
multiplayer
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

·
Ivan Cai avatar image
Ivan Cai answered

If they already created an account before, they will log in directly through the previous account, the playfab will not create a new account. If you want to automatically create a PlayFab account for the player when they provide a Facebook account that has not been registered, it is a good pratise to set CreateAccount to true in the request.

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.