Logging in with Facebook Plugin makes call in background

I have a ionic app and I use the phonegap-facebook-plugin to allow users to login with Facebook. Unfortunately, when I click login with Facebook it does make the login graph api call to Facebook until I minimize the app and then go back into it. It looks like its making the Facebook call (call to Facebook to get user token) in the background and will not do it if you keep the app running. Does anyone know why it is doing this behavior?

Here is the Facebook code:

$scope.facebookSignIn = function () {
            facebookConnectPlugin.getLoginStatus(function (success) {
                if (success.status === 'connected') {

                    //console.log('getLoginStatus', success.status);

                    var user = sessionService.get("facebook");

                    if (!user) {
                            .then(function (profileInfo) {
                                // store email 
                                sessionService.store("username", profileInfo.email);
                                var fbauthToken = JSON.stringify(success.authResponse);

                                AuthService.fblogin(fbauthToken).then(function (msg) {
                                }, function (errMsg) {
                                    var alertPopup = $ionicPopup.alert({
                                        title: 'Login failed!',
                                        template: errMsg

                            }, function (fail) {
                                // Fail get profile info
                                console.log('profile info fail', fail);
                    } else {
                        //   $state.go('app.home');
                } else {
                    // If (success.status === 'not_authorized') the user is logged in to Facebook,
                    // but has not authenticated your app
                    // Else the person is not logged into Facebook,
                    // so we're not sure if they are logged into this app or not.

                    //console.log('getLoginStatus', success.status);

                        template: 'Logging in...'

                    // Ask the permissions you need. You can learn more about
                    // FB permissions here: https://developers.facebook.com/docs/facebook-login/permissions/v2.4
                    facebookConnectPlugin.login(['email', 'public_profile'], fbLoginSuccess, fbLoginError);