private void buttonLogin_Click(object sender, EventArgs e)
 {
     try
     {
         DataManagerWrapper.SetDataManager(this, FacebookConnection.Login());
         showHomePage();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        protected override void OnShown(EventArgs e)
        {
            try
            {
                m_AppSettings = AppSettings.Instance;
                if (m_AppSettings.RememberUser && !string.IsNullOrEmpty(m_AppSettings.LastAccessToken))
                {
                    DataManagerWrapper.SetDataManager(this, FacebookConnection.Connect(m_AppSettings.LastAccessToken));
                    initializeUserPreferences();
                    showHomePage();
                }
            }
            catch (Exception)
            {
            }

            base.OnShown(e);
        }
 private void manualConnection()
 {
     DataManagerWrapper.SetDataManager(this, FacebookConnection.Login());
     invokeHomePage();
 }
 private void AutomaticConnection()
 {
     initializeUserPreferences();
     DataManagerWrapper.SetDataManager(this, FacebookConnection.Connect(m_AppSettings.LastAccessToken));
     showHomePage();
 }