Open XLogus opened 10 years ago
What version are you using?
I'm trying with a Windows Phone 8.1 (Nokia Lumia 925) The same problem with popup blocker in Internet Explorer 10 (Windows 8)
What @obibring meant is which version of angular-facebook you are using.
I'm using the last angular-facebook with the last angularJS version
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();
};
Updated demo: https://github.com/Ciul/angular-facebook/commit/95584bb7fc31a6c9d4bd8d53a0f6b3e04b200301
Thanks @XLogus
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.
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.
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