Can we get post on friends wall and comments, likes on those posts - facebook

Can we get relationship status changes of our friends from last 3 days including present day
what my app requires is the data of the friends who recently engaged/married etc
AND
Anniversary details from last 3 days to next 15 days (may be this can be done by reading the friends posts on our wall with happy anniversary etc but how to get the friends wall post data posted by others using facebook api
and status updates of last 3 days including present day and comments and likes on those status updates
Graph API or FQL both are fine
I am using facebook c# sdk for my windows phone app

First of all, you must have some pretty … interesting … friends, if you’re interested in their relationship status changes for intervals of three days – or are you trying to build an app for finding rebound s*x partners …? ;-)
Well, as all of the user fields (except verified) are available for real time updates, that could be one way for you to get notified of such changes (and then put their “history” into your own database).

Related

Facebook API Insight Metrics Daily graph API

Hi Guys I am hoping someone could help me.
I have been toying around with the Facebook API for our company's facebook analytics page. I am looking to get information on the likes, shares, impressions etc and store directly to a database
I have been able to pull this information back using the Graph API Explorer. Now I want to be able to pull the information back for say today. When I add today's date in it only relates to the actual posts that were posted today, not today's activity. if that makes sense.
An example of this is if I had liked a post today that was created 2 days ago, it doesnt show in in today's activity, but the activity from 2 days ago.
The code I have been using is:
feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)&since=2016-10-28
Just wondering if I am missing something as surely should be an easy way of getting todays actual activity from users?
Your example isn't fetching Insights, you're fetching the posts visible on the page's Timeline, then asking for a count of the comments and likes
There's a totally different API for fetching Insights data: https://developers.facebook.com/docs/platforminsights/page
This is the same API used by the Insights UI, so for the same set of metrics/dates, it should give identical results to the UI

query posts by my facebook application

I have a facebook app that posts messages on user's wall. Is there a way for me to query all the posts created by all users using my app (for a certain time period)?
I don't want to query just the posts made by my app for a specific user but all the wall posts made by my application.
Thanks.
You can use the stream table. It has an app_id field.
Down side is it is limited to the last 30 days or last 50 posts.
http://developers.facebook.com/docs/reference/fql/stream/

limit posts to wall on fb app

I have an fb app connected with my website. it will trigger a post to fb user's wall when he completes a search on my site. Is there anyway to have a limit on the number of posts to the wall? say 1 post per day or 3 posts per week?
Take a look at the Graph API documentation. Basically, Facebook will send you a Graph object for each of the users that log in. You can just keep a table in your DB that maps users to a counter for how many posts you've made to their wall, which you always check before posting to make sure it's not over the limit. When the time period is up, you can just reset the counter.
Here is some example code that will show how to access the Graph object: http://www.devshed.com/c/a/PHP/Facebook-PHP-API-Applications-Working-with-User-Data/

How can you get the Facebook Places API to show how many people have check in at a venue in the last 3 hours?

How can you get the Facebook Places API to show how many people have check in at a venue in the last 3 hours?
None that I'm aware of. The only data you can get from the API is in relation to the authenticated user (themselves and their friends). I've tried the API request though https://graph.facebook.com/PAGE_ID/checkins but I only receive my own or friends' checkins to that page.
Interestingly, it seems that this is at least available internally as evidenced by http://m.facebook.com/places/herenow.php?id=PAGE_ID

Facebook Open Graph Feed Not Returning All My Wall Posts From Me

When I use the open graph API to get my own facebook news feed (my wall), everything looks right for the most recent 3 months, but prior to that, I no longer see my own posts (but still see posts of other users on my wall).
I'm using a version of this link (with a working access token):
https://graph.facebook.com/me/feed??access_token=putvalidaccesstokenhere&limit=100
as documented on this page:
http://developers.facebook.com/docs/api
And I notice that posts from me (i.e. status updates, shared links etc.) no longer show up from early June and prior. Any ideas why?
Facebook lets you see only latest 5000 records. Everything older than that is unaccessible through the api. Is it possible that you reached this limit in 3 months?