cordova-plugin-facebook4 ionic facebookConnectPlugin is not defined
<p>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</p>

<pre><code>    .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);
            })
        }
})
</code></pre>

<p>I got this error : 
ReferenceError: facebookConnectPlugin is not defined</p>