<?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>define: Jared Barden &#187; Facebook</title>
	<atom:link href="http://www.jaredbarden.com/blog/categories/facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaredbarden.com</link>
	<description>the ramblings of a Web Geek</description>
	<lastBuildDate>Sat, 26 Jun 2010 23:08:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Church of the New Covenant Sermons</title>
		<link>http://www.jaredbarden.com/2009/01/11/church-of-the-new-covenant-sermons/</link>
		<comments>http://www.jaredbarden.com/2009/01/11/church-of-the-new-covenant-sermons/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 03:13:08 +0000</pubDate>
		<dc:creator>Jared Barden</dc:creator>
				<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://www.jaredbarden.com/2009/01/11/church-of-the-new-covenant-sermons/</guid>
		<description><![CDATA[Speaking of my church, I also wrote a Facebook App for them to play our most recent sermons. Check it out at http://apps.facebook.com/cncsermons/.]]></description>
			<content:encoded><![CDATA[<p>Speaking of my church, I also wrote a Facebook App for them to play our most recent sermons.</p>
<p>Check it out at <a href="http://apps.facebook.com/cncsermons/">http://apps.facebook.com/cncsermons/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredbarden.com/2009/01/11/church-of-the-new-covenant-sermons/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Erin Murray Music</title>
		<link>http://www.jaredbarden.com/2009/01/11/erin-murray-music/</link>
		<comments>http://www.jaredbarden.com/2009/01/11/erin-murray-music/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 03:12:00 +0000</pubDate>
		<dc:creator>Jared Barden</dc:creator>
				<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://www.jaredbarden.com/2009/01/11/erin-murray-music/</guid>
		<description><![CDATA[An old friend of mine, Erin Murray, is an amazing singer. Erin is the daughter of one of our former pastor&#8217;s. I was playing around writing a Facebook App to play the most recent sermons from our church, and figured she needed an app for her music, which was on MySpace, but not Facebook. Check]]></description>
			<content:encoded><![CDATA[<p>An old friend of mine, Erin Murray, is an amazing singer. Erin is the daughter of one of our former pastor&#8217;s. I was playing around writing a Facebook App to play the most recent sermons from our church, and figured she needed an app for her music, which was on <a href="http://www.myspace.com/erinmurraymusic/">MySpace</a>, but not Facebook.</p>
<p>Check it out at <a href="http://apps.facebook.com/erinmurray/">http://apps.facebook.com/erinmurray/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredbarden.com/2009/01/11/erin-murray-music/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing a Facebook App</title>
		<link>http://www.jaredbarden.com/2008/12/26/writing-a-facebook-app/</link>
		<comments>http://www.jaredbarden.com/2008/12/26/writing-a-facebook-app/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 17:18:30 +0000</pubDate>
		<dc:creator>Jared Barden</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.jaredbarden.com/blog/2008/writing-a-facebook-app/</guid>
		<description><![CDATA[A while ago, I wrote a Facebook App called &#8220;Simple Friends&#8221; that would display a list of your friends, where you could click their name to view their profile. It was simple enough, but I recently wanted to create a somewhat more sophisticated app. I won&#8217;t bother going through the whole process, because there are]]></description>
			<content:encoded><![CDATA[<p>A while ago, I wrote a Facebook App called &#8220;Simple Friends&#8221; that would display a list of your friends, where you could click their name to view their profile. It was simple enough, but I recently wanted to create a somewhat more sophisticated app.</p>
<p>I won&#8217;t bother going through the whole process, because there are great tutorials out there. I just wanted to share one piece of the puzzle that had me stuck for quite some time.</p>
<p>There is a function called <code>setFBML</code> which allows you to set the content&#8217;s of different sections of the user&#8217;s profile (i.e. get things to show up on their profile page. This was great, because I wanted to make a drop down list of friends to go on the user&#8217;s profile. Selecting a friend from the drop down would take you directly to their page.</p>
<p>I kept getting a message on my profile saying that there was no content available, and the content wouldn&#8217;t be available until my application created the content. I couldn&#8217;t figure this message out for the life of me. After lots of Google searches, I finally found someone who had the solution.</p>
<p>In PHP, the function <code>profile_setFBML()</code> was actually missing a parameter. I tried to update the function with the new parameter, but I couldn&#8217;t get that to work. I was finally able to call the function directly, and it looked something like this&#8230;.</p>
<p><code>$facebook-&gt;api_client-&gt;call_method('facebook.profile.setFBML', array(<br />
'uid' =&gt; $user_id,<br />
'profile' =&gt; $markup,<br />
'profile_main' =&gt; $markup));</code></p>
<p><code>$user_id</code> is the id of the user who has the application installed. <code>profile</code> specifies what will show up if the user adds the application to their &#8220;Boxes&#8221; tab. The real kicker was <code>profile_main</code>, which specifies what should be displayed if the user adds your application to their actual profile page.</p>
<p>Check out my app, Lazy Friends, at <a href="http://apps.facebook.com/lazyfriends/">http://apps.facebook.com/lazyfriends/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredbarden.com/2008/12/26/writing-a-facebook-app/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
