Hey Guys, Would just like to say thankyou in advance for helping. Trying to get a Facebook integration working in my Game by for some reason when I test it on a device it just dose not work.
Here is my code
local onFBTouch = function( event )
if event.phase == "release" and fbBtn.isActive then
audio.play( tapSound )
local facebookListener = function( event )
if ( "session" == event.type ) then
-- upon successful login, update their status
if ( "login" == event.phase ) then
local theMessage = "Just finished a level in Game 1"
facebook.request( "me/feed", "POST", {
message=theMessage ,
name="Test",
caption="Test",
link="none",
picture="none" } )
end
end
end
facebook.login( "195606120481762", facebookListener, { "publish\_stream" } )
end
end
fbBtn = ui.newButton{
defaultSrc = "images/FaceBook.png",
defaultX = 295,
defaultY = 35,
overSrc = "images/FaceBook.png",
overX = 295,
overY = 35,
onEvent = onFBTouch,
id = "FacebookButton",
text = "",
font = "Helvetica",
textColor = { 255, 255, 255, 255 },
size = 16,
emboss = false
}
fbBtn.x = 240; fbBtn.y = 240
fbBtn.alpha = 1
and I have local facebook = require "facebook" at the start of my code.
now when I test this on the device the FB logo screen comes up but when I put in my data it just flashes and nothing is posted to Facebook.
Any Ideas on what could be causing this? [import]uid: 40417 topic_id: 9795 reply_id: 309795[/import]


[import]uid: 52491 topic_id: 9795 reply_id: 36079[/import]