I have a strange problem with Facebook and Corona.
-
I run my Corona app with facebook.login(myAppId, listener, {“publish_stream”}). The Facebook app comes up and lets me click to accept the app to connect to Facebook. The listener makes subsequent facebook calls for “me”, “me/friends”, etc. Everything works perfectly.
-
I log on to Facebook from my computer, go to “My apps” and revoke the access for my app.
-
I repeat step 1. However, rather than asking me to approve the app for Facebook again, the Facebook API simply fails.
First the Facebook listener gets this response:
type = “request”,
name = “fbconnect”,
didComplete = “false”,
isError = “false”,
response = “{“error”:{“message”:“Error validating access token: User *** has not authorized application ***.”,“type”:“OAuthException”,“code”:190,“error_subcode”:458}}”,
Then this:
type = “request”,
name = “fbconnect”,
didComplete = “false”,
isError = “true”,
response = “The operation couldn’t be completed. (facebookErrDomain error 10000.)”,
Now the scary part is that nothing can “reset” this state. Killing and restarting the app changes nothing. Not even removing the Facebook app or clearing out Safari removes the problem. (Luckily, the initial “Approve app for Facebook” page still resided in Safari, so by going back there and pressing “Accept” again, my app could access Facebook again).
Does anyone know how to fix things so that Corona/Facebook simply asks for access again if access is revoked, rather than just failing?
[import]uid: 73434 topic_id: 31963 reply_id: 331963[/import]