Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I quiet often need to get the list of people user is interacting most with ("best friends", in a Facebook terminology). Took a while to build the class and it is far from being perfect. However, this will save some time to people who are looking where to start.</p> <p><a href="https://github.com/anuary/ay-fb-friend-rank" rel="nofollow">https://github.com/anuary/ay-fb-friend-rank</a></p> <p>The Jun 11, 2012 revision follows these rules to build friend score.</p> <blockquote> <ol> <li><p>The applications looks through user's feed entries. 1.1. Friend who liked user's feed is given 'feed_like' score. 1.2. Friend who commented on user's feed is given 'feed_comment' score. 1.3. Friend who addressed user in his feed (whether by posting directly on his wall or tagging in the user) is given 'feed_addressed' score.</p></li> <li><p>Photos. 2.1. If user was tagged by a friend in a photo, profile is given 'photo_tagged_user_by_friend'. 2.2. If user tagged a friend in a photo, profile is given 'photo_tagged_friend_by_user'. 2.3. Profile will get 'photo_like' for liking a picture either uploaded by the user or a photo where user is tagged. 2.4. Profile will get 'photo_comment' for commenting a picture either uploaded by the user or a photo where user is tagged.</p></li> <li><p>Friends. 3.1. Profile will get 'friend_mutual' score for every mutual friend.</p></li> <li><p>Inbox. 4.1. Every profile gets 'inbox_in_conversation' for participating in a conversation with user. 4.2. A reparate score is given per every message for any converasation where only two people had a conversation 'inbox_chat'. photos either uploaded by user or where user is tagged.</p></li> </ol> </blockquote>
 

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