Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login call failing - The operation couldn’t be completed. (com.facebook.sdk error 5.) #22

Open
nathanjamal opened this issue Dec 12, 2012 · 2 comments

Comments

@nathanjamal
Copy link

I know a few other people have seen the error from time to time and then it disappears, but mine seems to be stuck.

3 days ago i removed my fb app from my fb account. Then when trying to connect again, in the exact same way i have been doing for months, i get an error from the login call

    
    var FBPlugin = window.plugins.facebookConnect;
 
        FBPlugin.login({permissions: ["email","user_likes","friends_likes","publish_actions"], appId: appId}, function(result) {
               console.log(result);
        }); 
The operation couldn’t be completed. (com.facebook.sdk error 5.) 

Even though i removed my app from my account when i call

                        FB.initWithAppId(appId,function(result){
                             console.log(result);
                        });

i get returned an object with my appId and a accessToken that doesn't expire until next year??

{"expirationDate":"2013-01-31T21:57:03+0000","appId":"APPID HERE","accessToken":"ACCESS TOKEN HERE"}

Any idea whats going on here?

Thanks in advance,

Nathan

@MaKleSoft
Copy link

Had the same problem lately. Apparently since the latest facebook update you cannot request publishing permissions when initially logging in the user. Leave out the 'publish_actions' permission and you should be fine. You can request it later when you actually need it the first time. Also, just to be safe, reinstall the app.

@alondo1234
Copy link

Hi,
I have the same problem. However i try to login as an admin. Shouldn't i have permissions anyway on facebook?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants