Post to facebook not posting full message

I am trying to post this message to facebook :I have achieved (".. scorepost,") points, playing... download for FREE iPhone & Android at www.site

But it is only posting: **I have achieved 1000)** 1000 is the result of **math.random(100, 1000);** that bit is working and is posting the correct number every time, but it is not posting the rest : **points, playing… download for FREE iPhone & Android at www.site**

[code]
local facebook = require “facebook”
local fbAppID = “appID”

scorepost = math.random(100, 1000);
keeping_score = true
scoreText = display.newTmessageext( "Score: " … scorepost, 20, 20,nil, 40)
scoreText:setTextColor(255,255,255)

local faceFunc = function ()

function onLoginSuccess()
facebook.request( “me/feed”, “POST”, {message = “I have achieved (”… scorepost,") points, playing… download for FREE iPhone & Android at www.site"} )
end

– facebook listener
function fbListener( event )
if event.isError then
native.showAlert( “ERROR”, event.response, { “OK” } )
else
if event.type == “session” and event.phase == “login” then
– login was a success; call function
onLoginSuccess()

elseif event.type == “request” then
– this block is executed upon successful facebook.request() call

native.showAlert( “Success”, “The post has been uploaded.”, { “OK” } )
end
end
end

– photo uploading requires the “publish_stream” permission
facebook.login( fbAppID, fbListener, { “publish_stream” } )

end

–Button to activate the post to facebook
local facebutton = display.newRect (0, 0, 50, 50)
facebutton.x = display.contentWidth/2; facebutton.y = display.contentHeight/2
facebutton:addEventListener(“tap”, faceFunc)
[/code] [import]uid: 225288 topic_id: 36334 reply_id: 336334[/import]

Update your onLoginSuccess function to the following:

function onLoginSuccess()  
 facebook.request( "me/feed", "POST", {message = "I have achieved ".. scorepost .." points, playing... download for FREE iPhone & Android at www.site"} )  
end  

You were missing the “double-dot” concatenation operator after inserting your variable scorepost, which is why you weren’t sending the full message string. I also removed the parentheses from the message string, as they seemed out of place…but you can add them back in if you wanted them there.

Good luck! [import]uid: 27636 topic_id: 36334 reply_id: 144310[/import]

Thanks this works :smiley: [import]uid: 225288 topic_id: 36334 reply_id: 144311[/import]

Update your onLoginSuccess function to the following:

function onLoginSuccess()  
 facebook.request( "me/feed", "POST", {message = "I have achieved ".. scorepost .." points, playing... download for FREE iPhone & Android at www.site"} )  
end  

You were missing the “double-dot” concatenation operator after inserting your variable scorepost, which is why you weren’t sending the full message string. I also removed the parentheses from the message string, as they seemed out of place…but you can add them back in if you wanted them there.

Good luck! [import]uid: 27636 topic_id: 36334 reply_id: 144310[/import]

Thanks this works :smiley: [import]uid: 225288 topic_id: 36334 reply_id: 144311[/import]

Update your onLoginSuccess function to the following:

function onLoginSuccess()  
 facebook.request( "me/feed", "POST", {message = "I have achieved ".. scorepost .." points, playing... download for FREE iPhone & Android at www.site"} )  
end  

You were missing the “double-dot” concatenation operator after inserting your variable scorepost, which is why you weren’t sending the full message string. I also removed the parentheses from the message string, as they seemed out of place…but you can add them back in if you wanted them there.

Good luck! [import]uid: 27636 topic_id: 36334 reply_id: 144310[/import]

Thanks this works :smiley: [import]uid: 225288 topic_id: 36334 reply_id: 144311[/import]

Update your onLoginSuccess function to the following:

function onLoginSuccess()  
 facebook.request( "me/feed", "POST", {message = "I have achieved ".. scorepost .." points, playing... download for FREE iPhone & Android at www.site"} )  
end  

You were missing the “double-dot” concatenation operator after inserting your variable scorepost, which is why you weren’t sending the full message string. I also removed the parentheses from the message string, as they seemed out of place…but you can add them back in if you wanted them there.

Good luck! [import]uid: 27636 topic_id: 36334 reply_id: 144310[/import]

Thanks this works :smiley: [import]uid: 225288 topic_id: 36334 reply_id: 144311[/import]