Fetching friendlist with new Graph API - facebook

Can anyone tell me how will i be able to fetch the friendlist using a simple HTTP request call like mentioned below,
https://graph.facebook.com/me/friends?access_token=xxxx
This was working for me using the access_token generated before the new update of Graph API on April 30th.
Can anyone help me out in getting this done?

This is like the 50th question about this topic. Please use the search of SO next time first.
It's no longer possible for an app which was created after 30th of April 2014 to get the complete user list. For an app which was created before that, you can prepend /me/friends with /v1.0 to get the friend list. This will only work until 30th April 2015!
My answer to this question: retrieve full list of friends using facebook API
Also, see the docs:
https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids
https://developers.facebook.com/docs/apps/changelog#v2_0_graph_api

Related

How to get user online_presence status after FQL will be deprecated

Currently the best (and perhaps the only) way to check if user is online on Facebook is to check his FQL online_presence property from users table. But since FQL gonna be deprecated soon (together with XMPP), it won't be possible to retrieve online_presence anymore.
Is there another way to get user online status (perhaps from Graph API)?
There's no way I know that you can get the online_presence from a Graph API endpoint. It's missing in the /{user_id} fields (see https://developers.facebook.com/docs/graph-api/reference/v2.0/user/)
IMHO, you can continue using FQL until August 7th, 2016, so I'd recommend to stick with your current solution. Maybe the Graph API is updated in the future to also return the online_presence.
online_presence is a very old FQL query that was removed several years ago (back in v2.0). According to this StackOverflow post, it is no longer possible in any way.

How to read Facebook post based on updated time using API

How to read Facebook comments based on updated time through API?
I tried "since" and "until" but both are reading the data based on created time.
for example let us assume a user created a post on his timeline two days back and someone commented on the post today. If I try to read the comment done on today using the following query /me/feed?since=2014-09-08 it doesn't return anything because the created date is two days back.
There's unfortunately no way to query the Graph API concerning the upate timestamp IMHO. since and until reference the created_time, as you said.
If you have a Graph API v2.0 app, you could theoretically use FQL to query by comment creation timestamp. Have a look at the comment table at https://developers.facebook.com/docs/reference/fql/comment/ and the field time. I guess you'd have to in conjunction with the stream table to get the post_is list.
To be able to use FQL you'll need an app which is an Graph API v2.0 app. And FQL will only work until April 30th 2016.

how can I get facebook friends added within the last hours with FB.API

I'm using
FB.API("/me?fields=id,first_name,friends.limit(1000).fields(first_name,id)", Facebook.HttpMethod.GET, friendsCallback);
to get the facebook friends list.
But is there a way to manipulate that command to give me only the last added friends? Or even ordering the friends by added date would help already.
No, there is no way to do this in the API.
It is not mentioned anywhere in the documentation.

Graph Api Friends Data Inconsistency

When I use graph api to request the users friends data [Friends Data]:(http://graph.facebook.com/me/friends?fields=work,name), till 3-4 days back I used to get more data(work place information of my friends) than what I get now?
Is there any update/change happened recently in Graph API?
You probably forgot to set the permission today: friends_work_history.

Year In Review - Facebook Graph / FQL

Is it possible to get all of the info used by FB in Year In Review (for a specific year) - all at once? Rather than merging by calling various Graph API calls and filter accordingly. Is there a direct way to get complete Year In review of any friend of mine?
Eg:
/me/yearInReview/2012/friendID ?
As stated by Igy, there was never documentation anywhere that stated this was an API call. This is not possible