Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I've ran into this same issue in a web app I'm working on, and open-sourced the code I've used, albeit in Ruby:</p> <p><a href="https://github.com/mikejarema/facebook-friend-rank" rel="nofollow">https://github.com/mikejarema/facebook-friend-rank</a></p> <p>This is actually a web service which takes an active access token &amp; user id and (assuming a read_stream permission has been granted) returns a hash of ids to counts which can be used for sorting within your android app.</p> <p>I suppose since you're running on a smartphone, this let's you offload a series of calls and any call latency to a server somewhere which is running code optimized specifically for the friend ranking task.</p> <p>In particular, the ranking algorithm looks at a user's 500 most recent interactions (activity feed) and tallies up the frequency of all friends appearing there. The result gives a reasonable ordering of friends, best to worst, and it also works on subsets of friends (eg. sorting mutual friends).</p> <p>There's lots of room for exploring photo tags, mutual friend counts, and also looking for the type of interactions (eg. a checkin with a friend is probably a better measure of closeness than a like on their status). The project may evolve to encompass some of these considerations.</p> <p>Here's a sample app using this approach and Friend Rank on the backend, inspect the network calls to see what the API looks like:</p> <p><a href="http://facebook-friend-rank.herokuapp.com/demo/index.html" rel="nofollow">http://facebook-friend-rank.herokuapp.com/demo/index.html</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload