retrieve full list of friends using facebook API [duplicate] - facebook

This question already has answers here:
Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application
(8 answers)
Closed 8 years ago.
new 2.0 version has a paging that limit the numbers of friends at one request, which doesn't allow me to retrieve all friends at once although there's a parameter call 'limit', it can only be done by looping the 'offset' till the end. The problem is each user has different number of friends!
I've been looking around for few hours but still don't have a solution..

As mentioned in the Graph API v2.0 upgrading guide (https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids)
/me/friends returns the user's friends who are also using your app In
v2.0, the friends API endpoint returns the list of a person's friends
who are also using your app. In v1.0, the response included all of a
person's friends.
There are two key use cases where apps need access to non-app friends:
tagging and inviting. In v2.0, we've added the Taggable Friends API
and the Invitable Friends API to support these flows.
After a person has logged in with v2.0 of Facebook Login, calling
/v1.0/me/friends and/v2.0/me/friends` will both result in the v2.0
behaviour - both calls will return the set of the person's friends who
also use the app.
So, in v2.0 you'll only be able to get all friends via the /me/taggable_friends (https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends) endpoint, which only contains the fields id, name, picture, and only can be used after a review of your app by Facebook.

Related

Facebook v2.4 API Finding a users top friends

I am trying to make an app that shows the user their top 10 friends on facebook.
I've researched a lot of solutions on stackoverflow but they were all posted a few years ago and now do not work with the new restrictions imposed by the v2+ Api.
How would you propose ordering the users friends list to show the most likely top friends. (Friends of the user do not have the app installed)
You can only access friends who authorized your App too. More information: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app

Get Facebook Friendlist (only read)

I'm developing an app which is super important to get the user's friends.
I just need to get a list of friends (Avatar and name) I do not require any more information or want to do anything with that data, you simply get a list of friends.
With the new change in Facebook it is impossible?
Regards!
See point 3.) of
https://developers.facebook.com/docs/apps/upgrading#upgrading_v2_0_user_ids
/me/friends returns the user's friends who are also using your app
In v2.0, the friends API endpoint returns the list of a person's friends who are also using your app. In v1.0, the response included all of a person's friends.
There are two key use cases where apps need access to non-app friends: tagging and inviting. In v2.0, we've added the Taggable Friends API and the Invitable Friends API to support these flows.

How to get taggable friends list in c# windows 8 phone app?

I want to get friends list in c# windows 8 phone app. I refered this link http://facebooksdk.net/docs/phone/controls/friendpicker-ui-control/ but i am getting only those friends who are using my app. How can i get taggable friend list?
https://developers.facebook.com/docs/graph-api/reference/v2.2/user/taggable_friends
This is how to get taggable friends, with example code.
That friendpicker probably does not use taggable_friends, but the user friends with the /me/friends endpoint. And that one only returns friends who authorized your App too, since April 2014. See changelog for more information: https://developers.facebook.com/docs/apps/changelog

Get users friends list in Graph API version 2.0 [duplicate]

This question already has answers here:
Facebook Graph API v2.0+ - /me/friends returns empty, or only friends who also use my application
(8 answers)
Closed 8 years ago.
I am developing an application in which the user will be logged in using Facebook credentials.
Once the user is logged in I need to retrieve the user's friends list. But as per new Facebook Graph API version 2.0,I cant get the list of friends until the user's friends logs in to the application.
Is there any possibility to take the user's friends list without user's friends logging in to the application.
If the user cant get the friends list, how come he can invite his friends to the application and asks his permission to retrieve his details? Is there any other way to do this?
Is it possible to fetch the entire friends list of a user by using FQL. If so will it affect the app in the future?
I am new to facebook apps.Please help me to solve this. Thanks in advance.
If you are a canvas game you can use invitable_friends ( https://developers.facebook.com/docs/games/invitable-friends/v2.0 ). Otherwise you can use the Share or Send/Message dialogs.

fetching list of friends using facebook 2.0

is there any way to fetch list of friends using facebook 2.0 API?
I was reading this upgrade from the API and it seems it is quite difficult to fetch the friends now,
but I have seen 2 permissions
read_friendlist
user_friends
Is their any way to fetch list of friends? and what about the widgets that get friends from facebook, will they go down?
In v2.0 of the Graph API /me/friends returns the user's friends who also use the app. You need to be granted the user_friends permission in order to get even app-using friends.
There is no way in v2.0 to get the full user's friends.
However, you may use the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends API or the https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends APIs to get all the user's friends with tokens than can be used for tagging and inviting.
the read_friendlist perm doesn't get you a list of the user's friends, it gets you the list of a user's friendlists which may be used to build a custom privacy selector when publishing stories to Facebook.
As of 4/30/2014, you can only retrieve the friends who also use the app.
There are, however, specific methods for apps in the 'Game' category for inviting friends.
https://developers.facebook.com/docs/graph-api/reference/v2.0/user/invitable_friends/