angular-facebook icon indicating copy to clipboard operation
angular-facebook copied to clipboard

Windows Phone / IE block popup

Open XLogus opened this issue 11 years ago • 8 comments

I'm trying to make work FB login on Windows Phone but popup is blocked. Is possible open FB login in the same window instead use a popup using your module?

Regards, Miguel

XLogus avatar Sep 01 '14 13:09 XLogus

What version are you using?

obibring avatar Sep 01 '14 14:09 obibring

I'm trying with a Windows Phone 8.1 (Nokia Lumia 925) The same problem with popup blocker in Internet Explorer 10 (Windows 8)

XLogus avatar Sep 03 '14 11:09 XLogus

What @obibring meant is which version of angular-facebook you are using.

mrzmyr avatar Sep 03 '14 12:09 mrzmyr

I'm using the last angular-facebook with the last angularJS version

XLogus avatar Sep 09 '14 13:09 XLogus

Hi @XLogus,

I was having the same trouble, but I've worked it out. The sample plinkr provided on the front page is outdated - instead use this synchronous version from @obibring

var userIsConnected = false;
Facebook.getLoginStatus(function(response) {
   if (response.status === 'connected')
       userIsConnected = true;
});
$scope.IntentLogin = function() {
  if (!userIsConnected)
      $scope.login();
}; 

tecklund avatar Sep 15 '14 00:09 tecklund

Updated demo: https://github.com/Ciul/angular-facebook/commit/95584bb7fc31a6c9d4bd8d53a0f6b3e04b200301

Thanks @XLogus

mrzmyr avatar Sep 16 '14 08:09 mrzmyr

Nice. This worked for me too. On mobile a new window is opened. However, the page is blank and the user is not redirected back to the original website. The user is logged in though when manually going back to the right window. Any ideas how to redirect back automatically? (testing on an iphone) Thanks.

jellebrouwer avatar Sep 20 '14 09:09 jellebrouwer

I am using Nokia Lumia 925 Windows 8.1 but when i login my office wifi then mobile shows me Popups blocked i wan block popups option but i cant found this option in all mobile setting please tell me how to block popups option.

pappudhumal avatar Jan 06 '15 05:01 pappudhumal