facebook/connect-js — Issue #291: New Auth Dialog problem in FB.login()
Author: philfreo
Created: 2011-10-20 22:36:42+00:00
State: open

Using the JS SDK with the new Auth Dialog...

If somebody "Logs in" but then clicks "Don't allow" on the optional additional permissions, the JavaScript function is wrong -- response.authResponse does not exist in the callback for FB.login() -- so there's no way to know when a user has logged in if they don't accept all of the optional permissions.

Steps to Reproduce:	// Turn on the new Auth Dialog for your app, then

FB.login(function(response) {
if (response.authResponse) {
// this gets called ONLY if ALL the optional extended permissions were approved
} else {
// this should only get called if the user doesn't give login access at all
// but instead it happens if they just deny "offline_access" even if they login
}
}, {'scope' : 'email,user_birthday,user_education_history,offline_access'});```

See also https://developers.facebook.com/bugs/277458808954942