hungneox
hungneox

Reputation: 9829

Facebook apps asked for additional permission

I've written a facebook app, and I want to ask users for additional permission by this code:

    function loadFanPages()
{
    FB.login(
        function(response) {
            showFanpages();
        }
        , { scope : 'manage_pages' });  
}

But I received a message from log:

FB.login() called when user is already connected.

How can I fix this error? At the first time user use this, I only ask permissions for "email,user_birthday,user_status,user_location"

Upvotes: 0

Views: 423

Answers (1)

Abby
Abby

Reputation: 3209

That means the user is already logged in with those permissions granted. If you log out, or remove the permission via facebook, you should see the error disappears. You should make sure you only call that code when you need to so that users won't get this error.

Upvotes: 1

Related Questions