Score facebook integration

Hi Dear

i build one game,it is working nice but i want integrate from Facebook. is it possible if yes then please help me friend [import]uid: 87661 topic_id: 17849 reply_id: 317849[/import]

If you want to be able to post scores to facebook from your app, take a look at this tutorial.

http://ideveloper.kodingen.com/2010/facebook-friends-leaderboard/

[import]uid: 67839 topic_id: 17849 reply_id: 68135[/import]

You can do a leaderboard as elbowroomapps said, or you can post a score to a user’s wall. ( Tutorial on http://Techority.com/ )

Peach :slight_smile: [import]uid: 52491 topic_id: 17849 reply_id: 68146[/import]

thanks elbowroomapps…but it is small game So, that we don’t want use SQL/PHP, Connection for Facebook. if you have any other way then please help me… [import]uid: 87661 topic_id: 17849 reply_id: 68148[/import]

you can send a tweet or a wall post via an URL call.

look at my function I posted here:
https://developer.anscamobile.com/forum/2011/09/16/twitter-post-tweet#comment-63850

hope that helps
-finefin [import]uid: 70635 topic_id: 17849 reply_id: 68179[/import]

thanks for replay…i did Facebook integration but first it is showing Director Error…please help me

[lua]local localGroup = display.newGroup()

local fbButton = display.newImage (“fb.png”)
fbButton.x = 100
fbButton.y = 420
localGroup:insert(fbButton)

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 the Zombie Survival Test! I scored " … --[[score … --]]” points!"

facebook.request( “me/feed”, “POST”, {
message=theMessage,
name=“Do you think you can beat my score?”,
caption=“Play YOURAPPNAME now to find out!”,
link=“http://itunes.apple.com/us/app/your-app-name/id1234567890?mt=8”,
picture=“http://yoursite.com/yourimage.png” } )
end
end
end

facebook.login( “172031016222278”, facebookListener, { “publish_stream” } )
end

local function callFB (event)
if event.phase == “ended” then
callFacebook()
end
end
fbButton:addEventListener(“touch”, callFB)


local ui = require(“ui”)
local facebook = require(“facebook”)
local json = require(“json”)
local tableView = require(“tableView”)

[lua] [import]uid: 87661 topic_id: 17849 reply_id: 68355[/import]

What director error are you getting?

Peach :slight_smile: [import]uid: 52491 topic_id: 17849 reply_id: 68378[/import]