I wanted to publish the feed on the friends wall from my application and set it as private, available for logging in to the system of the user and friend. I want to do this using the new api diagram, I saw that if I set the "to" parameter in the feed message, it would be published on the user's friends wall.
I found the code here: http://forum.developers.facebook.net/viewtopic.php?id=56458 (Submitted by VovaOnline) (the link is dead, as facebook removed the forum)
$result = $facebook->api('/me/feed', 'POST', array( 'from' => array( 'name' => 'Vladimir Ageenko', 'id' => '100001308281502' ), 'name' => 'TEST NAME', 'caption' => 'Test Caption', 'description' => 'Test Description', 'message' => 'This is test.', 'privacy' => array( 'description' => 'Vladimir Sergeevich', 'value' => 'CUSTOM', 'friends' => 'SOME_FRIENDS', 'allow' => '100001338940933' ) ));
I set the message type as a "link". Can someone tell me what is wrong with this code. One thing that I know is that the "from" field must be "to" and it must be passed in the "data" variable. I am not sure how to do this. Can anyone help me?
source share