예제 #1
0
 public void PopulateFacebookData()
 {
     if (FacebookManager.IsLoggedIn)
     {
         FacebookManager.GetFriends(new FacebookDelegate <IGraphResult>(this.OnGetFriendsData));
         FacebookManager.GetSelfData(new FacebookDelegate <IGraphResult>(this.OnGetSelfData));
     }
 }
예제 #2
0
 public void PopulateFacebookData()
 {
     if (FacebookManager.IsLoggedIn)
     {
         FacebookManager.GetFriends(new FacebookGetFriendsCompleteDelegate(this.OnGetFriendsData));
         FacebookManager.GetSelfData(new FacebookGetSelfDataCompleteDelegate(this.OnGetSelfData));
     }
 }
예제 #3
0
 private void FinishFacebookLogin()
 {
     if (FacebookManager.IsLoggedIn)
     {
         PlayerPrefs.SetString("FB_ID", FacebookManager.Instance.getUserId());
         PlayerPrefs.Save();
         FacebookManager.GetFriends(new FacebookGetFriendsCompleteDelegate(this.OnGetFriendsData));
     }
     Service.Get <IAccountSyncController>().OnFacebookSignIn();
 }