i'm trying to post comments using graph api using this syntax :
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->post(
'/273181056790524/comments',
['message'=>$message],
$access_token
);
} catch(FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
but got error as: Error Image
The Error:
Publishing comments through the API is only available for page access tokens
It actually tells you all there is to know, publishing comments with the API is not possible with a User Token. It is only possible as Page. In other words: There is no way to achieve what you want.