Like a friend's photo - facebook

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.

Related

How to get other's comments to my post through facebook api

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?

Facebook show friends posts

One of our feature is to display the posts of our facebook friend. And that is made possible by Facebook Query Langauge FQL. Unfortunately FQL has been deprecated by FB in favor of Graph API which has stricter permissions. A possible replacement is the Graphs API user_posts permission where we can query user posts via user feed.
However the docs says:
"Your app needs user_posts permission from the person who created the post or the person tagged in the post."
Are there still alternative to get get user posts even without users permissions?
You only should be able to access friend's posts if your friends gave at least user_friends and user_posts permission to the same app.
If so, you'll only have access to those friend's posts, not to all your friends. An no, there's no workyround. Facebook did this on purpose with the introduction of the Graph API v2.0.

How do I use the Facebook Graph API to like a comment?

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.

How to comment and Like on friends wall through FBGraph API?

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.

Facebook API: IM Screen Names

How can I get the user's IM Screen Names (e.g. Yahoo! Messenger, Skype, AOL) using Graph API or FQL query?
A Facebook user's screennames are not available through the Graph API or FQL. See this thread from Facebook's forum, where a Facebook employee confirms this fact.