I saw this post and noticed it was not right. Using the javascriot api you can post to a friend's feed like so:
In this example "friendID" is the FB user ID of the friend.
This api call requires the "publish_stream" permission.
FB.api('/'+friendID+'/feed', 'post',
{
method: 'feed',
message: messageText,
name: 'write a title here',
caption: 'Put a caption here.',
description: 'Put your description here.',
link: 'https://mcmap.net/q/386600/-how-send-message-facebook-friend-through-graph-api-using-accessstoken',
picture: 'link to the preview thumbnail',
},
function(response) {
if (!response || response.error) {
//alert('Error occured');
} else {
//alert('Post ID: ' + response.id);
}
});
So this does it with the javasfcript SDK- the PHP method must be similar.