Hey guys,
so i read over jon beebes post about the single login to facebook, thus far i feel like i have done everything correctly, and when i test out the app, i go to use the facebook feature, and it does bring up facebook and asks me if i want to allow my app to control my facebook, i choose accept and then nothing happens. my app is supposed to be posing some information along with a score to facebook, the login seems successful but no post is actually created on my facebook page. anyone else been successful with this? here is the code im calling when i want to post to facebook. btw i starred out the app id
[lua]–FACEBOOK
local callFaceBook = function( event )
if event.phase == “release” then
local facebookListener = function( event )
if ( “session” == event.objType ) then
– upon successful login, update their status
if ( “login” == event.phase ) then
local gameScore = endBestTime.text
local theMessage = “got a time of " … gameScore … " on track “…levelNumber…” in TIRE HD for iOS!”
facebook.request( “me/feed”, “POST”, {
message=theMessage,
name=“Race against the clock in TIRE HD for free!”,
caption="Think you can beat my score of " … gameScore … “?”,
link=“https://market.android.com/details?id=TIRE.game.vastblack”,
picture=“http://www.vastblack.com/tire/wp-content/themes/tire/images/tire_icon_512.png” } )
postDone()
end
end
end
facebook.login( “***************”, facebookListener, { “publish_stream” } )
end
end
facebookBtn = ui.newButton{
defaultSrc = “postit.png”,
defaultX = 102,
defaultY = 34,
onEvent = callFaceBook,
} [/lua] [import]uid: 19620 topic_id: 20304 reply_id: 320304[/import]