I have a problem when I try using facebook php api to like a comment
To "Like" this comment I used
try {
$temp = $facebook->api('/3722461/likes?access_token="' . $facebook->getAccessToken() . '"', 'POST');
echo "ok";
} catch (Exception $e) {
var_dump($e);
}
but this throws an exception
["error"]=>
array(3) {
["message"]=>
string(36) "(#100) The parameter url is required"
["type"]=>
string(14) "OAuthException"
["code"]=>
int(100)
}
How do I fix this?
Some posts (such as Events) are not eligiable for having Likes (i.e. you can attend to it but cannot likes it) - in these cases you'll get this error