<?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>Inspirated &#187; PyFacebook</title>
	<atom:link href="http://inspirated.com/tag/pyfacebook/feed" rel="self" type="application/rss+xml" />
	<link>http://inspirated.com</link>
	<description>krkhan&#039;s blog</description>
	<lastBuildDate>Thu, 05 Apr 2012 16:19:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Facebook Friends Graph v0.2 &#8212; Deb and RPM packages for Ubuntu and Fedora</title>
		<link>http://inspirated.com/2010/02/26/facebook-friends-graph-v0-2-deb-and-rpm-packages-for-ubuntu-and-fedora</link>
		<comments>http://inspirated.com/2010/02/26/facebook-friends-graph-v0-2-deb-and-rpm-packages-for-ubuntu-and-fedora#comments</comments>
		<pubDate>Thu, 25 Feb 2010 21:36:08 +0000</pubDate>
		<dc:creator>krkhan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Deb]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Friends Graph]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PyFacebook]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://inspirated.com/?p=266</guid>
		<description><![CDATA[Thanks to Christoph Korn, Ubuntu users can now install the package with a single click from the GetDeb repository. The Deb file itself is available on the release page here, along with an RPM for Fedora users. The looks: And the hooks: Changelog: Fixed: Bug #522735: Facebook: Application Request Limit Reached Bug #523378: Connection reset [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Thanks to Christoph Korn, Ubuntu users can now install the package with a single click <a href="http://www.getdeb.net/software/Facebook%20Friends%20Graph">from</a> the <em>GetDeb</em> repository. The <a href="http://launchpad.net/fbfriendsgraph/trunk/0.2/+download/fbfriendsgraph_0.2-1~getdeb1_all.deb">Deb</a> file itself is available on the release page <a href="https://launchpad.net/fbfriendsgraph/trunk/0.2">here</a>, along with an <a href="http://launchpad.net/fbfriendsgraph/trunk/0.2/+download/fbfriendsgraph-0.2-1.fc11.noarch.rpm">RPM</a> for Fedora users.</p>
<p>The looks:</p>
<p style="text-align: center"><img src="http://inspirated.com/uploads/fbfriendsgraph-0.2.jpg" alt="Facebook Friends Graph v0.2 Screenshot" /></p>
<p>And the hooks:</p>
<blockquote><p>Changelog:</p>
<ul>
<li>Fixed:
<ul>
<li>Bug <a href="https://launchpad.net/bugs/522735">#522735</a>: Facebook: Application Request Limit Reached</li>
<li>Bug <a href="https://launchpad.net/bugs/523378">#523378</a>: Connection reset by peer</li>
<li>Bug <a href="https://launchpad.net/bugs/522487">#522487</a>: Facebook Friends Graph fails when friends have a dash in their name [patch by <a href="https://launchpad.net/~littlejawa">Little Jawa</a>]</li>
</ul>
</li>
</ul>
</blockquote>
<div class="shr-publisher-266"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><hr />
<p><small><a href="http://inspirated.com/2010/02/26/facebook-friends-graph-v0-2-deb-and-rpm-packages-for-ubuntu-and-fedora">Permalink</a> |
<a href="http://inspirated.com/2010/02/26/facebook-friends-graph-v0-2-deb-and-rpm-packages-for-ubuntu-and-fedora#comments">3 comments</a>
<br/>
Post tags: <a href="http://inspirated.com/tag/code" rel="tag">Code</a>, <a href="http://inspirated.com/tag/deb" rel="tag">Deb</a>, <a href="http://inspirated.com/tag/facebook" rel="tag">Facebook</a>, <a href="http://inspirated.com/tag/facebook-friends-graph" rel="tag">Facebook Friends Graph</a>, <a href="http://inspirated.com/tag/friends" rel="tag">Friends</a>, <a href="http://inspirated.com/tag/graph" rel="tag">Graph</a>, <a href="http://inspirated.com/tag/graphics" rel="tag">Graphics</a>, <a href="http://inspirated.com/tag/internet" rel="tag">Internet</a>, <a href="http://inspirated.com/tag/open-source" rel="tag">Open Source</a>, <a href="http://inspirated.com/tag/pyfacebook" rel="tag">PyFacebook</a>, <a href="http://inspirated.com/tag/python" rel="tag">Python</a>, <a href="http://inspirated.com/tag/social-networking" rel="tag">Social Networking</a>, <a href="http://inspirated.com/tag/statistics" rel="tag">Statistics</a>, <a href="http://inspirated.com/tag/technology" rel="tag">Technology</a>, <a href="http://inspirated.com/tag/ubuntu" rel="tag">Ubuntu</a>, <a href="http://inspirated.com/tag/web-20" rel="tag">Web 2.0</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://inspirated.com/2010/02/26/facebook-friends-graph-v0-2-deb-and-rpm-packages-for-ubuntu-and-fedora/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Facebook Friends Graph on Ubuntu</title>
		<link>http://inspirated.com/2010/02/19/facebook-friends-graph-on-ubuntu</link>
		<comments>http://inspirated.com/2010/02/19/facebook-friends-graph-on-ubuntu#comments</comments>
		<pubDate>Thu, 18 Feb 2010 19:04:06 +0000</pubDate>
		<dc:creator>krkhan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Deb]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Friends Graph]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PyFacebook]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://inspirated.com/?p=264</guid>
		<description><![CDATA[I never really thought anyone other than me would be interested in seeing gargantuan graphs of their friends&#8217; connections until I found out through this post on the OMG! Ubuntu! blog that my application was included in the GetDeb repository for Ubuntu users. I have not used Ubuntu myself since about never, but apparently you [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I never really thought anyone other than me would be interested in seeing gargantuan graphs of their friends&#8217; connections until I found out through <a href="http://www.omgubuntu.co.uk/2010/02/facebook-friend-graph-plots-connections.html">this post</a> on the <em>OMG! Ubuntu!</em> blog that my application was included in the <em>GetDeb</em> repository for Ubuntu users. I have not used Ubuntu myself since about never, but apparently you can now install the application on Karmic Koala with just a few clicks.</p>
<p><ins datetime="2010-03-7T21:07:18+00:00">Edit: I have now tested the installation on Karmic myself and can guarantee that it indeed works without any fuss. Gotta love Launchpad/Ubuntu.</ins></p>
<p>The application itself was in a pretty much skeletal state of being so I was a little taken aback by the exposure. Nevertheless, I was reminded of the famous aphorism apropos of open source development:</p>
<blockquote><p>&#8220;Release early, release often.&#8221; &#8212; <em>Linus Torvalds</em></p></blockquote>
<p>And indeed, the <a href="https://bugs.launchpad.net/fbfriendsgraph">bug reports</a> that came from users were a valuable byproduct of the Ubuntu push as I had stopped development on the script after it started working fine for me.</p>
<div class="shr-publisher-264"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><hr />
<p><small><a href="http://inspirated.com/2010/02/19/facebook-friends-graph-on-ubuntu">Permalink</a> |
<a href="http://inspirated.com/2010/02/19/facebook-friends-graph-on-ubuntu#comments">No comment</a>
<br/>
Post tags: <a href="http://inspirated.com/tag/code" rel="tag">Code</a>, <a href="http://inspirated.com/tag/deb" rel="tag">Deb</a>, <a href="http://inspirated.com/tag/facebook" rel="tag">Facebook</a>, <a href="http://inspirated.com/tag/facebook-friends-graph" rel="tag">Facebook Friends Graph</a>, <a href="http://inspirated.com/tag/friends" rel="tag">Friends</a>, <a href="http://inspirated.com/tag/graph" rel="tag">Graph</a>, <a href="http://inspirated.com/tag/graphics" rel="tag">Graphics</a>, <a href="http://inspirated.com/tag/internet" rel="tag">Internet</a>, <a href="http://inspirated.com/tag/open-source" rel="tag">Open Source</a>, <a href="http://inspirated.com/tag/pyfacebook" rel="tag">PyFacebook</a>, <a href="http://inspirated.com/tag/python" rel="tag">Python</a>, <a href="http://inspirated.com/tag/social-networking" rel="tag">Social Networking</a>, <a href="http://inspirated.com/tag/statistics" rel="tag">Statistics</a>, <a href="http://inspirated.com/tag/technology" rel="tag">Technology</a>, <a href="http://inspirated.com/tag/ubuntu" rel="tag">Ubuntu</a>, <a href="http://inspirated.com/tag/web-20" rel="tag">Web 2.0</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://inspirated.com/2010/02/19/facebook-friends-graph-on-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Friends Graph v0.1</title>
		<link>http://inspirated.com/2009/11/21/facebook-friends-graph-v0-1</link>
		<comments>http://inspirated.com/2009/11/21/facebook-friends-graph-v0-1#comments</comments>
		<pubDate>Fri, 20 Nov 2009 19:01:55 +0000</pubDate>
		<dc:creator>krkhan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Friends Graph]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PyFacebook]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://inspirated.com/?p=253</guid>
		<description><![CDATA[The motivation behind obsession with these manically large graphs is explained in this previous post of mine. The current post&#8217;s purpose is to instead link to the (finally) working code for generating the graphs. I have created a project page at Launchpad for this little application. The trunk contains the most recent code, which is [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The motivation behind obsession with these manically large graphs is explained in <a href="http://inspirated.com/2009/09/26/facebook-friends-graph-plotting-your-social-network-together">this</a> previous post of mine. The current post&#8217;s purpose is to instead link to the (finally) working code for generating the graphs. I have created a <a href="https://launchpad.net/fbfriendsgraph" title="Facebook Friends Graph">project page</a> at Launchpad for this little application. The <a href="https://code.launchpad.net/~inspirated/fbfriendsgraph/trunk">trunk</a> contains the most recent code, which is still in its nascent form but works pretty well given an installation of <code>PyGTK</code>, <code>Python GtkMozembed</code> and <code>pydot</code>. I might port the application to Windoze in future provided I get the time for it.</p>
<p>Starting with the tradition of linking to Inspirated Code subsection, latest updates about the application shall be posted on <a href="http://code.inspirated.com/pygtk/fbfriendsgraph/" title="Facebook Friends Graph">this</a> page.</p>
<p>And as is the custom, the image itself:</p>
<p style="text-align: center; font-size: x-small"><a href="http://technoment.com/uploads/friends-0.1.png"><img src="http://inspirated.com/uploads/friends-0.1-thumb.jpg" alt="Facebook Friends Graph" /></a><br />
(Click on the thumbnail for larger version.)<br />
(Warning: The larger version is a gigantic 32 MB PNG image with a resolution of <code>16517x13808</code> (even larger than the last time). If you want to view it, I recommend downloading it to your hard-disk first and then opening it outside your web browser.)</p>
<div class="shr-publisher-253"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><hr />
<p><small><a href="http://inspirated.com/2009/11/21/facebook-friends-graph-v0-1">Permalink</a> |
<a href="http://inspirated.com/2009/11/21/facebook-friends-graph-v0-1#comments">3 comments</a>
<br/>
Post tags: <a href="http://inspirated.com/tag/code" rel="tag">Code</a>, <a href="http://inspirated.com/tag/facebook" rel="tag">Facebook</a>, <a href="http://inspirated.com/tag/facebook-friends-graph" rel="tag">Facebook Friends Graph</a>, <a href="http://inspirated.com/tag/friends" rel="tag">Friends</a>, <a href="http://inspirated.com/tag/graph" rel="tag">Graph</a>, <a href="http://inspirated.com/tag/graphics" rel="tag">Graphics</a>, <a href="http://inspirated.com/tag/internet" rel="tag">Internet</a>, <a href="http://inspirated.com/tag/open-source" rel="tag">Open Source</a>, <a href="http://inspirated.com/tag/pyfacebook" rel="tag">PyFacebook</a>, <a href="http://inspirated.com/tag/python" rel="tag">Python</a>, <a href="http://inspirated.com/tag/social-networking" rel="tag">Social Networking</a>, <a href="http://inspirated.com/tag/statistics" rel="tag">Statistics</a>, <a href="http://inspirated.com/tag/technology" rel="tag">Technology</a>, <a href="http://inspirated.com/tag/web-20" rel="tag">Web 2.0</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://inspirated.com/2009/11/21/facebook-friends-graph-v0-1/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Facebook Friends Graph &#8212; Plotting your social network together</title>
		<link>http://inspirated.com/2009/09/26/facebook-friends-graph-plotting-your-social-network-together</link>
		<comments>http://inspirated.com/2009/09/26/facebook-friends-graph-plotting-your-social-network-together#comments</comments>
		<pubDate>Sat, 26 Sep 2009 10:58:07 +0000</pubDate>
		<dc:creator>krkhan</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Facebook Friends Graph]]></category>
		<category><![CDATA[Friends]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PyFacebook]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://inspirated.com/?p=244</guid>
		<description><![CDATA[Update: New version While visiting profile of a friend, I noticed that he and I had about 70 mutual friends. Immediately it gave me the idea to plot the common friend connections and see what interesting patterns emerge in the larger picture. Something like this: In the sample above, the names in circles (&#8220;nodes&#8221;) happen [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><ins datetime="2009-11-20T06:59:45+00:00">Update: <a href="http://inspirated.com/2009/11/21/facebook-friends-graph-v0-1">New version</a></ins></p>
<p>While visiting profile of a friend, I noticed that he and I had about 70 mutual friends. Immediately it gave me the idea to plot the common friend connections and see what interesting patterns emerge in the larger picture. Something like this:</p>
<p style="text-align: center; font-size: x-small"><img src="http://inspirated.com/uploads/friends-sample.jpg" alt="Facebook Friends' Graph Sample" /></p>
<p>In the sample above, the names in circles (&#8220;nodes&#8221;) happen to be in my friend list. The connecting lines represent their own friendship status. For example, <em>Saad Jasra</em> and <em>Hassan Ahmad</em> are friends among themselves apart from being my friends on their own. Similarly, <em>Ali Zeeshan Ijaz</em> is a friend of both <em>Saad Jasra</em> and <em>Abdullah Afaq Ali</em>.</p>
<p>Luckily, Facebook API had <a href="http://wiki.developers.facebook.com/index.php/PythonPyFacebookTutorial">Python bindings</a> available which considerably simplified my task. Those, coupled with <a href="http://code.google.com/p/pydot/">pydot</a>, resulted in a <code>dot</code> file with all the required connections. <a href="http://www.graphviz.org/">Graphviz</a> did the remaining work:</p>
<p style="text-align: center; font-size: x-small"><a href="http://technoment.com/uploads/friends.png"><img src="http://inspirated.com/uploads/friends-small.jpg" alt="Facebook Friends' Graph" /></a><br />
(Click on the thumbnail for larger version.)<br />
(Warning: The larger version is a <code>7329x5953</code> PNG image with a <em>humongous</em> file size of 13 MB. If your hardware specs are squeamish, don&#8217;t blame me if it brings your machine on its knees &#8212; this is not a DoS attack.)</p>
<p>Now came the intriguing part. The resulting graph was visibly split in two large portions. This resulted from the fact that I had spent a major portion of my life (15 years to be exact) in Saudi Arabia before moving to Pakistan. More interestingly, an old friend of mine from Saudi Arabia &#8212; <em>Atif Sheikh</em> &#8212; was also enrolled at my university in Pakistan. When I zoomed into the graph, I spotted him at the <em>nexus</em> of two networks. Similarly, the names in the middle of a network were the most connected people in <em>that</em> network. That is, the names congested in the middle of Pakistan network were friends from university and the names at the edges of that network were friends outside the university who didn&#8217;t share my academic connections.</p>
<p>I haven&#8217;t polished the code for a stable release yet as I doubt that other people would be interested in having gigantic plots of their social lives. Nevertheless, I&#8217;ll try to package it in form of a proper Facebook application in near future. After all, as I quoted in a <a href="http://inspirated.com/2009/05/17/inbox-stats-v10-because-graphs-speak-louder-than-numbers">previous</a> post of mine:</p>
<blockquote><p>&#8220;Statistics are like a bikini. What they reveal is suggestive, but what they conceal is vital.&#8221;</p></blockquote>
<div class="shr-publisher-244"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><hr />
<p><small><a href="http://inspirated.com/2009/09/26/facebook-friends-graph-plotting-your-social-network-together">Permalink</a> |
<a href="http://inspirated.com/2009/09/26/facebook-friends-graph-plotting-your-social-network-together#comments">6 comments</a>
<br/>
Post tags: <a href="http://inspirated.com/tag/facebook" rel="tag">Facebook</a>, <a href="http://inspirated.com/tag/facebook-friends-graph" rel="tag">Facebook Friends Graph</a>, <a href="http://inspirated.com/tag/friends" rel="tag">Friends</a>, <a href="http://inspirated.com/tag/graph" rel="tag">Graph</a>, <a href="http://inspirated.com/tag/graphics" rel="tag">Graphics</a>, <a href="http://inspirated.com/tag/internet" rel="tag">Internet</a>, <a href="http://inspirated.com/tag/open-source" rel="tag">Open Source</a>, <a href="http://inspirated.com/tag/pyfacebook" rel="tag">PyFacebook</a>, <a href="http://inspirated.com/tag/python" rel="tag">Python</a>, <a href="http://inspirated.com/tag/social-networking" rel="tag">Social Networking</a>, <a href="http://inspirated.com/tag/statistics" rel="tag">Statistics</a>, <a href="http://inspirated.com/tag/technology" rel="tag">Technology</a>, <a href="http://inspirated.com/tag/web-20" rel="tag">Web 2.0</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://inspirated.com/2009/09/26/facebook-friends-graph-plotting-your-social-network-together/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.393 seconds -->

