I write application in Lua with Corona SDK. I want to post some unique text with Facebook feed dialog. My code is:
facebook.showDialog( "feed", {message = "This is my unique text" } )
I tried also:
local text_arr = {}
text_arr.text = "This is my unique text"
facebook.showDialog( "feed", {properties = text_arr } )
Both of them don’t work. I don’t see the “This is my unique” string on my wall after dialog publish action.
So , how can I do it? Thanks
After the user logs in to facebook, which you need to do with:
You can now send requests to the facebook graph API using request function:
You can check the documentation page here http://docs.coronalabs.com/api/library/facebook/request.html
If you really want to use the dialog, which I have never tried, I suppose you have to define some more parameters:
From what I can understand from http://docs.coronalabs.com/api/library/facebook/showDialog.html and https://developers.facebook.com/docs/reference/dialogs/ it should turn out to be something like this:
Some properties are probably optional, so mess around with it a bit…