w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Sign In with FB issue: FB popup window with the Login dialog is blocked by a web browser

You did not put FB.login in a function that is directly called by a User event, but in an asynchronous callback function of FB.getLoginStatus.

Use FB.getLoginStatus to refresh a User Session and to check if the User is logged in right when you load your Page (right after FB.init), and FB.login only on User interaction - but NOT in an asynchronous callback, of course.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.