Error when trying to log into facebook on iOS.

Our Facebook login used to work just fine, so I’m not sure why it’s stopped suddenly.
When I first login I get the user’s details, that works fine. Then it requests the user’s friend’d details, and it shows this error in the xcode console:

FBConditionalLog: handleOpenURL should not be called once a session has closed

The screen is then locked out by a spinner because no result is returned (I’ll have a timeout here eventually to dismiss the spinner, but for now I have to restart the app).

The strange thing is, if I then go back into the app and attempt to login again it works fine. The error message doesn’t appear, and it fetches the friend details. If I then logout of FB and try to log back in, then I’m back to square one.

This is a summary of what is happening:

*Request login
*Successful - returns user name, id etc.
*Request friends
*Error occurs
*Exit (not suspend) app
*Open app
*Request login (I suspect the app is now already logged in, since I didn’t force it to logout before, and it doesn’t switch to the FB app, it just carries on as if it’s already logged in).
*Performs FB requests successfully.
*Logout (return to first bullet point)

Since it all worked before (and still works on Android), I’m not sure what the cause is. This is an update, and the current build on the app store works, and this is the last thing left to fix before submission.
My CFBundleURLSchemes is definitely correct. I am using build 998 for this build, whereas the last build was made using the last stable build (I think).

Any ideas?

[import]uid: 84115 topic_id: 34747 reply_id: 334747[/import]

Forgot to mention, I know the FB SDK changed recently, so could that have something to do with it?
I don’t really want to go back to an older build of Corona, since I just spent all of yesterday repairing changes made since storyboard was rolled back to version 926, as I had already put my own fixes in for things like reloadScene.

Another thing I forgot to mention in my first post:
When you first try and login, the app switches to FB, back to the app, back to FB again and then back to the app.
[import]uid: 84115 topic_id: 34747 reply_id: 138061[/import]

Forgot to mention, I know the FB SDK changed recently, so could that have something to do with it?
I don’t really want to go back to an older build of Corona, since I just spent all of yesterday repairing changes made since storyboard was rolled back to version 926, as I had already put my own fixes in for things like reloadScene.

Another thing I forgot to mention in my first post:
When you first try and login, the app switches to FB, back to the app, back to FB again and then back to the app.
[import]uid: 84115 topic_id: 34747 reply_id: 138061[/import]