Calling FB.login() results in the JS SDK attempting to open a popup window. FB.login(function(response) { // handle the response }, {scope: 'email,user_likes'});..