I am trying to post on my friend’s wall using PHP SDK of FB. The code publishes the post on my wall only and also not visible to others.
Here is the code:
$ret_obj = $facebook->api('/me/feed', 'POST',array(
'link' => 'www.google.com',
'message' => 'message','description' => "I am bond",
'to' => array('id' => 'friend_id','name' => 'friend_name'),
'actions' => array('name' => 'Re-share',
'link' =>'http://apps.facebook.com/my_app/'),
'privacy' => array('value' => 'EVERYONE')));
This code publishes on my wall rather than the friend’s wall. Also the post is only visible to me and not to any one else.
/me/feedThat’s you.
/myFriendsNameHere/feedThat’s your friend.
https://developers.facebook.com/docs/reference/api/
Specifically the first sentence under “Publishing” where it shows you exactly how to do what you’re asking.