Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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.

share|improve this question
1  
This is interesting, I'd like to know how to do so also. –  user14291 Oct 26 '11 at 23:12
add comment

1 Answer

up vote 2 down vote accepted

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.
share|improve this answer
    
You can do everything in the FQL query I think, you just need a way to join tables. –  phwd Dec 5 '11 at 21:28
    
@phwd can you post the code for the join in an answer? That would really help me out. –  David Silva Smith Dec 6 '11 at 1:25
    
Programming solutions aren't really in the scope of this site. It's better to ask on facebook.stackoverflow.com. –  phwd Dec 10 '11 at 1:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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