<?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: How to integrate Facebook Connect with a Rails app</title>
	<atom:link href="http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-integrate-facebook-connect-with-a-rails-app</link>
	<description>Life hacker</description>
	<lastBuildDate>Fri, 28 May 2010 12:51:23 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adam</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-471</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Fri, 09 Apr 2010 04:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-471</guid>
		<description>Great tutorial.  

I can login just fine but the problem is that my logout features doesn&#039;t work because @current_user is always nil.

What gives?</description>
		<content:encoded><![CDATA[<p>Great tutorial.  </p>
<p>I can login just fine but the problem is that my logout features doesn&#8217;t work because @current_user is always nil.</p>
<p>What gives?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aashish</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-470</link>
		<dc:creator>aashish</dc:creator>
		<pubDate>Tue, 06 Apr 2010 11:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-470</guid>
		<description>I followed this tutorial to facebook connect rails application. Its a good tutorial. I want know that why fb_id, email_hash is stored. Is it possible to built without storing  fb_id, email_hash.</description>
		<content:encoded><![CDATA[<p>I followed this tutorial to facebook connect rails application. Its a good tutorial. I want know that why fb_id, email_hash is stored. Is it possible to built without storing  fb_id, email_hash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emil</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-465</link>
		<dc:creator>Emil</dc:creator>
		<pubDate>Thu, 04 Mar 2010 20:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-465</guid>
		<description>Hi! I updated my logout code with yours but my facebook session is still valid. I&#039;m a ror newb and don&#039;t know where to start looking for errors. Looking for a pointer in the right directon.</description>
		<content:encoded><![CDATA[<p>Hi! I updated my logout code with yours but my facebook session is still valid. I&#8217;m a ror newb and don&#8217;t know where to start looking for errors. Looking for a pointer in the right directon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jenna</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-455</link>
		<dc:creator>Jenna</dc:creator>
		<pubDate>Wed, 17 Feb 2010 08:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-455</guid>
		<description>Good post. One thing that I noticed on Stuart&#039;s post and yours is that you cannot store the user&#039;s name more than 24h - http://wiki.developers.facebook.com/index.php/Storable_Data</description>
		<content:encoded><![CDATA[<p>Good post. One thing that I noticed on Stuart&#8217;s post and yours is that you cannot store the user&#8217;s name more than 24h &#8211; <a href="http://wiki.developers.facebook.com/index.php/Storable_Data" rel="nofollow">http://wiki.developers.facebook.com/index.php/Storable_Data</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amr N Tamimi</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-217</link>
		<dc:creator>Amr N Tamimi</dc:creator>
		<pubDate>Wed, 14 Oct 2009 21:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-217</guid>
		<description>in the logout link... make it link to the right control destination sessions NOT session...


  &lt;fb:profile-pic uid=&quot;&quot; facebook-logo=&quot;true&quot; size=&quot;thumb&quot; &gt;
   &#124; &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Logout&lt;/a&gt;


I made &quot;end_session&quot; action instead of &quot;destroy&quot;...
in the routes.rb
map.resources :sessions, :collection =&gt; { :end_session =&gt; :get }

Regards!</description>
		<content:encoded><![CDATA[<p>in the logout link&#8230; make it link to the right control destination sessions NOT session&#8230;</p>
<p>  &lt;fb:profile-pic uid=&quot;&#8221; facebook-logo=&#8221;true&#8221; size=&#8221;thumb&#8221; &gt;<br />
   | <a href="#" rel="nofollow">Logout</a></p>
<p>I made &#8220;end_session&#8221; action instead of &#8220;destroy&#8221;&#8230;<br />
in the routes.rb<br />
map.resources :sessions, :collection =&gt; { :end_session =&gt; :get }</p>
<p>Regards!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amr N Tamimi</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-216</link>
		<dc:creator>Amr N Tamimi</dc:creator>
		<pubDate>Wed, 14 Oct 2009 21:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-216</guid>
		<description>sth missing in application_controller : add &quot;:fetch_logged_in_user&quot;
to be 
before_filter :set_facebook_session, :fetch_logged_in_user

and i think destroy actions is a post action. so we cant make a get action on it. I recommend to use another action name instead.

Thanks</description>
		<content:encoded><![CDATA[<p>sth missing in application_controller : add &#8220;:fetch_logged_in_user&#8221;<br />
to be<br />
before_filter :set_facebook_session, :fetch_logged_in_user</p>
<p>and i think destroy actions is a post action. so we cant make a get action on it. I recommend to use another action name instead.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mann</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-149</link>
		<dc:creator>Mann</dc:creator>
		<pubDate>Sat, 03 Oct 2009 09:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-149</guid>
		<description>Hi I am working locally so i didnt specify the name of the site

I follow all the steps specified above ... but I cant see facebook button on the screen ... I cant even see the sentence &quot;login with facebook&quot;.

Is it the browser specific problem .. so that it cant read out the fbml or anyother prob ...</description>
		<content:encoded><![CDATA[<p>Hi I am working locally so i didnt specify the name of the site</p>
<p>I follow all the steps specified above &#8230; but I cant see facebook button on the screen &#8230; I cant even see the sentence &#8220;login with facebook&#8221;.</p>
<p>Is it the browser specific problem .. so that it cant read out the fbml or anyother prob &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yang Chung</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-58</link>
		<dc:creator>Yang Chung</dc:creator>
		<pubDate>Fri, 18 Sep 2009 17:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-58</guid>
		<description>I actually figured it out. You need to configure facebooker.yml before calling a script to generate xd_receiver.html. I fixed my post as well.</description>
		<content:encoded><![CDATA[<p>I actually figured it out. You need to configure facebooker.yml before calling a script to generate xd_receiver.html. I fixed my post as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-21</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Tue, 08 Sep 2009 21:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-21</guid>
		<description>Thanks for the tips on clearing the FB cookies, that was giving me some issues and I was looking for the right things to call.  Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for the tips on clearing the FB cookies, that was giving me some issues and I was looking for the right things to call.  Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yang Chung</title>
		<link>http://blog.yangtheman.com/2009/08/23/how-to-integrate-facebook-connect-with-a-rails-app/comment-page-1/#comment-5</link>
		<dc:creator>Yang Chung</dc:creator>
		<pubDate>Tue, 25 Aug 2009 02:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.yangtheman.com/?p=33#comment-5</guid>
		<description>Hey Law,

Thanks. As long as you have 

1) &lt;code&gt;&lt;%= fb_connect_javascript_tag %&gt;&lt;/code&gt; and 
&lt;code&gt;&lt;%= init_fb_connect &quot;XFBML&quot;%&gt;&lt;/code&gt; in &lt;strong&gt;app/views/layouts/application.html.erb&lt;/strong&gt;
 after &lt;code&gt;body&lt;/code&gt; tag and before &lt;code&gt;&lt;%= yield %&gt;&lt;/code&gt;, and 

2) &quot;&lt;code&gt;before_filter :set_facebook_session&lt;/code&gt;&quot; and &quot;&lt;code&gt;helper_method :facebook_session&lt;/code&gt;&quot; in &lt;strong&gt;ApplicationController&lt;/strong&gt;, 

you should at least see the button. Perhaps you can double check?

Also you probably want to make sure you have the following line in the &lt;strong&gt;header&lt;/strong&gt; section in the &lt;strong&gt;app/views/layouts/application.html.erb.&lt;/strong&gt;

&lt;code&gt;&lt;%= javascript_include_tag :defaults%&gt;&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>Hey Law,</p>
<p>Thanks. As long as you have </p>
<p>1) <code>< %= fb_connect_javascript_tag %></code> and<br />
<code>< %= init_fb_connect "XFBML"%></code> in <strong>app/views/layouts/application.html.erb</strong><br />
 after <code>body</code> tag and before <code>< %= yield %></code>, and </p>
<p>2) &#8220;<code>before_filter :set_facebook_session</code>&#8221; and &#8220;<code>helper_method :facebook_session</code>&#8221; in <strong>ApplicationController</strong>, </p>
<p>you should at least see the button. Perhaps you can double check?</p>
<p>Also you probably want to make sure you have the following line in the <strong>header</strong> section in the <strong>app/views/layouts/application.html.erb.</strong></p>
<p><code>< %= javascript_include_tag :defaults%></code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
