Hey everyone, I’m trying to get my app to communicate with facebook, and having some problems.
I have set up my app on the facebook side, all ID’s are correctly placed within my code.
My game does launch facebook, ask for credentials, and than asks to grant permission to post…
once you click “next” to allow it, it goes back to my app, as it should… WITHOUT posting to facebook 
then I see this error
Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to concatenate upvalue ‘?’ (a table value)
Completely lost,
I am also getting this error when posting to twitter but ONLY on device, it works great on the simulator and posts to twitter just fine.
Any help would be appreciated…
here is my facebook code
local ui = require "ui"
local facebook = require "facebook"
local json = require "json"
local tableView = require "tableView"
local function printTable( t, label, level )
if label then print( label ) end
level = level or 1
if t then
for k,v in pairs( t ) do
local prefix = ""
for i=1,level do
prefix = prefix,"\t"
end
print( prefix,"[",tostring(k),"] = ", tostring(v) )
if type( v ) == "table" then
print( prefix,"{" )
printTable( v, nil, level + 1 )
print( prefix,"}" )
end
end
end
end
----------------------------------------------------------------
local callFacebook = function()
local facebookListener = function( event )
if ( "session" == event.type ) then
if ( "login" == event.phase ) then
local theMessage = "I just kicked some ass at Game Name HERE! I scored " .. score .. " points!"
facebook.request( "me/feed", "POST", {
message=theMessage,
name="Do you think you can beat my score?",
caption="Play Game Name HERE now to find out!",
link="http://google.com",
picture="http://somesite.com/icon.png" } )
end
end
end
appId = "1223344556677"
facebook.login( appId, facebookListener, { "publish\_stream" } )
[import]uid: 157863 topic_id: 30938 reply_id: 330938[/import]