private void facebook_login_btn_Click(object sender, EventArgs e) { try { string facebook_id = this.facebook_login_btn.getLoginData()["id"]; User FB_User = SqlWorker.FB_Exists(facebook_id); if (FB_User != null) { Globals._session = FB_User; starter(false); } else { MessageBox.Show("User does not found in DB. Did you register?"); } } catch { MessageBox.Show("Login with Facebook Failded!\n Please try again!"); } }