Encountering issues while setting up FB login for my cordova mobile app.
A tutorial followed: http://www.codeproject.com/Tips/1031475/How-to-Integrate-Facebook-Login-into-a-Cordova-App#_comments
<script src="js/angular.js"></script>
<script src="js/ng-cordova.js"></script>
<script src="cordova.js"></script>
ng-cordova and angular added via bower. JavaScript files placed in www folder, this code appended to index.html:
Snippet from app.js :
var app = angular.module('myApp', ['ngCordova']);
app.controller("OAuthCtrl", function($scope, $cordovaOauth){
$scope.facebookLogin = function() {
alert("Click");
$cordovaOauth.facebook("1232456",
["email"]).then(function(result) {
alert(result.access_token);
}, function(error) {
alert("error");
alert(error);
});
}
})
In index.html :
<body data-ng-app="myApp">
<div ng-controller="OAuthCtrl">
<label >
<button class="button button-block button-positive"
ng-click="facebookLogin()">
Login with Facebook
</button>
</label>
</div>
</body>
Program compiles and executes without errors. However, the button is unresponsive. Assistance needed. Double checked installation of AngularJS using: