I’ve impelemented the Facebook SDK and trying to run Facebook login on Android.
I’m running the beta Facebook SDK (7.02) and Unity 5.01.
It works well after the first time I install my app, but if I open it again and send the user to login on Facebook, it returns and FB.isLogged is false.
My code is:
First I call - FB.LogInWithReadPermissions("", afterLogin);
Then in afterLogin:
if (FB.IsLoggedIn) {
Application.LoadLevel("fbScene");
} else {
facebookButton.SetActive(false);
}
Any idea why it works well only in the first time its called?