I'm using the Graph API to implement a solution for me and, by this time, I'm able to post to my feed, like the posts, comment them, but I'm not able to like comments (none of them), I get the message: Uncaught OAuthException: (#100) the parameter url is required. Can anyone help??
A:
Are you sure the Graph API permits liking of individual comments? The documentation shows examples of how to like a post and how to comment on a post, but there's no indication I can see that says you can like a comment this way.
ceejayoz
2010-10-16 20:17:31
This should really be a comment should it not?
Liam Bailey
2010-10-16 20:20:06
No? The answer is, I believe, "you can't do that".
ceejayoz
2010-10-16 20:36:42
A:
Because the Facebook API does not support liking a comment using the Graph API or any API. The only way a comment can be liked is by using the Facebook website. Facebook has deliberately restricted the ability of a developer from "liking" anything using any of their APIs. Official like buttons are the only supported way to like anything.
Nathan Totten
2010-10-16 23:21:00
Not entirely true. From the API: "You can comment on **or like a post** by posting to https://graph.facebook.com/POST_ID/comments and https://graph.facebook.com/POST_ID/likes, respectively." You can't programmatically like pages or comments, though, just wall posts.
ceejayoz
2010-10-17 11:40:55
Oh yeah, I forgot about that. You can like posts through the API, but that is it. You can't like comments or external content through the API. This is deliberately restricted to control people forcing a user to like content. Additionally, you have to be very careful how use use the post like. If you aren't prompting the use to like the post you are going to get shut down due to a policy violation.
Nathan Totten
2010-10-17 20:46:45