sahat/satellizer

window Popup facebook doesn't close after log in

alfredrumss opened this issue · 0 comments

after log in the pop doesn't close. Just the same window popup is redirected to redirectUri on the route with the code returned by facebook. i.e

http://localhost:3000/?code=AQDP2YYluGkMQJhrG3Vec8J69KLukp-jeKRB_j4EOfwSIew5AohdTYmn9yA3F-cTS9RkB4au4p1dOfUwmxv3ye0PN5B_XlZ9Rek-k3CNghXmZY__kVgkJ9h7_IV5VbXDBoI7IegQX9VYS64s1eMA1qzongqhYZBOIqEZdvmzV8MFVd6f17TNRMmbCmzxUYIhEsbfsoQTTHQDjxe3cwo1g2HyGoF6V2CeobE-g9LGGZRSEKMD6ypLj1jyrClxtMuDBj2hSb_xWUmVNHNO2Tv8kDmNBcIb-_-3f7DNgR7sB3waS178YvT4EQP34H0j_ib8aAE#_=_

Why is not closing and run the callback function?

this is my router:

(function () {
'use strict';

angular.module('visitbh').config(routerConfig);
/** @ngInject */
function routerConfig($stateProvider, $urlRouterProvider, $windowProvider) {

	var $window = $windowProvider.$get();
	$stateProvider
		.state('app', {
			abstract: true,
			url:'',
			views: {
				'main': {
					templateUrl: 'app/layouts/base/app.html',
					controller: 'BaseController',
					controllerAs: 'Base'
				},
				'header@app': {
					templateUrl: 'app/partials/header/header.html',
					controller: 'HeaderController'
				}
			}
		})
		.state('app.home', {
			url: '/',
			views: {
				'content@app': {
					templateUrl: 'app/home/home.html',
					controller: 'HomeController',
					controllerAs: 'Home'
				}
			}
		})

	$urlRouterProvider.otherwise('/');
}

})();

And this is my setting facebook:

$authProvider.facebook({
clientId: '1970924993155966',
url: 'http://localhost:8000/auth/facebook',
redirectUri: location.origin + location.pathname
})

my Angular Version is 1.6.5 and the satellizer version is 0.15.5

please Help me!