Search code examples
facebookfacebook-graph-apifacebook-android-sdkandroid-facebooktarget-audience

set audience when posting on friend's wall


I am having feature in my app where user can post on his/her friends's wall. I have added this feature and it will display dialog to user to post. But I want to set audience to me and that user only using code. But I am not able to do so.

Can we set audience while posting on friends wall ? If yes then please show me a way to do so.

I tried to search but couldn't find anything related to setting audience while posting on friends wall.

Thanks.


Solution

  • You can not set the audience when posting to a friend's wall. The friend controls the content on their wall, thus you cannot set the audience. You could post to your own wall and set the audience to just you and your friend though.