- Home /
Question by
kamuzai1226 · Aug 09, 2014 at 02:32 AM ·
facebook
Facebook SDK keeps asking for permissions.
What happens is that when people have already accepted permissions, it will say you have already authorized app-name.
This is the login method that I am using.
if(!FB.IsLoggedIn)
{
FB.Login("email,publish_actions", LoginCallback);
}else
{
Share();
}
Comment
Answer by praveee · Aug 22, 2014 at 07:42 AM
In Awake() don't you Initialise FB SDK using "FB.Init(SetInit, OnHideUnity);" ?
Void Awake()
{
FB.Init(SetInit, OnHideUnity);
}
private void SetInit()
{
enabled = true; // "enabled" is a property inherited from MonoBehaviour
if (FB.IsLoggedIn)
{
Debug.Log("Facebook Login Sucess");
}
else
{
Debug.LogWarning("Facebook Login false");
}
}
Answer by polonais · Aug 22, 2014 at 07:50 AM
Read "best practices" from this link: https://developers.facebook.com/docs/unity/reference/current/FB.Login