However, neither of these works for me. I am able to login into facebook, and it starts a new post saying it’ll be sent from my app. But instead of populating the field of the message box it leaves it blank.
Any ideas?
Ps. I appologize for the #'s sorrounding sections of code… it seems if i put appropriate tags for the code [.code] and [./code] (without the dots) around my block eliminates everything past it
– 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.showDialog( “apprequests”, {
message = “You should download this game!”
})
end
elseif ( “dialog” == event.type ) then
print( event.response )
end
end
– first argument is the app id that you get from Facebook
facebook.login( “1234567890”, listener )
That example is for the “apprequests” dialog, which takes different parameters than the “feed” dialog.
It may not be easy to see right away, but that page does point to the Facebook documentation (under Syntax, ‘action’, there’s a link that says “See this page for more information”, linking to https://developers.facebook.com/docs/dialogs/).
You might want to experiment with the different parameters to see what works best in your case. But for me, I use the following parameters: to, caption, description, and link.
– 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.showDialog( “apprequests”, {
message = “You should download this game!”
})
end
elseif ( “dialog” == event.type ) then
print( event.response )
end
end
– first argument is the app id that you get from Facebook
facebook.login( “1234567890”, listener )
That example is for the “apprequests” dialog, which takes different parameters than the “feed” dialog.
It may not be easy to see right away, but that page does point to the Facebook documentation (under Syntax, ‘action’, there’s a link that says “See this page for more information”, linking to https://developers.facebook.com/docs/dialogs/).
You might want to experiment with the different parameters to see what works best in your case. But for me, I use the following parameters: to, caption, description, and link.