I was trying to get facebook friendlist using graph api but i won't able to get whole friend list instead i am having list of friends who liked my facebook app.
I have generated facebook app id and secret key by register app on developer facebook.
It was disscussed on facebook developer blog that only friends who installed this app are returned in API v2.0 and higher. total_count in summary represents the total number of friends, including those who haven't installed the app.
I have tried following code :
FacebookClient facebookClient = new DefaultFacebookClient("ACCESS_TOKEN");
User user = facebookClient.fetchObject("me", User.class);
Connection<User> myFriends = facebookClient.fetchConnection("me/friends", User.class);
System.out.println("Count of my friends: " + myFriends.getData().size());
System.out.println("my friends: " + myFriends.getData();
kindly suggest me any solution that would really appreciate.
Please suggest me any link or steps.
purpose : get whole/some facebook friend list.
Stephan van Hulst
posted 3 years ago
This is just for logging devices in into Facebook when you can't access Facebook directly through the device's interface. You would still need to use the graph API to actually interact with Facebook, and as we already found out, it's not possible to get a full friend list that way.
The only solution I can think of is to actually browse to the user's friend list and scrape the web page, but this is a less than optimal solution.
Get me the mayor's office! I need to tell him about this tiny ad: