How to get popular friends from Facebook API?
I know I can get friends using https://graph.facebook.com/me/friends I also know I can get friends by FQL like so: 开发者_开发问答 SELECT uid,username FROM user WHERE uid IN ( SELECT uid2 FROM friend WHERE uid1 = me() LIMIT 20 ) But what I need is to order these by the friends you interact with most often, i.e. your close friends.
Is this possible?
you could search for the user's defined Lists.. The list "Close Friends" may contain such information though it is manually edited by the user himself (so it might be empty or not accurate)
You would have to build an algorithm out for this yourself involving the several FQL queries (get likes, post comments, common photo tags, etc).
精彩评论