<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bernie Hogan &#187; Facebook</title>
	<atom:link href="http://people.oii.ox.ac.uk/hogan/category/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://people.oii.ox.ac.uk/hogan</link>
	<description>Research Fellow, Oxford Internet Institute</description>
	<lastBuildDate>Mon, 08 Aug 2011 23:36:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What you can and can&#8217;t get from Facebook</title>
		<link>http://people.oii.ox.ac.uk/hogan/2010/11/what-you-can-and-cant-get-from-facebook/</link>
		<comments>http://people.oii.ox.ac.uk/hogan/2010/11/what-you-can-and-cant-get-from-facebook/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 15:42:49 +0000</pubDate>
		<dc:creator>BERNiE</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[OII]]></category>

		<guid isPermaLink="false">http://people.oii.ox.ac.uk/hogan/?p=136</guid>
		<description><![CDATA[I have had several interesting requests for my NameGen program, including the much maligned desktop application that is not really active development (pending future grant money). What is interesting is the sorts of requests that come in based on misunderstandings of what Facebook provides to an application developer. So, what can and can&#8217;t you get [...]]]></description>
			<content:encoded><![CDATA[<p>I have had several interesting requests for my NameGen program, including the much maligned desktop application that is not really active development (pending future grant money). What is interesting is the sorts of requests that come in based on misunderstandings of what Facebook provides to an application developer. </p>

<p>So, what can and can&#8217;t you get from the Facebook API about an individual and their friends?</p>

<p>I. <strong>You can get a list of a user&#8217;s friends, their names, and their profile pic. </strong>
Here is the FQL: </p>

<p><code>SELECT user,name FROM user WHERE uid IN  (SELECT uid2 FROM friend WHERE uid1 = $user_id)</code></p>

<p>If the user has made other information public, that is often accessible as well, such as gender, date of birth and hometown. Some protected information such as relationship status is never available to the API for anyone other than the user. You can customize what information is available to others through Privacy Settings -> Applications, Games and Websites -> Information Accessible through your friends. This figure shows what I have set. I believe it is the default. </p>

<div id="attachment_137" class="wp-caption alignnone" style="width: 572px"><a href="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Screen-shot-2010-11-25-at-15.28.32.png"><img src="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Screen-shot-2010-11-25-at-15.28.32.png" alt="The friend sharing customization screen" title="Facebook application permissions" width="562"  class="size-full wp-image-137" /></a><p class="wp-caption-text">The customization screen for Facebook's information sharing between friends via the API</p></div>

<p>II. <strong>You can get a 1.5 degree personal network.</strong> (Please note &#8211; this is a simplified and suboptimal query that will not return a complete network in most cases where the network is larger than 200 nodes).</p>

<p><code>SELECT uid1, uid2 FROM friend WHERE uid1 IN (SELECT uid2 FROM friend WHERE uid1 = $user<em>id ) AND uid2 IN (SELECT uid1 FROM friend WHERE uid2 = $user</em>id)</code></p>

<p>This will return a list of friend links. There is a more inefficient way of querying this information using the get_friends() query. It requires you to send all possible friend combinations, and it will return, for each one, whether the two users are friends. So the list length will be n(n-1)/2 where n is the number of friends. That&#8217;s approximately 125k elements for a 500 person network. Those elements have to be sent in batches of 5k max (as far as I recall).  </p>

<p>III. <strong>You can get the links between friends in a group. </strong>
I don&#8217;t have this query on hand, partially because Facebook will not return a complete list of group members (at least through FQL), but if you are in a group, you can ask if other group members are friends. The same cannot be said of a fan page (i.e. The ones where you &#8216;like&#8217; rather than the ones where you join). One attempt to explore this network is in <a href="http://apps.facebook.com/netvizz ">http://apps.facebook.com/netvizz </a></p>

<div id="attachment_140" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.amazon.co.uk/gp/redirect.html?ie=UTF8&#038;location=http%3A%2F%2Fwww.amazon.co.uk%2FAnalyzing-Social-Media-Networks-NodeXL%2Fdp%2F0123822297&#038;tag=berhogsacapro-21&#038;linkCode=ur2&#038;camp=1634&#038;creative=6738"><img src="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Screen-shot-2010-11-25-at-15.40.13.png" alt="Click for book" title="Ego net sizes" width="600" class="size-full wp-image-140" /></a><p class="wp-caption-text">An example showing the 1.0, 1.5 and 2.0 ego nets (taken from my chapter in Analyzing Social Media with NodeXL - click pic for book</p></div>

<p>What can you view through Facebook (and theoretically spider) but not get through the API:</p>

<ol>
<li><p>The 2-degree network: If you can view a friend, you can view all of their friends. That said, the API will not return these people. It only will return the friends of a single user. </p></li>
<li><p>All members of a group. </p></li>
<li><p>All members of a page (if you are a page administrator). </p></li>
</ol>

<p>So…what does this mean? It means that basically, Facebook allows people to learn about the network immediately surrounding them and that&#8217;s it. It similarly means Facebook will not allow you easily to learn the personal network for someone else. So consider the following requests that won&#8217;t work: </p>

<ul>
<li><p><strong>The personal network of a person&#8217;s friend.</strong> Being able to access this would be a problem as a clear form of surveillance.  So if you want to view a friend&#8217;s network, you should ask them to download it themselves. </p></li>
<li><p><strong>This also holds for parents </strong>- no I will not help you download your teenager&#8217;s network just because she put you on limited profile. Moreover, this is not even possible unless you and your daughter and all of her friends are in a group and you can get the complete list of people in the group. And recall, while it is possible to add other people to a group, those people must already be your friend, so you can already access those ties anyway. </p></li>
<li><p><strong>The personal network of someone you are investigating.</strong> If you do not have a warrant to download this network (or to compel a suspect to download their own network), and you want this information, this again, is surveillance. Also, I&#8217;m pretty sure that taking the network of someone else would be a breach of the terms of use. And as for the warrant &#8211; I would tread carefully, as this will probably involve all sorts of legalistic red tape (especially in privacy friendly countries such as Germany). </p></li>
<li><p><strong>This also holds for people curious about the personal network of anyone they are not friends with.</strong> A Facebook friendship is a form of information access and redistribution. If you are not friends with someone, they have not granted you this access. This is the sort of notion that got <a href="http://www.newscientist.com/article/dn18721-data-sifted-from-facebook-wiped-after-legal-threats.html">Pete Warden into legal hot water</a> with his 200 million-strong global Facebook network that he was planning on releasing. </p></li>
</ul>

<p>Personally, I think that data portability is a good thing, and I am currently following <a href="http://www.pcmag.com/article2/0,2817,2373123,00.asp">the debacle between Google and Facebook</a> rather closely, but I also think this needs to be a carefully metered out. And I don&#8217;t think that Facebook is a sinkhole of data &#8211; in fact, their API is very liberal. In some cases, perhaps too liberal. This is especially considering the perennially evolving terms of use. But they have made some careful decisions that I tend to agree with (such as limiting the 24-hour caching requirement), and while I wouldn&#8217;t give them carte blanche support, I think they are making baby steps in the right direction. Thankfully, those steps do not involve downloading the networks of others without their permission and collecting friends of friends of friends.</p>
]]></content:encoded>
			<wfw:commentRss>http://people.oii.ox.ac.uk/hogan/2010/11/what-you-can-and-cant-get-from-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook&#8217;s &#8220;Download your Information&#8221; reviewed</title>
		<link>http://people.oii.ox.ac.uk/hogan/2010/11/facebooks-download-your-information-reviewed/</link>
		<comments>http://people.oii.ox.ac.uk/hogan/2010/11/facebooks-download-your-information-reviewed/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 20:56:16 +0000</pubDate>
		<dc:creator>BERNiE</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[OII]]></category>

		<guid isPermaLink="false">http://people.oii.ox.ac.uk/hogan/?p=124</guid>
		<description><![CDATA[As part of Facebook’s march to capture as much of your life as possible while making you feel okay about it, last month they announced a “Download your Data” feature. This feature has been rolled out in waves, and happily, that wave lapped up on my shores yesterday. So here’s a review of the feature [...]]]></description>
			<content:encoded><![CDATA[<p>As part of Facebook’s march to capture as much of your life as possible while making you feel okay about it, last month they announced a “Download your Data” feature. This feature has been rolled out in waves, and happily, that wave lapped up on my shores yesterday. So here’s a review of the feature</p>

<p>The short story is that this is a pretty neat feature that is clearly still a first step. In particular, there are a handful of absences, such as not knowing who ‘liked’ your posted. Also, it won’t download any of your friend’s data, so if you want to view your personal network, you’re still left with applications like my own <a href="http://apps.facebook.com/namegenweb">namegenweb</a> or <a href="http://apps.facebook.com/netvizz">netvizz</a>.</p>

<p>The data that comes down is basically a series of queries on the big table that holds all of this data, spit out as a series of sparse html files. The source code of the files is nice and clean, with legible div tags, but its no easier to parse this data than it is to do so through a series of <a href="http://developers.facebook.com/docs/reference/fql/">fql queries</a>. Obviously, most users aren’t going to either look at the source code or use fql queries, but its nice to know that their API is so thorough and open that you were able to get all of this data even before the “download your data” feature. </p>

<p>To get started, you have to go to account -> account settings. There should be a feature there called download your information, with a link called “learn more”. </p>

<div id="attachment_121" class="wp-caption alignnone" style="width: 224px"><a href="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Account-settings.jpg"><img src="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Account-settings.jpg" alt="" title="Account settings" width="214" height="228" class="size-full wp-image-121" /></a><p class="wp-caption-text">Click on account settings</p></div>

<p>If you are part of the roll out, then you can click on this link. If not, then it tells you to sit tight, and that it will be available sometime in the future. When available, it gives you a big preamble and a simple “download” button. </p>

<a href="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Download-information.jpg"><img src="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Download-information.jpg" alt="" title="Download information" width="700" height="558" class="size-full wp-image-122" /></a>

<p>Once clicked, that button should turn into a greyed out “pending” button. The first time I did this, it emailed me and said there was something wrong with my file, and that I could try again. I tried again, and the button never turned to “pending”. So I logged out of Facebook, closed my browser and tried again. This time it worked. </p>

<div id="attachment_123" class="wp-caption alignnone" style="width: 310px"><a href="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Download-pending-screen.jpg"><img src="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Download-pending-screen-300x220.jpg" alt="" title="Download pending screen" width="300" height="220" class="size-medium wp-image-123" /></a><p class="wp-caption-text">If everything works, you should see this screen before waiting.</p></div>

<p>It took about 2 hours for the email to come to me, and it was very simple to click on that link and get a zip file. </p>

<p>Inside the zip file was a series of folders and a pretty straightforward “index.html” file. I’ve posted a stripped down version of mine to <a href="http://namegen.oii.ox.ac.uk/bernieexample/html/profile.html">NameGen</a> so you can get a sense of what this whole thing looks like. </p>

<div id="attachment_128" class="wp-caption alignnone" style="width: 310px"><a href="http://namegen.oii.ox.ac.uk/bernieexample/"><img src="http://people.oii.ox.ac.uk/hogan/wp-content/uploads/2010/11/Example-profile-screen-300x213.png" alt="" title="Example profile screen" width="300" height="213" class="size-medium wp-image-128" /></a><p class="wp-caption-text">Example Profile Screen</p></div>

<p>Comments to photos appears as usual. People tagged in photos do not. Both messages on one’s wall, and the replies show up, but interestingly, only the number of likes shows up. You cannot see who actually liked it. I can’t comment on “places”, since I haven’t used that feature and do not know how it would show up. </p>

<p>Curiously, Event IDs are the only thing that is clickable. The remainder are not &#8211; that is, you cannot click on a message and go to the live version on Facebook, or click on a friend and go to their profile.  </p>

<p>It is nice that this is all in a clean html format. Its a step towards data transparency, but not towards data portability. There is a great deal of work that would be required to actually slice up this data. But as I mentioned, most of this is already covered in the Facebook API, so it doesn’t seem like having another point of entry to machine readable structured data was necessary. </p>
]]></content:encoded>
			<wfw:commentRss>http://people.oii.ox.ac.uk/hogan/2010/11/facebooks-download-your-information-reviewed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

