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实例?使用你自己的名字应用 –
不是功能:( –