Login Dialog. Calling FB.login() prompts the user to authenticate your app using the Login Dialog. Avoid Popup Blocking. Calling FB.login() results in the JS SDK attempting to open a popup window. The callback function. opts. object. yes..