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; } }
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; } }