views:

35

answers:

0

Please look at the example below:

Now while scenarios #1 and #3 are quire obviouse, my question is:

Is it possible that scenario #2 is valid ? i.e Connected - But no permissions given.

Thanks.

--

Code:

FB.login(function(response) {  
  if (response.session) {  
     if (response.perms) {  
        // #1 user is logged in and granted some permissions.  
       } else {  
       // #2 user is not logged in OR user is logged in, but did not grant any permissions   
     }  
   } else {  
    // #3 user is not logged in  
  }  
}  
}  

related questions