Exemplo n.º 1
0
 private void btnPost_Click(object sender, EventArgs e)
 {
     if (FBClass.Post(AppSettings.Default.AccessToken, Postuj()))
     {
         MessageBox.Show("Wysłano");
     }
 }
Exemplo n.º 2
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;
     }
 }