Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17.0.1 FB SDK IOS logged in account ignored #737

Open
5 tasks done
michaellev-sp opened this issue Sep 17, 2024 · 0 comments
Open
5 tasks done

17.0.1 FB SDK IOS logged in account ignored #737

michaellev-sp opened this issue Sep 17, 2024 · 0 comments
Labels

Comments

@michaellev-sp
Copy link

michaellev-sp commented Sep 17, 2024

Checklist

Environment

  • Unity Editor Version: 2022.3.45f1
  • Unity SDK Version: 17.0.1
  • Installation Platform & Verison: iOS version 17.5.1

Expected Results

The logged in account should be the one that's requested to login in the game.

Actual Results

The same user is prompted to accept, and is not the one logged in, despite other users being the ones actively logged in.

Steps to Reproduce

  • Create a project with FB SDK and a login button.
  • Implement LogInWithReadPermissions (with only public_profile)
  • On an ios device, install FB app, and login several users.
  • Install the game on the device and attempt login
  • Only the first user will be taken into account, other users will not be requested to continue as themselfs

Tested

  • Reinstalling both game and FB app
  • Clearing previous game data from FB app
  • Logout
  • Rebuilding game
  • Forgetting the stuck user's profile in the FB app

Code Samples & Details

FB.Init(OnInitComplete);

void OnInitComplete()
{
    if (FB.IsInitialized)
    {
        FB.ActivateApp();
    }
}

public void Login()
{
    if (FB.IsLoggedIn)
    {
        return;
    }
    
    FB.LogInWithReadPermissions(Permissions, OnLoginComplete);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant