I can login, set permissions and post fine, but only once. The second time a post is made it errors with http 500 error. This happens if I go through the entire process of logging in, setting permissions again (while already logged in) or if I just skip that because I know I am logged in and go right to posting. I can get around this by forcing a logout after every post causing a new login each time. Which is very annoying for a user with the pop-up it brings if you do not have the Facebook app installed.
Because logging out or just killing the app and restarting (causing a re-login) fixes this 500 error, I wonder if this is a Facebook plug-in issue or a Facebook SDK issue?
I am using build .2171 on iOS with the Facebook plugin. This is the console log output when I try a second post without logging out first.
Feb 28 22:23:01 Stephens-iPhone SlotriX[1188] \<Warning\>: Error: HTTP status code: 500 Feb 28 22:23:01 Stephens-iPhone SlotriX[1188] \<Warning\>: isError:true type:request name:fbconnect response:The operation couldn’t be completed. (com.facebook.sdk error 5.)
This is the code that makes the post.
print ("Response: Logged in - Posting") local value = "New high score! " .. score .. "! http://bit.ly/11XyZvx" local postMsg = { message = value } facebook.request( "me/feed", "POST", postMsg )
Also when doing a facebook.logout() there is no event sent to the listener. I don’t remember this problem in the past, perhaps another new oddity with the Facebook plug-in?
I have not done any testing on Android yet.