2088 - Facebook is broken still

Edit: 2087 is the build I’m using.

Getting so tired of this. Can you please start testing the code you write? It would save us a lot of headaches and time. It would have taken you less than a minute to confirm your “fix” was not working properly.

USE CASE

=========

  1. Press Login (Facebook)

  2. Press “Deny” in the permissions prompt

  3. Press Login again (Facebook)

 

EXPECTED: Corona/Facebook prompts for permissions

 

ACTUAL: Error is raised:

 

Key: type    Value (string): session

Key: name    Value (string): fbconnect

Key: phase    Value (string): loginFailed

Key: isError    Value (boolean): true

Key: response    Value (string): The operation couldn’t be completed. (com.facebook.sdk error 2.)

You have to actively clear the session in your code when the user Denies or cancels the login:

[FBSession.activeSession closeAndClearTokenInformation];

[FBSession.activeSession close];

[FBSession setActiveSession:nil];

You might already be doing that, if so you have a bug somewhere else.

I am encountering the same issue, build 2100:

session fbconnect   

loginFailed    

true    

The operation couldn’t be completed. (com.facebook.sdk error 2.)

How to fix?

I guess our ability to consistently engage 1.2 billion potential customers on FB is not a top priority for Corona Labs to tackle. Sigh…

Is it broken for you as well? Or is this just me? I’m really stumped :(. For the record, I am no fan of Facebook! Just want to be able to use Carrot. I swear it was working when I built and deployed Gabbler; SevenMinutes just won’t behave! :frowning: *tears*

I am encountering the same issue, build 2100:

session fbconnect   

loginFailed    

true    

The operation couldn’t be completed. (com.facebook.sdk error 2.)

How to fix?

I guess our ability to consistently engage 1.2 billion potential customers on FB is not a top priority for Corona Labs to tackle. Sigh…

Is it broken for you as well? Or is this just me? I’m really stumped :(. For the record, I am no fan of Facebook! Just want to be able to use Carrot. I swear it was working when I built and deployed Gabbler; SevenMinutes just won’t behave! :frowning: *tears*

Please Rob Miracle… Help us in this… I am also facing the same issue :frowning:

A quick google of com.facebook.sdk error 2 returned many hits from other platforms like this one for PhoneGap:

http://stackoverflow.com/questions/14159965/com-facebook-sdk-error-2-on-ios

The most voted on answer seems to be it’s a time out happening during the login process.  There seem to be other things like having Facebook permissions turned off in the app’s settings (we now have an API call that will tell you if that’s disabled: http://docs.coronalabs.com/api/library/facebook/accessDenied.html

Here is another one for native built apps that tends to point to problems with the permissions in the settings screen.  Facebook as recently changed their login process to honor the iOS login (used by sharing panels) as part of their authentication.  It’s worth looking at that to see if it’s the cause of your problems.

The first StackOverlow post covered the research that person had done, which is the same thing I"m finding.  Make sure you’re not in sandbox mode.  Make sure Facebook login is checked, etc.

Keep in mind that the FB login process behaves differently depending on if you’re using iOS based logins, native app based logins, or in the absence of those it falls back to browser based logins.   It would be beneficial to check with your testers to see what setup they actually have.  It might help identify a pattern to the problem.  

I would highly recommend checking the facebook.accessDenied flag at the start of your app (or in the resume area) and popup a native Alert asking them to make sure they have enabled your app in settings before going on.  You could, if you detect this error and it’s a network problem, implement a re-try procedure.

Rob

Please Rob Miracle… Help us in this… I am also facing the same issue :frowning:

A quick google of com.facebook.sdk error 2 returned many hits from other platforms like this one for PhoneGap:

http://stackoverflow.com/questions/14159965/com-facebook-sdk-error-2-on-ios

The most voted on answer seems to be it’s a time out happening during the login process.  There seem to be other things like having Facebook permissions turned off in the app’s settings (we now have an API call that will tell you if that’s disabled: http://docs.coronalabs.com/api/library/facebook/accessDenied.html

Here is another one for native built apps that tends to point to problems with the permissions in the settings screen.  Facebook as recently changed their login process to honor the iOS login (used by sharing panels) as part of their authentication.  It’s worth looking at that to see if it’s the cause of your problems.

The first StackOverlow post covered the research that person had done, which is the same thing I"m finding.  Make sure you’re not in sandbox mode.  Make sure Facebook login is checked, etc.

Keep in mind that the FB login process behaves differently depending on if you’re using iOS based logins, native app based logins, or in the absence of those it falls back to browser based logins.   It would be beneficial to check with your testers to see what setup they actually have.  It might help identify a pattern to the problem.  

I would highly recommend checking the facebook.accessDenied flag at the start of your app (or in the resume area) and popup a native Alert asking them to make sure they have enabled your app in settings before going on.  You could, if you detect this error and it’s a network problem, implement a re-try procedure.

Rob