0
我使用本教程https://github.com/nraboy/ng-cordova-facebook-example但該示例不是實現註銷的功能,我添加以下代碼:如何使用cordova ion應用程序註銷Facebook?
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);
}
});
profile.html:
<ion-nav-buttons side="right">
<button class="button icon-left ion-log-out button-stable" ng-controller="LogoutController" ng-click="logout()">Logout</button>
</ion-nav-buttons>
但我發現任何結果
facebook實例?使用你自己的名字應用 –
不是功能:( –