I got the following exception when i try to post a message on a friends wall using the REST API
The user hasn't authorized the application to perform this action
here is my code.
$status=$facebook->api_client->stream_publish($message,null,null,$id,$user);
How to get authorization from a user to post a message on his wall? Or any work around to do this ?