TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Facebook Code Details "Ordered Friends"

2 点作者 derpenxyne超过 12 年前
Right click anywhere on a Facebook page, click “View page source”, Ctrl+F “orderedfriends”, copy the first number below and add it to the end of “facebook.com/”. This makes me wonder what the meaning of these numbers is and why are they referred to as "ordered friends". Ideas?

15 条评论

thisismyname34超过 12 年前
Thought everyone might be interested in this - I did a little exploring (because it beats studying for exams). To the left of that list in the source code, there is a list called "privacyData" and after it is another string of user IDs, not coincidentally, all my friends (family members) I have blocked from chatting me or interacting. These ID numbers are listed as "13656xxxxx":-1, presumably assigning them a value of -1 each.<p>This suggests to me that the magic algorithm is assigning users a value from -1 to 1, with the more positive ones more likely to appear in chat. Between the privacy list and initial chat friends is this string of code: "ordered_list.available_target":0.85,"ordered_list.top_friends":5,"sidebar.min_friends":7"<p>This suggests to me that it's (1) searching for friends that have a value higher than .85, (2) always placing the top 5 friends from your initialchatfriendslist in your top half chat sidebar, and (3) always keeping at least 7 friends above the fold in the chat sidebar.<p>Finally, there's an input for "sound.enabled: true". Interestingly, after I turned chat sounds off, logged out and logged back in, it had not updated to "false" yet. This suggests to me that by monitoring when that flips, we can figure out how often the initialchatfriendslist is updated.
评论 #4950668 未加载
MeowWoem超过 12 年前
I don't view my number 3, like at all, even from the start of facebook, but she is my best friend and I'm on there like.. once every two months but there's this boy who is number 8 on mine and I view his more than once a day so he should be in my top 5. My number 2, I don't view that often but I know he has a huge thing for me, so I believe it is by most times they have viewed your page. My number one is my best friend and I know he views my page more than once a day because he told me so. So that is the only way I can think of how this works.. I'll just add a few more reasons in case you're wondering ~A boy who has recently started to like me, moved from 40 something to 20 something, and I don't view his page. ~Most people have stayed around the same, when ever I check, besides a few people ~A boy who I started to hangout with a lot, moved from 15 to 8. ~My top three are my best friends. ~I don't chat with my top ten the most, even from the start of facebook. ~my orderedfriends are not in alphabetical order. MUST BE STALKERS! ONLY EXPLANATION!
评论 #4896783 未加载
suzi超过 12 年前
I tried this today for the first time. I think the list is who views my profile, in descending order. I have been on fb for 5 years, and I use chat approx one time/year. So this list is not related to "chat" interactions for me. I have 400+ friends.<p>My #1 &#38; #2 are my daughters with whom interact often and both ways. Next #3 is a friend whom I rarely view, but she often comments and likes my stuff, so I know she views me. #4 is my brother whom I do view often. #5 is literally an old almost-married-him boyfriend with whom I have occassionally messaged in the past about reunion stuff, but nothing except messaging and I only view his wall 2ce/year. #6 &#38; #7 are nice people who kinda bore me but for some reason I fascinate them, (sounds arrogant but that's the short explanation), so it totally makes sense they view me; I never view them. The next 10 or so include some people I view and interact with, but also an equal number of people I rarely eventhink about.
thisismyname34超过 12 年前
IMO, it's not about about being related to chat messages or not related. It's definitely related. The #1 on my list has moved up to that spot recently, while our chatting has increased and interactions have decreased. There is some formula that we don't know and likely won't ever know. My guess would either be by what percentage of our messages/likes/interactions go to certain people or giving different actions relative weights (e.g. 50 chat messages = a post on someone's wall) and then that list is ranked according to some raw score.<p>I maintain, as I said below, that the users are assigned values from -1 to 1 with our various interactions factoring into that. The jackpot question people seem to want to answer is whether it's a one-sided statistic or two-sided.
评论 #4941156 未加载
评论 #4955198 未加载
评论 #4967924 未加载
kayeya超过 12 年前
I don't know if the list shows who your bigger stalker is, but rather more like who you interact with frequently. Not sure how it's ordered but it makes sense and shouldn't come as much surprise, since it's basically your buddy list on chat.<p>Technically, it has to do with the chat sidebar and who's in your buddy list. It's within the bracketed section of code entitled, "ChatConfigInitialData." Also, the little piece of code next to that list is "require"[["ChatSidebar","init"<p>I signed out of chat and the list of people grayed out on my offline chat list were all the top users. Just food for thought.
owenfi超过 12 年前
Interesting list.<p>Looks pretty clear to me that it is sorted by "most interactions with" descending for some value of "interaction" and probably on some recent time window. (I know I send lots of messages to my podcast cohost and brother via facebook and they are my first two respectively.)<p>Facebook frequently recommends I add Adam (cohost) as a "Close Friend" (which is internal, not some app) whereas my brother already is, so that feature seems to be derived off this list.
评论 #4874237 未加载
rozap超过 12 年前
Wrote a selenium thing to go through the list for me. My list wasn't particularly surprising - it's just the same people that show up on the news feed. I highly doubt it's influenced much by how much they visit your profile. It's just who facebook thinks your "best" friends are, based on a number of factors.
lalalalulu超过 12 年前
I guess these are stalkers. My #1 is my mom, which I rarely view her profile. My 3rd is my best friend, but I only visited hers thrice in my lifetime. The 5th, not to mention, i view his profile everyday.... So.... yes, these are stalkers....
guypersonman超过 12 年前
it definitely has to be based on profile views or something else, more than interactions, because a few of my people i never interact with on facebook and almost never view their profile. but they all do have crushes on me.
damepet超过 12 年前
When I do this, the ordered friends cannot be found in the source page. Could it be that Facebook took this out of their source page once people were doing it? If it makes any difference I am using a MAC
评论 #4915180 未加载
评论 #4915181 未加载
anajuliaaquinoo超过 12 年前
<a href="http://www.facebook.com/index.php?stype=lo&#38;amp;lh=Ac_MAQTXxLvN0Xl2&#38;amp;aik=D3NA19LYPhjwMacBmY9x3w" rel="nofollow">http://www.facebook.com/index.php?stype=lo&#38;amp;lh=Ac_MAQ...</a>
suzi超过 12 年前
Question - do you think NON-friends who view my wall etc could appear on this list, or is it just friends?
ehbahd超过 12 年前
I can't seem to do this on my mac? Can anyone help?
aliriver超过 12 年前
What's the number you're supposed to copy?
评论 #4874945 未加载
ehbahd超过 12 年前
figured it out; it must be done on either google chrome or firefox