I assume there is still no way of using the facebook.showDialog with a picture file on my phone? Is it still where it will only work with a file from a url link?
I assume there is still no way of using the facebook.showDialog with a picture file on my phone? Is it still where it will only work with a file from a url link?
How to combine showDialog and post method. I want to post to friend’s wall but it just show friends list and get close while done.
Thisi is my code, hope you can help me. Thanks…
local function onComplete( event ) if ( event.data ) then for k, v in pairs( event.data ) do local attachment = { name = v.firstName..", you got post", link = "http://www.coronalabs.com/links/forum", caption = "myapps", description = "yee" } facebook.request( v.id .."/feed", "POST", attachment ) end end end local function listener( event ) if ( "session" == event.type ) then if event.phase ~= "login" then return end if fbCommand == SHOW\_DIALOG then facebook.showDialog( "friends", onComplete ) end elseif ( "request" == event.type ) then local response = event.response if ( not event.isError ) then response = json.decode( event.response ) else end elseif ( "dialog" == event.type ) then end end fbCommand = SHOW\_DIALOG facebook.login( appId, listener, {"publish\_actions"} )
How to combine showDialog and post method. I want to post to friend’s wall but it just show friends list and get close while done.
Thisi is my code, hope you can help me. Thanks…
local function onComplete( event ) if ( event.data ) then for k, v in pairs( event.data ) do local attachment = { name = v.firstName..", you got post", link = "http://www.coronalabs.com/links/forum", caption = "myapps", description = "yee" } facebook.request( v.id .."/feed", "POST", attachment ) end end end local function listener( event ) if ( "session" == event.type ) then if event.phase ~= "login" then return end if fbCommand == SHOW\_DIALOG then facebook.showDialog( "friends", onComplete ) end elseif ( "request" == event.type ) then local response = event.response if ( not event.isError ) then response = json.decode( event.response ) else end elseif ( "dialog" == event.type ) then end end fbCommand = SHOW\_DIALOG facebook.login( appId, listener, {"publish\_actions"} )