public static void LogOut() { FacebookSessionClient client = new FacebookSessionClient(App.fbAppID); client.Logout(); new WebBrowser().ClearCookiesAsync(); }
public void logout(string parameters) { string[] args = WPCordovaClassLib.Cordova.JSON.JsonHelper.Deserialize <string[]>(parameters); facebookSessionClient.Logout(); string js = "javascript: var e = document.createEvent('Events');e.initEvent('intel.xdk.facebook.logout',true,true);e.success=true;document.dispatchEvent(e);"; InvokeCustomScript(new ScriptCallback("eval", new string[] { js }), true); }
public void logout(string args) { try { FacebookSessionClient.Logout(); FacebookSessionCacheProvider.Current.DeleteSessionData(); FacebookSessionIsolatedStorageCacheProvider.Current.DeleteSessionData(); RemoveLocalData(); this.DispatchCommandResult(new PluginResult(PluginResult.Status.OK, this.getResponse())); } catch (Exception ex) { this.DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION, ex.Message)); } }
public void Logout() { while (msLoggedIn || fbLoggedIn) { try { MobileServiceClient.Logout(); clearMSData(); FacebookSessionClient.Logout(); clearFBData(); //LiveAuthClient.Logout(); clearLiveData(); } catch (InvalidOperationException) { MessageDialog dialog = new MessageDialog("Error when logging out!"); dialog.Commands.Add(new UICommand("Ok")); dialog.ShowAsync(); } catch (NullReferenceException) { /* Ignore it */ } } }
public static void LogOut() { FacebookSessionClient client = new FacebookSessionClient(App.fbAppID); client.Logout(); }