Count friend's posts on Facebook API - facebook

I need to count how many posts my friends has of a given period.
Is that possible to count status updates from friends through Facebook API?

You can just query the graph api on https://graph.facebook.com/USERID/posts
which will return an array with all the relevant info on each post. That should be enough to get you started at least.
Try the graph explorer here...
https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fposts

Related

How to get paid likes and comments of boosted instagram posts using facebook graph api?

I am using Facebook graph API to get insights(likes, comments, video_views etc.) of Instagram posts. API is returning accurate data in case of normal posts but if I boost a post on Instagram then I am getting only organic number of likes and comments. For eg.. if my boosted post has 33 likes then I am getting only 22 likes count from my Facebook graph API.
I have tried using this API too
GET /v13.0/{page-id}/ads_posts but getting empty data.
Is there any API endpoint to get the paid likes and comments.

Retrieving friends' status updates from Facebook Graph API

I am trying to retrieve a list of friends' status updates for an app I'm making. I'm essentially looking for the data that's in NewsFeed on Facebook.com
I'm currently using the /<user id>/home endpoint, which does return friends' posts, but they are all shared links, not status updates. I'm specifically looking for status updates (in FB Graph terminology, the Post status_type would be mobile_status_update. Here's the API reference: https://developers.facebook.com/docs/graph-api/reference/v2.2/post/
I could do this with FQL, but that's being deprecated so I don't want to rely on it. Anyone know how I can do this with the Graph API?
I could first grab friend IDs and then query for the status updates of those friends, but this would give me statuses that are not of interest to the user. I want a list of new and meaningful status updates from a user's friends.
That's no longer possible with Graph API v2.0 or upwards, because the friends permissions have been removed. It's no longer possible to request the friends_status permission which you'd need.
See
https://developers.facebook.com/docs/apps/changelog#v2_0_permissions

Facebook Graph API Return Friend posts only from feed

How do I only get the posts of friends using Graph API?
Not the FQL I'm trying to make one long url call.
It may require using JPath in the /feed call?
friend permissions are gone since v2.0 (end of April 2014), it is not possible to get the posts of friends anymore: https://developers.facebook.com/docs/apps/changelog

Is there an equivalent to "user_likes" for comments for Posts within a News Feed using Graph API?

I have not been able to find any information that indicates that there is a similar way to get the information for whether or not the user associated with the access_token that is making a request to .../me/home?… to get News Feed posts likes each post in the return from the FB Graph API call. For comments there is a "user_likes" field that can be retrieved for a comment within a post, but I cannot (without error/failure) request "user_likes" in the comma delimited list of fields for the feed as in ".../me/home?fields=user_likes,…
From what I can see, the only way I can determine if the user likes each post is to compare the user's Facebook ID to the id of each of the likes for post. This is problematic in that many of the posts returned in the Graph API request return a subset of the likes with paging likes to get additional likes.
Has anyone found a way to solve this problem? I do not want to use FQL, and am aware that similar posts to this have received FQL solutions in response.
Thanks,
Joe

Get a feed on Facebook Page with Graph API ordered by created time or updated time

When user comments or reply to comments to a older post , in graph api how to get those feeds sorted by time.
Raised Bug to Facebook and here is the response
https://developers.facebook.com/bugs/469327419867332