Facebook Post

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]

What’s up with the spaces in your app ID string?

What version of Corona are you using to build? [import]uid: 52491 topic_id: 22238 reply_id: 88596[/import]

@peach sorry my mistake I’m using build 726 [import]uid: 17058 topic_id: 22238 reply_id: 88597[/import]

@peach so what do you think is the problem that is not posting in Facebook [import]uid: 17058 topic_id: 22238 reply_id: 88598[/import]

Build using 704 and tell me if that works. [import]uid: 52491 topic_id: 22238 reply_id: 88610[/import]

@peaach the post did work, but just one problem the picture did not show up? I’m going to try a new link picture if it works [import]uid: 17058 topic_id: 22238 reply_id: 88656[/import]

@peach ok I got it works thanks for helping

:slight_smile: [import]uid: 17058 topic_id: 22238 reply_id: 88674[/import]

Great - happy to help :slight_smile: [import]uid: 52491 topic_id: 22238 reply_id: 88680[/import]