I'm working on ionic project and i have installed this plugin cordova-plugin-facebook4 but when i'm trying to use it in controller
.controller('LoginCtrl', function($scope) {
console.log ("dzdqsdqs");
$scope.login=function() {
console.log ("dzdqsdqs");
facebookConnectPlugin.login(['email'], function(response) {
alert('Logged in');
alert(JSON.stringify(response.authResponse));
}, function(error){
alert(error);
})
}
})
I got this error : ReferenceError: facebookConnectPlugin is not defined