I am currently working on developing a Cordova PhoneGap app and facing an issue with popping up a window for Facebook login after clicking a button. The popup works fine on iOS devices, but when I try debugging with Chrome, nothing happens even though the popup blockers are deactivated. As a beginner in web development, I have spent hours searching for a solution but couldn't find one...
$("#social_login_buttons").append('<p><a class="btn-auth btn-facebook large" href="#" onclick="fblogin.init()">' + localize.signInWith[common.lang] + '<b>Facebook</b></a></p>');
fblogin.init = function() {
var authorizeUrl = fbAuthorizeUrl
+ "client_id=" + fbClientId
+ "&redirect_uri=" + fbRedirectUri
+ "&display=" + fbDisplay
+ "&response_type=token"
+ "&access_type=online"
+ "loginMethodName=loginWithFacebook"
+ "&scope=publish_stream,email";
var me = this;
var ref = window.open(authorizeUrl, '_blank', 'location=no,clearcache=yes');
//code ommitted
}