예제 #1
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (IsLogin != true)
     {
         frmLogin frm = new frmLogin();
         frm.ShowDialog();
     }
     else
     {
         lblAccountName.Text = FBClass.GetUserName(AppSettings.Default.AccessToken);
         String imgURL = String.Format("http://graph.facebook.com/{0}/picture", FBClass.GetUserID(AppSettings.Default.AccessToken));
         imgAccount.ImageLocation = imgURL;
     }
 }
예제 #2
0
 public void voiceLogin()
 {
     if (IsLogin != true)
     {
         frmLogin frm = new frmLogin();
         frm.ShowDialog();
     }
     else
     {
         //lblAccountName.Text = FBClass.GetUserName(AppSettings.Default.AccessToken);
         String imgURL = String.Format("http://graph.facebook.com/{0}/picture", FBClass.GetUserID(AppSettings.Default.AccessToken));
         imgAccount.ImageLocation = imgURL;
     }
 }