someone knows why this isn’t working?
local facebook = require "facebook"
-- listener for "fbconnect" events
local function listener( event )
if ( "session" == event.type ) then
-- upon successful login, request list of friends
if ( "login" == event.phase ) then
facebook.request( "me/checkins", "POST", { coordinates = "-29.809193, -50.059011", place = "Maori Beach Club", message = "Acabei de chegar no Maori!" } )
end
elseif ( "request" == event.type ) then
-- event.response is a JSON object from the FB server
local response = event.response
print( response )
end
end
-- first argument is the app id that you get from Facebook
facebook.login( "121532041261776", listener, {"publish\_stream"} )
thanks [import]uid: 23063 topic_id: 17049 reply_id: 317049[/import]