Looks like it didn’t grab the token and user ID properly, so yeah, it would definitely have come back as an Error 400. I’ve cobbled this code to get the necessary info I wanted:
function faceListener( event ) if event.isError then -- problem with Facebook connection else if event.type == "session" and event.phase == "login" then -- successful log in if event.token and facebookToken == nil then facebookToken = event.token print( "Facebook Access Token captured: " .. facebookToken ) end -- while we've logged in, circle around and grab personal info facebook.request( "me" ) elseif ( event.type == "request" ) then local response = event.response print( "Facebook unparsed response: " .. response ) if event.isError then -- error detected in request else response = json.decode( event.response ) if response.id and facebookUserID == nil then facebookUserID = response.id print( "Facebook User ID captured: " .. facebookUserID ) end if response.username then print( "Username: " .. response.username ) end if response.name then print( "Full Name: " .. response.name ) end if response.first\_name then print( "First Name: " .. response.first\_name ) end end end end end
Now, it comes back with a {“FACEBOOK_NON_JSON_RESULT”:“true”} when I post the high score, but I can’t find it anywhere in my timeline or activity. Almost there, but something’s amiss. Did you have to make any particular changes on the App’s details in the Facebook Developer page for it to work?