I cannot send post on a user's friend's wall, but I can post on the user's wall itself. I have access to publish_steam of the user! The userId is the friend's ID,
try {
$publishStream = $this->api("/$userId/feed", 'post', array(
'message' => $message,
'access_token' => $facebook->getAccessToken()
));
} catch (FacebookApiException $e) {
var_dump($e);
}
I receive "The user hasn't authorized the application to perform this action" , OAuthException
However, I can write on to the user's wall itself.
After recent changes, the only way to post on user's friend's wall is to use feed dialog