269 points · by jkeesh · 15y ago · 108 comments
https://www.facebook.com/video/video.php?v=432864835468
Briefly, first_degree.php returns objects you're directly connected to in the graph, and if there's space a few machine-generated guesses at other good results. We preload these as soon as you focus the "Search" box at the top of the page, in the hopes of having some decent results to show when you start typing. The index field does, as the article inferred, represent our best guess at a ranking function on these first degree objects. The inputs to this ranking function explicitly do not include other users' behavior on the site. I talked a bit about our ranking function in this quora question:
http://www.quora.com/How-does-the-new-Facebook-search-engine...
Edit: To clarify what a lot of people seem to be wondering, visiting someone's profile does not affect the search results of anyone but yourself.
The knowledge that anyone who stumbles across my logged-in profile can see who I'm interested in by experimenting in my friend search bar has a chilling effect on the profiles I view. Google and most browsers have a 'clear search history' feature- it would be nice if facebook had the same.
The potential "victum's fault" is still no excuse.
It's not about who you search or view. It's all just a big guess at who you might be interested in. From what I've gathered, it tries to find probable relationships based on all of these factors:
Comments, Likes, Tags, Events, Applications, Friends, and Work and Education data
Note that those are both your own comments, etc, and those of the people it's trying to relate you to. Who knows exactly how it combines all those to come up with its guesses, but I'm quite positive it has fairly little to do with who you're actually viewing (though I'll admit, maybe that's a small factor in there, too).
However, I've removed all imported friend finder contacts on https://www.facebook.com/invite_history.php some weeks ago.
I guess this implies that Facebook does not really remove the imported information, but that it keeps this information and just hides those contacts from you in the friend finder interface.
Find somebody on your mystery list who isn't a friend of your friends, and then you can get paranoid.
In Mozilla, the first person ranked was at -6.2650374; on Chrome, it was -7.2581474 (I go back and forth with this person quite a bit). Also, the ranking of some of the people were different.
My guess is something to do with browser cookies or caching - any ideas why this might be the case?
OT, but for the second time this year, someone is newly (just as of today) using one of my secondary Gmail accounts as their FB user ID. They don't appear to have access to the Gmail account -- and I've newly killed any concurrent sessions and then changed its password and security Q/A to be sure. So, I don't know how they're accomplishing this. But that Gmail account received the sign up confirmation messages and is now filling up with friend confirmations.
Any chance you could plug me into someone relevant at FB, as this appears to be a recurring problem without a ready explanation? Email to pasbesoin at that gmail place.
P.S. As best I can determine, my systems are clean, and I've no other problems/compromises that are apparent. There appears to be something borked with the Facebook account creation confirmation process.
https://www.facebook.com/ajax/typeahead/search/first_degree....
with 'userid' replaced with your numeric Facebook account ID.
With the "filter[0]" in the url, all scores came back as 0 for me.
There might be another way, but this is the one I use.
It's also a great habit to get into. Reading source code is invaluable in understanding and learning. And it is a skill that can be cultivated just like others. For example, the Prey project is an invaluable piece of software, except it's potentially extremely sensitive. Probably worth reading the source first.
You also start to get very well versed in the "usual way of doing things", especially if it's a language/paradigm you're not programming daily in.
http://cm.bell-labs.com/who/ken/trust.html
To give one example of how this could fail, the server could return different code when the request referer is facebook.
[1] http://www.facebook.com/ajax/typeahead/search/first_degree.p...
success: function(result) {
alert('Please try again.');
},
error: function(data) {
var text = data.responseText;
// ... processes the data here...
}
Why is success error and error success?Facebook you scary.
So is it something were people are apparently assuming that it is onto something because they can see those 2 names they do not want anyone to know about among the 10 being in the top or is the result for everyone actually correct?
In the case of the latter how is it so random for me? I have Michael Arrington on the top 15 and I swear I do not stalk his profile.
Can anybody beat that?
Hardly a social disaster.
Top ten:
1) best man
2) random person who lives in my apartment blocked who I stalked once to get their mail to them
3) Wife-to-be
4) Her sister
5) Good friend of mine from Uni
6) Me
7) Place my wife-to-be volunteers at
8) Another friend from uni
9) Wife-to-be's best friend
10) Someone I know online but not IRL.
with open("first_degree.php.txt", "w") as f:
for e in json.loads(open("first_degree.php.json","rb").read().replace("for (;;);",""))["payload"]["entries"]:
f.write(("%s %r\n" % (e['text'],-e['index'])).encode('utf-8'))Also, if you make an account and do nothing your value for yourself is 0.939565, which I guess is some sort of baseline of 0 interaction? Although I don't understand how they are modeling your interaction with yourself, tbh.
Also, can anyone share what range of numbers they're seeing? At the very top of my list is one negative number. Beyond that, the top half of my list ranges between 0.1 and 1.0. The last half of the list ranges from 1.0 to 1.2.
It is interesting to note however that my brother is a frequent Facebook user and his first person on his list ranks at about a -26, and EVERY SINGLE person in his graph is assigned a negative number. Despite this, he still doesn't know who a lot of the people are on the bottom of his list.
Other things I noticed: - Some people that I barely even know but just became friends with are ranking highly on my list. I imagine this is because I probably viewed a bunch of their pictures after being friends, combined with the fact that I don't often view profiles of people I am friends with.
- Some of my more recently added friends have the same exact value.
I wonder how much information could be extracted about the algorithm by creating a dummy community of people and connecting them together, then recording the results. I imagine much of the algorithm could be reverse engineered by this if anybody were up to the task. I will probably work on it if nobody else does and publish my findings.
EDIT: Explained what I was trying to say better, fixed grammar.
That said, I've always thought it was strange how FB comes up with the people not only in search but also the ten friends list on the left in profiles, the chat list on the right, and 'people you may know'. I've done a few tests w/ friends regarding the topic, and pretty much what everyone here has guessed seems to be true. There's a very good chance FB factors in people who are looking for you/interacting with your profile (unreciprocated), but of course they won't admit that..
I don't think it's such a big deal in either case. The top Chinese Facebook-like SNS site, http://renren.com/, shows everyone the most recent 9 visitors on a page, and its often used (by would-be stalkers) as a way to overtly show interest "hey, i'm checking you out" kinda deal, or for couples to let each other know they are attentive. Otherwise, its just friends keeping tabs on each other. I'll admit, at first I was weirded out by it, but now it seems almost normal.
I'm probably way out of the norm here, but I honestly wouldn't mind having this in FB.
I built a dummy account in incognito that is friends with with my regularly used profile (A) and a profile owned by a friend of mine (B). All friend requests were made from A & B TO the dummy. I then checked the first_degree.php of the dummy, as expected, me and my friend were first. Perhaps not surprisingly, the next people on the list were the intersection of A & B 's friend lists.
Now I logged back in to A, knowing that B wasn't searching for the dummy, and searched for the dummy a few times a day for a couple days (I learned about first_degree a couple weeks ago).
Checking the dummy's first_degree showed that friends passed A & B had more of A's friends.
My guess is that Keith is right in general. I might not be able to move myself up the ladder of the dummy, but I can change the Facebook Social Graph by changing my viewing behavior. The machine generated list uses that graph to determine first_degree. Even if it's indirect, it means first_degree can be influenced by searches of others. Or I'm wrong!
Seriously, the article was a worthwhile read, but I don't see how you can NOT comment on the design.
Seriously though, this is a bit on the creepy side Facebook.