/// <summary> /// Handles the event for user tapping on the login button /// </summary> /// <param name="sender"> /// Sender object /// </param> /// <param name="e"> /// Event args /// </param> private void LoginButtonClick(object sender, RoutedEventArgs e) { SessionStorage.Remove(); FacebookSessionClient fb = new FacebookSessionClient(AppId); fb.LoginWithApp("basic_info,publish_actions,read_stream", "custom_state_string"); }
/// <summary> /// Logouts the click. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The <see cref="RoutedEventArgs"/> instance containing the event data. /// </param> private void LogoutClick(object sender, RoutedEventArgs e) { SessionStorage.Remove(); this.CurrentUser = null; }