I’ve read other topics about problems with the Facebook App. People have reported that the facebook api (for example, the sample Facebook app included with Corona) will work fine when no Facebook App is installed, but then when the Facebook App is installed, if you try to login or post from Corona, it will cause the Facebook App to open for a few seconds and then return to the Corona app.
Well I thought I was having that problem. It turns out it’s a bit stranger. If I have no Facebook App, everything works fine. If I do have it, then the behaviour depends on whether or not I’m logged in through that app. If I’m not logged in, then when I try to login or post from Corona, the Facebook App will open and ask me to log in. After I log in, I can post from Corona, but Corona doesn’t seem to be receiving the OAuth Tokens. Furthermore, I logged into the Facebook app and then did a fresh install of the Corona sample Facebook app. Without submitting any login details after the Corona app installation, I was able to post messages from Corona. It seems that the Facebook app will accept post requests from any other app, regardless of whether or not that app has the OAuth Tokens.
I assume the above problem is with the Facebook App. It absolutely should not be allowing apps to post as a user without any permissions from the user. However, as a byproduct, I’m not able to tell if the user has successfully logged in or not from my Corona code. I’m just wondering why Corona is communicating to Facebook via the Facebook app. Is there any way Corona can handle Facebook consistently, independent of whether the Facebook app is installed? [import]uid: 103727 topic_id: 26868 reply_id: 326868[/import]
[import]uid: 84637 topic_id: 26868 reply_id: 109186[/import]
[import]uid: 153233 topic_id: 26868 reply_id: 112893[/import]