How do I "like" a comment using the Facebook Graph API in C#?
From the Facebook comment docs:
You can like a comment by issuing an HTTP POST request to COMMENT_ID/likes with the publish_stream permission. No parameters necessary.
Also, check out the Facebook C# library.
Related
I want to get who commented or liked to my post on Facebook through facebook api.
I used Facebook Graph API and could get post_id.
And used this endpoint: {POST_ID}/comments, but it returned only my comments.
Is there any way to get other's comments with user id?
Using Facebook Api https://developers.facebook.com/tools/explorer/
Currently i am able to get only own comments, i can not see other people comments on my post.I have allowed all permissions, see attached
Permissions
You can use following syntax of Facebook Graph API:
GET /{object-id}/comments
Source:
https://developers.facebook.com/docs/graph-api/reference/v3.2/object/comments
https://www.reddit.com/r/learnprogramming/comments/4p4e8g
I'm creating an app using Facebook API in cascades BB 10. I have done the login part in C++ using qnetwork manager. I was able to post to my wall using HTTP post with graph API. I want to post to my friends wall. After searching, I found that it is not possible using graph API but only with feed dialog. As I'm not using any SDK, is there any other option for posting to friends wall?
No. But some other options (since your req could be batch post) you may like, such as:
You can post feed/photo on the user's wall and tag the friend/s in that post using mention tagging or place parameter
Read more about tagging on the developers site here: Tagging
How to comment and Like on friends wall through FBGraph API?
Documentation with examples on how to do this is at at http://developers.facebook.com/docs/api/.
You need to
authenticate (get an access token)
know your friend's ID
do an HTTP POST to the right URL to create posts or like existing posts.
The section labelled "Publishing" on the aforelinked documentation page shows how to do this.
How to support "like friends photos" for Facebook user using Facebook APIs or FQLs?
The REST API is deprecated, and the Graph API should be used whenever it´s possible. FQL only if there is no other/good way with the Graph API.
About liking Photos, see here: https://developers.facebook.com/docs/reference/api/photo/
You can like a photo by issuing a HTTP POST request to PHOTO_ID/likes
connection with the publish_stream permission. No parameters
necessary.