Ejemplo n.º 1
0
        public static void LogOut()
        {
            FacebookSessionClient client = new FacebookSessionClient(App.fbAppID);

            client.Logout();
            new WebBrowser().ClearCookiesAsync();
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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));
            }
        }
Ejemplo n.º 4
0
 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 */
         }
     }
 }
Ejemplo n.º 5
0
        public static void LogOut()
        {
            FacebookSessionClient client = new FacebookSessionClient(App.fbAppID);

            client.Logout();
        }