title: How to logout in the facebook with cordova ionic application?
body: <p>i use this tutorial <a href="https://github.com/nraboy/ng-cordova-facebook-example" rel="nofollow">https://github.com/nraboy/ng-cordova-facebook-example</a> but this example is not implemented the function of logout ,i add this code:</p>
  
  <pre><code>facebookExample.controller("LogoutController", function($scope, $http, $localStorage, $location) {
      $scope.logout = function() {
      $cordovaFacebook.logout();
  
      }, function(error) {
          alert("There was a problem signing in!  See the console for logs");
          console.log(error);
      }
  });
  </code></pre>
  
  <p>profile.html :</p>
  
  <pre><code>&lt;ion-nav-buttons side="right"&gt;
      &lt;button class="button icon-left ion-log-out button-stable" ng-controller="LogoutController" ng-click="logout()"&gt;Logout&lt;/button&gt;
    &lt;/ion-nav-buttons&gt;
  </code></pre>
  
  <p>but i found any result </p>