luiscarlosjayk / angular-facebook

An Angularjs module to take approach of Facebook javascript sdk.
MIT License
540 stars 126 forks source link

Windows Phone / IE block popup #71

Open XLogus opened 10 years ago

XLogus commented 10 years ago

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

obibring commented 10 years ago

What version are you using?

XLogus commented 10 years ago

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

mrzmyr commented 10 years ago

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

XLogus commented 10 years ago

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

tecklund commented 10 years ago

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();
}; 
mrzmyr commented 10 years ago

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

Thanks @XLogus

jellebrouwer commented 10 years ago

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.

pappudhumal commented 9 years ago

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.