views:

31

answers:

0

Hey!

I have a web page with Facebook connect. Today i've checked it after a few days it was working, and i found out that if i connect using a username that didnt have permissions to my app, and he authorize them - he gets authorized.

if he connected again (with permissions already added) - i can't recognize his had authorized my app!! (and my code gets to the //User is not logged in section)

The code is

    FB.login(function(response) {        
    if (response.session) {
        if (response.perms) {                
            // user is logged in and granted some permissions.
            // perms is a comma separated list of granted permissions
            $("body").append("<iframe class='facebookIframe' src='" + urlify("SocialCallBacks.aspx?ref=facebook") + "' allowTransparency='true' frameBorder='0'/>");
        } else {            
            // user is logged in, but did not grant any permissions
            closefb();
        }
    } else {        
        // user is not logged in
        closefb();
    }
}, { perms: 'read_stream,publish_stream,offline_access' });

anyone knows what can cause that???

thank you!