Facebook - graph api 2.x - post missing user_likes field - facebook

With the 2.x graph api version, access will be removed to fql.
We were using fql to retrieve, from the likes table, if a user have liked a specific post.
How to perform this check now ?
Is it a chance that the post object would be quickly updated with a "user_likes" field as into the comment objetc as?
Cheers

Currently, it looks like the only solution is to go over all the likes and look if the page/user has liked the post manually. :-/
Hope FB will have something for this in next versions of the graph api

Related

FACEBOOK GRAPH API - Find all comments a user has made

I see the API has fields for getting comments given a post/photo/page id. Is there a field to grab a all comments made by a user?
something like this /me?fields=comments?
No, comments are always bound to another resource (post, photo, ...). There is no API to get ALL comments made by the user.

Photo post insights with Facebook Graph API v2.4

We are using version 2.3 of the FB graph API to get insights (specifically viral impressions, reach, engaged, talking about, and impressions) for a page photo post. It works without issue. However when we try to make this same call in version 2.4, it fails. See an example call we used in the Graph API explorer below
/1129724967054634_1214739968553133/insights/?metric=['post_impressions_unique']
We've tried both PageID_ObjectID and PageID_Photo ID in the call, but neither returns the insights data mentioned above. We can get likes and comments for the Object, but nothing at all for the Photo. Are we missing some change in the way Facebook treats page photo posts between versions?

How do i get latest comments without using FQL with the help of graph API?

I am looking to get the latest comments for the Facebook page which I have created, I can fetch it using FQL, but now I don't want to use FQL Because it'll be Deprecated after few months, so I need to Do it through Open Graph API,
Can anybody help me out here?
Help will be appreciated.
https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed
/{page-id}/tagged shows the posts that this page was tagged in and the 'posts to page'
...if you mean the user posts. If you want to get the latest comments to page posts, you need to get the latest posts with /page-id/feed first and use the /post-id/comments endpoint for each one. Or easier: /page-id/feed?fields=comments
If you need older entries, you need to use paging: https://developers.facebook.com/docs/graph-api/using-graph-api/v2.2#paging

How to count likes/comments of a photo/post using new Facebook Graph API 2.1?

I tried for several hours to get the total number of likes/comments of a photo/post using the new Facebook Graph API 2.1 but I didn't find how to do it.
I am able to photo and post details through the API but it contains only an subarray with some likes and comments (ID/Name pair), but no the total number. Graph API Reference for object/likes mention a total_count field but is not able to found in API response.
Can you please suggest me a way to do it?
I am using latest Facebook PHP SDK 4.
I faced this situation before. Facebook Graph API Explorer, in the Fields dropdown list, you can not find any field related to total_like or total_comment of a specific post ( via its object_id). That means Facebook Graph API does not support getting the total likes, comments of a specific post.
But, it support to get likes, comments data of a post via likes, comments fields. So by this way, you can get the entire data about likes, comments, therefore, you can get the total number of likes/comments. This solution is not good, I think. I think in the near feature, Facebook Graph API support the fields total_likes, total_comments.
/object_id?fields=comments.limit(1000),likes.limit(1000)

How get comments, likes, events that my news feed displays

How get my OWN comments, likes, actions just like my wall's recent activity shows for me or same way how my friend's feed work (it shows - "somebody likes a photo/video/anytng")?
Even more simple question: how to get all of news feed objects? Not only posts returned by API /posts, /home, /feed etc. And not only basic likes returned by API /likes. I need "friend1 commented ...", "friend2 likes photo", "friend3 and friend4 are now friends".
All of them.
I have fully checked access_token. Don't care about language/sdk.
Need your thoughts.
It looks like this is not possible. Very sad.
http://forum.developers.facebook.net/viewtopic.php?id=79350
You should check out facebook Graph API Docs: https://developers.facebook.com/docs/reference/api/
It has everything you're looking for.