question

sathyaraj avatar image
sathyaraj asked

Facebook user account recreated after update

Hi,

After the game update players logged in with Facebook are getting a new account, as in, new playfab accounts are created which is linked to the same Facebook ID. what might be the reason for this! We are using the same Facebook SDK and same Facebook ID

4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sathyaraj avatar image sathyaraj commented ·

[Edit]

Previous version Facebook SDK was 7.13 and now it's 7.15.1. Does that matter?

0 Likes 0 ·
v-humcin avatar image v-humcin ♦ sathyaraj commented ·

Hello,

Could you please share your title id so we can look into this further?

0 Likes 0 ·
sathyaraj avatar image sathyaraj commented ·

Here you go.

AA8EC

0 Likes 0 ·
v-humcin avatar image v-humcin ♦ sathyaraj commented ·

Hello, can you provide more details on your account creation and login flow? Are you using LinkFacebookAccount with "ForceLink" set to true?

You may need to adjust your login flow to handle accounts that are already linked and not use "ForceLink".

Can you also elaborate on what you mean by "after the game update". One possibility that may have lead to this happening is if you were using a local device save to handle friction-less logins and the update somehow caused the local save to be lost, then this might have caused an issue with the login causing a new account to be made. Does this seem possible with your flow?

0 Likes 0 ·
sathyaraj avatar image
sathyaraj answered
private void LoginToPlayFabWithFacebook(string token)
    {
#if USE_PLAYFAB && USE_FACEBOOK
        Game.Log("LoginToPlayFabWithFacebook");
        LoginWithFacebookRequest request = new LoginWithFacebookRequest();
        request.AccessToken = token;
        request.TitleId = PlayFabSettings.TitleId;
        request.CreateAccount = true;
        request.LoginTitlePlayerAccountEntity = true;
        GetPlayerCombinedInfoRequestParams paramRequest = new GetPlayerCombinedInfoRequestParams();
        paramRequest.GetUserAccountInfo = true;
        paramRequest.GetPlayerProfile = true;
        paramRequest.GetUserVirtualCurrency = true;
        paramRequest.GetTitleData = true;
        paramRequest.GetUserData = true;
        paramRequest.GetPlayerStatistics = true;

        PlayerProfileViewConstraints profileConstraints = new PlayerProfileViewConstraints() { ShowAvatarUrl = true, ShowDisplayName = true };
        paramRequest.ProfileConstraints = profileConstraints;

        request.InfoRequestParameters = paramRequest;

        PlayFabClientAPI.LoginWithFacebook(request,
            (result) =>
            {
                Debug.Log("OnLoginWithFBResultSuccess : " + result.PlayFabId + "name : " + result.InfoResultPayload.AccountInfo.FacebookInfo.FullName);
               //Game Logic
            },
            (error) =>
            {
                Debug.Log("OnLoginError " + error.ErrorMessage, LogType.Error);
              //Game Logic
            });
#endif
    }


This is how i Login to playfab with facebook token. I am not using linkAccount API. Yes when users the updated the game from playstore this issue was reported and yes I do use device save for frictionless login. For users who logged in as guest which uses deviceID to login were able to update the game and continue with the same playfab account. Only Facebook users were effected.


10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Marcus Nixon avatar image
Marcus Nixon answered

Hi @sathyaraj,

After analyzing your title, we believe that you may have a new Facebook app id. If you are using a different Facebook app id than what you were originally using before, then this could generate new accounts on login. Are you able to compare your current Facebook app id to what you may have originally had?

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.