I apologize if this question repeats the earlier questions a little, but I did not find the corresponding answers.
I am creating an FB application and I am trying to post it to a friend's wall using this code:
$attachment = array(
'access_token' => $facebook->getAccessToken(),
'message' => 'Did a Test Post :',
'name' => "This is the title of my post",
'link' => "http://blogs.canalplan.org.uk/steve/2010/04/28/hitting-a-moving-target/",
'description' => "this is the body of the post with lots of wiffly woffly text in it, lets see if this all works ok!",
'picture'=>"http://blogs.canalplan.org.uk/steve/files/2009/12/13742_1291940983817_1389037839_836473_2130235_n.jpg",
);
100001893238650- this is a friend that give permission to publish on hes wall
$facebook->api('/100001893238650/feed', 'POST', $attachment);
Now when I use "me" instead of this id, it works fine, but whenever the id is not "I", I get a Uncaught OAuthException: (# 210) The user does not see an error.
I get the same error using curl.
I ask you to publish_stream and be safe offline_access (I don’t think offline_access is connected, but to be sure).
What am I doing wrong? Which resolution do I need more?
source
share