App crashes on using $cordovaOauth?


#1

I am using $cordovaOAuth.twitter() to authenticate twitter but every time I call this function my app crashes?

$scope.twitterLogin = function() {
        $scope.fbData = {};
        //$ionicLoading.show({ template: $translate.instant('Login.alertBox.text') });
        $cordovaOauth.twitter('Kp5RD2Szxo68XTCYjJj2Y', 'zfwUmlzjoDGGoipoE4Kxx7cBAKvzxDOM6y4t761oaTTllE').then(function(result) {
                console.log("rrr");
                    console.log(result);
                }, function(error) {
                    console.log("qqq");
                    console.log(error);
            });
}

This is my code when this code runs my app crashes.