How To Post To Friend's Wall Via Facebook

Hi all, I’m newbie in corona. Now i want to try post to my friend’s wall. I used :

 

facebook.request( "[FriendUserID]/feed", "POST", attachment ) 

 

 

But now, it doesn’t work. I receive messenger

“(#200) Feed story publishing to other users is disabled for this application.”

 

I found the reason because changes of fb on Feb - 6 - 2013. So now, how can I post to my friend’s wall ?

 

Thanks

 

 

 

 

@letuan889, you need to use facebook.showDialog function to post on your friend’s wall.

 

http://docs.coronalabs.com/daily/api/library/facebook/showDialog.html

 

Naomi

 

Edit:  Here’s a Facebook Guide page that you might want to take a look too (if you haven’t already):

 

http://docs.coronalabs.com/daily/guide/social/setupFacebook/index.html

I got it. Thanks Naomi :slight_smile:

Hi,

 

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?

 

Warren

@letuan889, you need to use facebook.showDialog function to post on your friend’s wall.

 

http://docs.coronalabs.com/daily/api/library/facebook/showDialog.html

 

Naomi

 

Edit:  Here’s a Facebook Guide page that you might want to take a look too (if you haven’t already):

 

http://docs.coronalabs.com/daily/guide/social/setupFacebook/index.html

I got it. Thanks Naomi :slight_smile:

Hi,

 

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?

 

Warren

Does anyone know how to use the showDialog to post a picture from the device and not a url link?

Does anyone know how to use the showDialog to post a picture from the device and not 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"} )