/// <summary> /// Function used to initialize facebook. /// </summary> public void Initialize(ProjectDelegates.FacebookLoginCallback OnLoginCompletedCallback) { this.OnFacebookLoginCompletedCallback = OnLoginCompletedCallback; if (!FB.IsLoggedIn) { FB.Init(OnInitCompleted, OnHideUnity); } else { //this.OnFacebookLoginCompletedCallback(FB.AccessToken); FB.API("me", Facebook.HttpMethod.GET, OnProfileInfoLoaded); } }
/// <summary> /// Function used to initialize facebook. /// </summary> public void Initialize(ProjectDelegates.FacebookLoginCallback OnLoginCompletedCallback) { this.OnFacebookLoginCompletedCallback = OnLoginCompletedCallback; if (!FB.IsLoggedIn) { FB.Init(OnInitCompleted, OnHideUnity); } else { //this.OnFacebookLoginCompletedCallback(FB.AccessToken); FB.API("me", Facebook.HttpMethod.GET, OnProfileInfoLoaded); } }