facebook

Hi,
I am lookin at the facebook sample code

local function connectHandler( event )  
 local post = "hello and goodbye!"  
  
 local session = event.sender  
 if ( session:isLoggedIn() ) then  
  
 print( "fbStatus " .. session.sessionKey )  
  
 local attachment = {  
 name="Developing a Facebook Connect app using the Corona SDK!",  
 href="http://developer.anscamobile.com",  
 media= { { type="image", src="http://developer.anscamobile.com/demo/Corona90x90.png", href="http://www.anscamobile.com" } }  
 }  
  
 local action\_links = {  
 { text="Learn more", href="http://developer.anscamobile.com" }  
 }  
  
 local response = session:call{  
 method ="stream.publish",  
 attachment = json.encode(attachment),  
 action\_links = json.encode(action\_links),  
 }  
  
 if "table" == type(response ) then  
 statusMessage.textObject.text = "Post failed"  
  
 -- print contents of response upon failure  
 printTable( response, "fbStatus response:", 5 )  
 else  
 statusMessage.textObject.text = "Post published"  
 end  
 end  
end  

The local variable post is not used. How can it be used to post the message?
Are there other parameters to that can be set in the attachment table variable besides name, href and media?
[import]uid: 6661 topic_id: 2760 reply_id: 302760[/import]