<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: The how and why of my streamlined Rails Facebook library</title>
	<atom:link href="http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/</link>
	<description>Old dogs, new tricks</description>
	<lastBuildDate>Sun, 30 Aug 2009 07:39:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mazz Yon</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-142</link>
		<dc:creator>Mazz Yon</dc:creator>
		<pubDate>Fri, 30 Jan 2009 10:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-142</guid>
		<description>Hi, 

I&#039;m using ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32].

I&#039;m trying to test unit facebook_utilities.rb.
	
Hopefully you are willing to help me. Here is the error message:

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require&#039;: C:/eclipse/Data/test2/lib/facebook_utilities.rb:213: syntax error, unexpected $end, expecting kEND (SyntaxError)
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:262:in `require_or_load&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:427:in `load_missing_constant&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in `const_missing&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in `const_missing&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:439:in `load_missing_constant&#039;
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:93:in `const_missing&#039;
	from ./test\unit\facebook_utilities_test.rb:335
	from C:/eclipse/Data/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:302:in `require&#039;
	from C:/eclipse/Data/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:302</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I&#8217;m using ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32].</p>
<p>I&#8217;m trying to test unit facebook_utilities.rb.</p>
<p>Hopefully you are willing to help me. Here is the error message:</p>
<p>c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require&#8217;: C:/eclipse/Data/test2/lib/facebook_utilities.rb:213: syntax error, unexpected $end, expecting kEND (SyntaxError)<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in `require&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:262:in `require_or_load&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:427:in `load_missing_constant&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in `const_missing&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in `const_missing&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:439:in `load_missing_constant&#8217;<br />
	from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:93:in `const_missing&#8217;<br />
	from ./test\unit\facebook_utilities_test.rb:335<br />
	from C:/eclipse/Data/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:302:in `require&#8217;<br />
	from C:/eclipse/Data/.metadata/.plugins/org.rubypeople.rdt.testunit/ruby/RemoteTestRunner.rb:302</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Facebook templates made easy with Rails 2.0 custom Mime types &#171; Pushrod</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-101</link>
		<dc:creator>Facebook templates made easy with Rails 2.0 custom Mime types &#171; Pushrod</dc:creator>
		<pubDate>Sun, 13 Apr 2008 15:48:55 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-101</guid>
		<description>[...] written elsewhere about how I used my own lightweight library to add Facebook functionality to Autopendium :Stuff About Old Cars, the classic car community website I [...]</description>
		<content:encoded><![CDATA[<p>[...] written elsewhere about how I used my own lightweight library to add Facebook functionality to Autopendium :Stuff About Old Cars, the classic car community website I [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: autopendium</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-68</link>
		<dc:creator>autopendium</dc:creator>
		<pubDate>Fri, 15 Feb 2008 19:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-68</guid>
		<description>Sorry for the delay in replying. Somehow missed the comment notification and been wrapped up in other stuff.

No, you don&#039;t need to parse the XML, it&#039;s automatically parsed by XMLSImple into a hash, with the object types as keys, e.g &quot;members&quot;.

See Line 188 of the test suite:
#test_should_call_facebook_with_given_method_and_params_and_return_parsed_xml_response_from_calling_facebook_method</description>
		<content:encoded><![CDATA[<p>Sorry for the delay in replying. Somehow missed the comment notification and been wrapped up in other stuff.</p>
<p>No, you don&#8217;t need to parse the XML, it&#8217;s automatically parsed by XMLSImple into a hash, with the object types as keys, e.g &#8220;members&#8221;.</p>
<p>See Line 188 of the test suite:<br />
#test_should_call_facebook_with_given_method_and_params_and_return_parsed_xml_response_from_calling_facebook_method</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garth</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-66</link>
		<dc:creator>Garth</dc:creator>
		<pubDate>Sun, 10 Feb 2008 20:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-66</guid>
		<description>Thanks for the reply.  I presume I need to parse the XML I get back from the call to get the UIDs?  I&#039;m using your library to power a Merb application rather than a Rails one.  Thanks for writing this piece of code.</description>
		<content:encoded><![CDATA[<p>Thanks for the reply.  I presume I need to parse the XML I get back from the call to get the UIDs?  I&#8217;m using your library to power a Merb application rather than a Rails one.  Thanks for writing this piece of code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: autopendium</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-65</link>
		<dc:creator>autopendium</dc:creator>
		<pubDate>Fri, 08 Feb 2008 15:35:36 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-65</guid>
		<description>The Facebook call for getting the friends of the session user is friends.get (see http://wiki.developers.facebook.com/index.php/Friends.get), so using this library you should use facebook.fb_friends_get (where facebook is the session object)</description>
		<content:encoded><![CDATA[<p>The Facebook call for getting the friends of the session user is friends.get (see <a href="http://wiki.developers.facebook.com/index.php/Friends.get)" rel="nofollow">http://wiki.developers.facebook.com/index.php/Friends.get)</a>, so using this library you should use facebook.fb_friends_get (where facebook is the session object)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garth</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-64</link>
		<dc:creator>Garth</dc:creator>
		<pubDate>Fri, 08 Feb 2008 11:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-64</guid>
		<description>I&#039;d like to get a list of friends.  I thought facebook.friends would allow me to do this but it doesn&#039;t work.  Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to get a list of friends.  I thought facebook.friends would allow me to do this but it doesn&#8217;t work.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A RubyonRails library for the ebay shopping API &#171; Pushrod</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-56</link>
		<dc:creator>A RubyonRails library for the ebay shopping API &#171; Pushrod</dc:creator>
		<pubDate>Sun, 13 Jan 2008 17:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-56</guid>
		<description>[...] 13, 2008   After the lightweight Facebook library I wrote to scratch my own itch, a couple of days ago I started to look at adding ebay items to [...]</description>
		<content:encoded><![CDATA[<p>[...] 13, 2008   After the lightweight Facebook library I wrote to scratch my own itch, a couple of days ago I started to look at adding ebay items to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: autopendium</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-43</link>
		<dc:creator>autopendium</dc:creator>
		<pubDate>Tue, 27 Nov 2007 20:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-43</guid>
		<description>Lenny
No, that&#039;s not the case at all. The app I initially wrote it for is Autopendium (http://autopendium.com) which is mainly outside of Facebook.

It&#039;s partly why I needed a more flexible library, because the existing ones assumed that you lived wholly within Facebook.

If you want, I can explain how I&#039;ve tied up the Facebook users and other users together (and for that you do need to go through the whole auth_token stuff).

Glad you&#039;ve got your app working though. Like the sound of it. Logged in OK, but when I skipped the adding friends bit it tried to redirect me to http://apps.facebook.com/things/invite and raised an error</description>
		<content:encoded><![CDATA[<p>Lenny<br />
No, that&#8217;s not the case at all. The app I initially wrote it for is Autopendium (<a href="http://autopendium.com" rel="nofollow">http://autopendium.com</a>) which is mainly outside of Facebook.</p>
<p>It&#8217;s partly why I needed a more flexible library, because the existing ones assumed that you lived wholly within Facebook.</p>
<p>If you want, I can explain how I&#8217;ve tied up the Facebook users and other users together (and for that you do need to go through the whole auth_token stuff).</p>
<p>Glad you&#8217;ve got your app working though. Like the sound of it. Logged in OK, but when I skipped the adding friends bit it tried to redirect me to <a href="http://apps.facebook.com/things/invite" rel="nofollow">http://apps.facebook.com/things/invite</a> and raised an error</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lenny</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-42</link>
		<dc:creator>Lenny</dc:creator>
		<pubDate>Tue, 27 Nov 2007 18:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-42</guid>
		<description>Hi Chris,

I guess the issue is that your library, while most excellent, is built only for apps that live entirely within Facebook. Fair enough. In fact, it&#039;s encouraged me to make my app live entirely within FB, and use some of their mock AJaX. If you want to see it in action, it&#039;s at http://apps.facebook.com/gimmmee/, and I couldn&#039;t have built it without you.

Thanks again,

Lenny</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>I guess the issue is that your library, while most excellent, is built only for apps that live entirely within Facebook. Fair enough. In fact, it&#8217;s encouraged me to make my app live entirely within FB, and use some of their mock AJaX. If you want to see it in action, it&#8217;s at <a href="http://apps.facebook.com/gimmmee/" rel="nofollow">http://apps.facebook.com/gimmmee/</a>, and I couldn&#8217;t have built it without you.</p>
<p>Thanks again,</p>
<p>Lenny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: autopendium</title>
		<link>http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-38</link>
		<dc:creator>autopendium</dc:creator>
		<pubDate>Sun, 25 Nov 2007 16:26:18 +0000</pubDate>
		<guid isPermaLink="false">http://pushrod.wordpress.com/2007/08/15/the-how-and-why-of-my-streamlined-rails-facebook-library/#comment-38</guid>
		<description>OK. I&#039;ve set up a basic hello world app using an iframe and I&#039;m unable to reproduce the errors. Here&#039;s how I&#039;ve got the app set up so you can see how your basic setup  differs.

-- Basic rails app. 
-- Single controller (DummyController):

class DummyController &lt; ApplicationController
  def index
    @user = facebook.user
  end
end

The index template is a single line:
Hello 

-- ApplicationController includes Facebook controller methods:

class ApplicationController &lt; ActionController::Base
  include FacebookUtilities::ControllerUtilities
end

The Facebook application (ct_qwiktest) is set up to use an iframe:
Callback Url: http://localhost:3000/dummy

and the index action is accessed via this URL:
http://apps.facebook.com/ct_qwiktest/

If I add a filter to the dummy controller:
  before_filter :require_logged_in_to_fb_app
it redirects me to to app&#039;s login page. Agreeing to login then allows the index page to render Hello XXXXX where XXXX is my facebook uid.

If I change the filter to be :require_added_fb_app instead I get redirect to a page asking me if I want to add the application with a series of check boxes to specify what it should be able to do (i.e. permissions).

I don&#039;t get into the whole auth_token stuff because at all times I&#039;m staying within the Facebook frame (whether iframe or canvas). I only need the auth_token for an outside page that isn&#039;t render within the confines of the facebook frame -- e.g. if I navigate to http://localhost:3000/dummy

Not sure if this helps, but hopefully it will.</description>
		<content:encoded><![CDATA[<p>OK. I&#8217;ve set up a basic hello world app using an iframe and I&#8217;m unable to reproduce the errors. Here&#8217;s how I&#8217;ve got the app set up so you can see how your basic setup  differs.</p>
<p>&#8211; Basic rails app.<br />
&#8211; Single controller (DummyController):</p>
<p>class DummyController &lt; ApplicationController<br />
  def index<br />
    @user = facebook.user<br />
  end<br />
end</p>
<p>The index template is a single line:<br />
Hello </p>
<p>&#8211; ApplicationController includes Facebook controller methods:</p>
<p>class ApplicationController &lt; ActionController::Base<br />
  include FacebookUtilities::ControllerUtilities<br />
end</p>
<p>The Facebook application (ct_qwiktest) is set up to use an iframe:<br />
Callback Url: <a href="http://localhost:3000/dummy" rel="nofollow">http://localhost:3000/dummy</a></p>
<p>and the index action is accessed via this URL:<br />
<a href="http://apps.facebook.com/ct_qwiktest/" rel="nofollow">http://apps.facebook.com/ct_qwiktest/</a></p>
<p>If I add a filter to the dummy controller:<br />
  before_filter :require_logged_in_to_fb_app<br />
it redirects me to to app&#8217;s login page. Agreeing to login then allows the index page to render Hello XXXXX where XXXX is my facebook uid.</p>
<p>If I change the filter to be :require_added_fb_app instead I get redirect to a page asking me if I want to add the application with a series of check boxes to specify what it should be able to do (i.e. permissions).</p>
<p>I don&#8217;t get into the whole auth_token stuff because at all times I&#8217;m staying within the Facebook frame (whether iframe or canvas). I only need the auth_token for an outside page that isn&#8217;t render within the confines of the facebook frame &#8212; e.g. if I navigate to <a href="http://localhost:3000/dummy" rel="nofollow">http://localhost:3000/dummy</a></p>
<p>Not sure if this helps, but hopefully it will.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
