private static LoginResult manualLoginWithUserDetails() { LoginResult loginResult = FacebookService.Login("2146465275649682", "public_profile", "email", "publish_to_groups", "user_birthday", "user_age_range", "user_gender", "user_link", "user_tagged_places", "user_videos", "publish_to_groups", "groups_access_member_info", "user_friends", "user_events", "user_likes", "user_location", "user_photos", "user_posts", "user_hometown", "manage_pages", "publish_pages" ); MainFormFacade.GetInstance().m_LoginUser = loginResult.LoggedInUser; return(loginResult); }
private static LoginResult autoLoginWithCertificates() { LoginResult loginResult = FacebookService.Connect(MainForm.s_AppSettings.LastAccessToken); MainFormFacade.GetInstance().m_LoginUser = loginResult.LoggedInUser; MainForm.s_AppSettings.RememberUser = true; return(loginResult); }
public static MainFormFacade GetInstance() { s_FriendList = new List <User>(); if (s_MainFormFacadeInstance == null) { lock (sr_InstanceLockContext) { if (s_MainFormFacadeInstance == null) { s_MainFormFacadeInstance = new MainFormFacade(); } } } return(s_MainFormFacadeInstance); }