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
=========
-
Press Login (Facebook)
-
Press “Deny” in the permissions prompt
-
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.