Reputation: 31
is there a way with the Graph API or even the old API to get the number of friends (not the list of names, just the count) of each friend of my user? so if John is using my app and John has 3 friends, Stacy , Amy and Bill, I would like to know how many friends Stacy, Amy and Bill have.. I know you can't get the list of friends (only the ones in common), I just want the count.
I don't think the count is private. In fact, even for people who block their friend list, I get a count of how many friends they have on the original email I get when they friend me., right under their name.
Upvotes: 3
Views: 3180
Reputation: 1194
You can get this information from the Graph API by issuing a request to the /PROFILE_ID/friends endpoint. This will return a list of the user's friends as an array-- which you can count.
Upvotes: 0
Reputation: 52063
Graph API and FQL don't provide this information. It is publicly available without being logged in on alot of users pages by going to https://www.facebook.com/profile.php?id=5 and then scraping it. Although its against the terms of service and isn't available for every user.
Upvotes: 2