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: 'http://stackoverflow.com/questions/2943297/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);
}
});
Yani bu javasfcript SDK-PHP yöntemi ile yapar benzer olmalıdır.