5

How can I rank my Facebook friends by their friend count?

I want to get a message out to a large variety of people and I'd like to see the top 10 friends of mine with the most friends.

1
  • 1
    This is interesting, I'd like to know how to do so also.
    – user14291
    Commented Oct 26, 2011 at 23:12

1 Answer 1

2

I haven't done this, but from my research this is the best way to do it:

  1. I need to use Facebook Query Language to get all my friends
  2. I need to use a programming language (maybe javascript?) to loop over all my friends to get their friends, count them, and store the count in an array with the friend name.
  3. I need to sort my array by the count.
3
  • You can do everything in the FQL query I think, you just need a way to join tables.
    – phwd
    Commented Dec 5, 2011 at 21:28
  • @phwd can you post the code for the join in an answer? That would really help me out. Commented Dec 6, 2011 at 1:25
  • Programming solutions aren't really in the scope of this site. It's better to ask on facebook.stackoverflow.com.
    – phwd
    Commented Dec 10, 2011 at 1:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.