Hi Im facing a small problem is trying to post a high score on facebook. Everytime I do it nothing shows up on Facebook. Here is the code for how it did it
[code] 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 took a Minecraft Quiz for Free I scored " … finalscore … " points!”
facebook.request( “me/feed”, “POST”, {
message=theMessage,
name=“Do you think your better than me in Minecraft?”,
caption=“Play Minecraft Quiz for Free in the Apple Store to find out!”,
link=“http://itunes.apple.com/us/app/minecraft-quiz/id504217017?ls=1&mt=8”,
picture=“https://twitter.com/#!/TinyLemonGames/status/172117055263346688/photo/11” } )
– CHANGE THE ABOVE TO YOUR OWN REQUIREMENTS
end
end
end
facebook.login( " 197327760374187", facebookListener, { “stream.publish” } )
end
– CHANGE the above to your Facebook App ID. Facebook posting will NOT work until you do so.
local function callFB (event)
if event.phase == “ended” then
callFacebook()
end
end
fbButton:addEventListener(“touch”, callFB)[/code]
What could be the problem? [import]uid: 17058 topic_id: 22238 reply_id: 322238[/import]
[import]uid: 17058 topic_id: 22238 reply_id: 88674[/import]