I’m testing the facebook v4 shareDialog
My facebookListener looks like this:
local function facebookListener( event ) if ( "session" == event.type ) then if ( "login" == event.phase ) then local shareOptions = { link = "http://devilsquid.com/skub/", title = "This game is going to make you crazy!", description = "This is a test post.", picture = "http://devilsquid.com/wp-content/uploads/2015/10/home\_teaser.jpg", ref = "ingame-menu" } facebook.showDialog( "link", shareOptions ) end elseif ( "dialog" == event.type ) then print("\n\n") print("Facebook Response ##########################################################") print( event.response ) print("\n\n") end end
The only thing, that is working for me here, is link option. The facebook share dialog grabs an image from the link and places the url beside.
But I do not see the title, the description, the picture and the ref option. I also checked the stats of the corresponding facebook app. I can see that the dialog gets opened, but none of the options are shown there (the ref string would be interesting in example).
Nevertheless the post can be send and is successfully posted on facebook timeline. But I really would like to pre-populate the dialog with some additional text (description option?).
Now the question: is the because of the beta status, or am I doing wrong?