<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Facebook API Question: Access of Friend Photos?</title>
	<atom:link href="http://blog.stevepoland.com/facebook-api-question-access-of-friend-photos/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stevepoland.com/facebook-api-question-access-of-friend-photos/</link>
	<description>web entrepreneur &#124; obsessed music fan &#124; b-lo forever!</description>
	<lastBuildDate>Fri, 25 Jun 2010 14:32:45 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John</title>
		<link>http://blog.stevepoland.com/facebook-api-question-access-of-friend-photos/comment-page-1/#comment-1340</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 25 Apr 2008 19:08:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevepoland.com/?p=324#comment-1340</guid>
		<description>ya, that&#039;s right

“select aid, cover_pid from album where owner in (friend_id_1, friend_id_2,friend_id_2)”

gets all the albums for those friends.  are you going to show all the albums on one big page?  I would probably use the facebook &lt;a href=&#039;http://wiki.developers.facebook.com/index.php/Fb:friend-selector&#039; rel=&quot;nofollow&quot;&gt;friend selector&lt;/a&gt; to let the user the friend, it refreshes the page with the albums for that friend which the user can drill into to see the photos in that album.

What you you building your app in, php, ruby java?  There are probably some easier ways to do this depending on the api wrapper you&#039;re using.</description>
		<content:encoded><![CDATA[<p>ya, that&#8217;s right</p>
<p>“select aid, cover_pid from album where owner in (friend_id_1, friend_id_2,friend_id_2)”</p>
<p>gets all the albums for those friends.  are you going to show all the albums on one big page?  I would probably use the facebook <a href='http://wiki.developers.facebook.com/index.php/Fb:friend-selector' rel="nofollow" target="_blank">friend selector</a> to let the user the friend, it refreshes the page with the albums for that friend which the user can drill into to see the photos in that album.</p>
<p>What you you building your app in, php, ruby java?  There are probably some easier ways to do this depending on the api wrapper you&#8217;re using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Poland</title>
		<link>http://blog.stevepoland.com/facebook-api-question-access-of-friend-photos/comment-page-1/#comment-1339</link>
		<dc:creator>Steve Poland</dc:creator>
		<pubDate>Fri, 25 Apr 2008 18:20:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevepoland.com/?p=324#comment-1339</guid>
		<description>@John - thx; so with those queries I could &#039;get friends&#039; of a userID, then use that query to grab the photos for each of those friends&#039; userIDs?

And I&#039;m so far removed from SQL, but I could specify all those userIDs in that single SQL query, right?</description>
		<content:encoded><![CDATA[<p>@John &#8211; thx; so with those queries I could &#8216;get friends&#8217; of a userID, then use that query to grab the photos for each of those friends&#8217; userIDs?</p>
<p>And I&#8217;m so far removed from SQL, but I could specify all those userIDs in that single SQL query, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.stevepoland.com/facebook-api-question-access-of-friend-photos/comment-page-1/#comment-1338</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 25 Apr 2008 18:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevepoland.com/?p=324#comment-1338</guid>
		<description>I like to use direct fql queries myself, then you can say the exact data you want back.  To get the photos you&#039;ll probably want to do two calls, one to get the albums for that user and then do a call to get the photos for that album when they drill down.

&quot;select aid, cover_pid from album where owner = FACEBOOK_ID&quot;
gets the albums

&quot;select pid, link, src from photo where aid = ALBUM_ID&quot;
gets the photos for an album

you can probably turn these into a single query if you&#039;d like as well, depending on the api wrapper you&#039;re using there might be an easier way to do this as well.

As to your second question, as far as I know you can&#039;t get the comments for a photo, you can only get the caption the owner has added.

Hope that helps!</description>
		<content:encoded><![CDATA[<p>I like to use direct fql queries myself, then you can say the exact data you want back.  To get the photos you&#8217;ll probably want to do two calls, one to get the albums for that user and then do a call to get the photos for that album when they drill down.</p>
<p>&#8220;select aid, cover_pid from album where owner = FACEBOOK_ID&#8221;<br />
gets the albums</p>
<p>&#8220;select pid, link, src from photo where aid = ALBUM_ID&#8221;<br />
gets the photos for an album</p>
<p>you can probably turn these into a single query if you&#8217;d like as well, depending on the api wrapper you&#8217;re using there might be an easier way to do this as well.</p>
<p>As to your second question, as far as I know you can&#8217;t get the comments for a photo, you can only get the caption the owner has added.</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
