<?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>Ali Qureshi&#039;s Blog &#187; Facebook Applications</title>
	<atom:link href="http://www.parorrey.com/blog/tag/facebook-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.parorrey.com/blog</link>
	<description>random bits on web development</description>
	<lastBuildDate>Tue, 07 Sep 2010 10:17:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://www.parorrey.com/blog/?pushpress=hub'/>
		<item>
		<title>How to fix broken Facebook sample application &#8216;footprints&#8217;</title>
		<link>http://www.parorrey.com/blog/php-development/how-to-fix-broken-facebook-sample-application-footprints/</link>
		<comments>http://www.parorrey.com/blog/php-development/how-to-fix-broken-facebook-sample-application-footprints/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 11:50:24 +0000</pubDate>
		<dc:creator>Ali</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Facebook Applications]]></category>
		<category><![CDATA[footprints]]></category>

		<guid isPermaLink="false">http://www.parorrey.com/blog/?p=64</guid>
		<description><![CDATA[So out of curiosity or some Facebook application development prospect forced you today to check on a Facebook application and which brought you here to this blog post. After signing up for Facebook Apps and downloading facebook-platform.tar.gz, you find a sample application named ‘footprints’ inside it. Footprints App is kinda ‘Hello World’ of Facebook applications. [...]


Related posts:<ol><li><a href='http://www.parorrey.com/blog/facebook-apps-development/graph-api-authorization-oauth-2-0-replacing-require-login/' rel='bookmark' title='Permanent Link: Facebook Graph API authentication OAuth 2.0 replacing Require Login'>Facebook Graph API authentication OAuth 2.0 replacing Require Login</a></li>
<li><a href='http://www.parorrey.com/blog/facebook-apps-development/facebook-requires-every-developer-to-verify-his-facebook-account-to-create-new-applications/' rel='bookmark' title='Permanent Link: Facebook requires every developer to verify his Facebook account to create new applications'>Facebook requires every developer to verify his Facebook account to create new applications</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.parorrey.com%2Fblog%2Fphp-development%2Fhow-to-fix-broken-facebook-sample-application-footprints%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.parorrey.com%2Fblog%2Fphp-development%2Fhow-to-fix-broken-facebook-sample-application-footprints%2F&amp;source=parorrey&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>So out of curiosity or some <strong>Facebook </strong>application development prospect  forced you today to check on a Facebook application and which brought you here to  this blog post.</p>
<p>After signing up for Facebook Apps and  downloading facebook-platform.tar.gz, you find a sample application named ‘<strong>footprints’</strong> inside it. <strong>Footprints App</strong> is kinda ‘Hello World’  of Facebook applications. </p>
<p> You uncompress the facebook-platform.tar.gz  file and follow instructions available in the README file.You are required to do a number of steps before  seeing your FB App ‘Hello World’:</p>
<ul>
<li>Setup the DB information in the  config.php file, </li>
<li>Create the required table in your DB as described by config.php </li>
<li>get the app registered on  Develop Page, </li>
<li>Setup application name, get API  Key and Secret key </li>
<li>Add these keys in the  config.php file </li>
<li>Upload the whole directory on your  online server, </li>
<li>Open your FB Developer’s page,  select your demo application,  and click &#8216;Edit  Settings&#8217;, add <strong>Canvas Page URL</strong> on Facebook for your application, and add <strong>Canvas Callback URL</strong> (where you  uploaded your application) on <strong>Canvas  page</strong>. </li>
</ul>
<p>Now  to view your application, you open this http://apps.facebook.com/your-footprints/  where <strong>your-footprints</strong> is what you defined in the Canvas Page URL.</p>
<p>Pretty cool, isn’t it? Yeah right as long  as you don’t type in your friend’s name and click ‘step’.</p>
<p>This is the warning message on line 52 and  a fatal error on line 58 as soon as you hit ‘step’</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">&quot;Warning: Missing  argument 3 for FacebookRestClient::notifications_send()&quot;</span>
<span style="color: #0000ff;">&quot;Fatal error: Call to  undefined method FacebookRestClient::feed_publishActionOfUser&quot;</span></pre></div></div>

<p>To remove this warning and fatal  error, follow these steps:</p>
<p>Just add a third argument (any string would do) in function <strong>notifications_send()</strong> call. Just add this on line 52 in <strong>lib.php</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #0000ff;">'&lt;a href=&quot;http://apps.facebook.com/fc-footprints/&quot;&gt;See all your Footprints&lt;/a&gt;.'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'your_app_name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>In the same lib.php file, on line 58, replace function <strong>feed_publishActionOfUser</strong> with <strong>feed_publishUserAction </strong>which is defined in facebookapi_php5_restlib.php </pre>
</p>
<p>And by the way, don't forget  to change this URL <strong>http://apps.facebook.com/footprints/</strong> in lib.php on several places to your own application's url e.g. http://apps.facebook.com/your-footprints/ </p>
<p>I hope that helps. </p>
<p>Cheers!</p>
<div style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;;">
										<iframe
											style="height:25px !important; border:none !important; overflow:hidden !important; width:340px !important;" frameborder="0" scrolling="no" allowTransparency="true"
											src="http://www.linksalpha.com/social?link=http%3A%2F%2Fwww.parorrey.com%2Fblog%2Fphp-development%2Fhow-to-fix-broken-facebook-sample-application-footprints%2F&fc=333333&fs=arial&fblname=like">
										</iframe>
										</div>

<p>Related posts:<ol><li><a href='http://www.parorrey.com/blog/facebook-apps-development/graph-api-authorization-oauth-2-0-replacing-require-login/' rel='bookmark' title='Permanent Link: Facebook Graph API authentication OAuth 2.0 replacing Require Login'>Facebook Graph API authentication OAuth 2.0 replacing Require Login</a></li>
<li><a href='http://www.parorrey.com/blog/facebook-apps-development/facebook-requires-every-developer-to-verify-his-facebook-account-to-create-new-applications/' rel='bookmark' title='Permanent Link: Facebook requires every developer to verify his Facebook account to create new applications'>Facebook requires every developer to verify his Facebook account to create new applications</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.parorrey.com/blog/php-development/how-to-fix-broken-facebook-sample-application-footprints/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
