async void HandleProtocolActivation(IActivatedEventArgs args) { ProtocolActivatedEventArgs pArgs = (ProtocolActivatedEventArgs)args; FBSession sess = FBSession.ActiveSession; FBResult result = await sess.ContinueAction(pArgs); if (result.Succeeded) { await Window.Current.Dispatcher.RunAsync( Windows.UI.Core.CoreDispatcherPriority.Normal, () => { RootFrame.Navigate(typeof(UserInfo)); }); } }