logout Method

This method logs the user out of Facebook

intel.xdk.facebook.logout();

Platforms:

Events:

  • intel.xdk.facebook.logout: This event is fired upon completion of Facebook logout

Example:


alert("logging out of facebook");
document.addEventListener("intel.xdk.facebook.logout",function(e){
        if (e.success == true) 
        { console.log("Logged out of Facebook"); } 
        else 
        { console.log("Unsuccessful Logout"); }
},false); 
intel.xdk.facebook.logout();
                                  
Einzelheiten zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.