<?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: On the Pain of Developing for Facebook</title>
	<atom:link href="http://lightyearsoftware.com/2009/11/on-the-pain-of-developing-for-facebook/feed/" rel="self" type="application/rss+xml" />
	<link>http://lightyearsoftware.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Flightyearsoftware.com%2F2009%2F11%2Fon-the-pain-of-developing-for-facebook%2F%23comment-&#038;seed_title=On+the+Pain+of+Developing+for+Facebook</link>
	<description></description>
	<lastBuildDate>Tue, 24 Apr 2012 01:21:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mike Judge</title>
		<link>http://lightyearsoftware.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Flightyearsoftware.com%2F2009%2F11%2Fon-the-pain-of-developing-for-facebook%2F%23comment-7703&#038;seed_title=On+the+Pain+of+Developing+for+Facebook/comment-page-1/#comment-7703</link>
		<dc:creator>Mike Judge</dc:creator>
		<pubDate>Sat, 30 Jan 2010 19:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://lightyearsoftware.com/blog/?p=201#comment-7703</guid>
		<description>Thanks for sharing this!  It seems to work great.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing this!  It seems to work great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://lightyearsoftware.com/feeder/?FeederAction=clicked&#038;feed=Comments+on+Articles+%28RSS2%29&#038;seed=http%3A%2F%2Flightyearsoftware.com%2F2009%2F11%2Fon-the-pain-of-developing-for-facebook%2F%23comment-6649&#038;seed_title=On+the+Pain+of+Developing+for+Facebook/comment-page-1/#comment-6649</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 21 Nov 2009 02:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://lightyearsoftware.com/blog/?p=201#comment-6649</guid>
		<description>Hey Thanks for the write up. In regards to the Rack params clobbering I&#039;ve put this in a universal before_filter which allows Rack to construct the session again from the params without needing to comment out any code.


 def format_iframe_params(params)
    if ::Rails.version &gt;= &quot;2.3&quot; and ActionController::Dispatcher.middleware.include? Rack::Facebook

      # Some slight modifications need to be made to these variables are needed to allow
      # the Rack middleware to reconstruct the session.
      params.each_pair do &#124;k,v&#124;
        params[k] = &#039;1&#039; if params[k] == true
        params[k] = &#039;0&#039; if params[k] == false
      end
      params[:fb_sig_expires] = params[:fb_sig_expires].to_i if params.include?(:fb_sig_expires)
      params[:fb_sig_profile_update_time]  = params[:fb_sig_profile_update_time].to_i if params.include?(:fb_sig_profile_update_time)
      params[:fb_sig_time] = params[:fb_sig_time].to_f if params.include?(:fb_sig_time)
    end
    params
  end</description>
		<content:encoded><![CDATA[<p>Hey Thanks for the write up. In regards to the Rack params clobbering I&#8217;ve put this in a universal before_filter which allows Rack to construct the session again from the params without needing to comment out any code.</p>
<p> def format_iframe_params(params)<br />
    if ::Rails.version >= &#8220;2.3&#8243; and ActionController::Dispatcher.middleware.include? Rack::Facebook</p>
<p>      # Some slight modifications need to be made to these variables are needed to allow<br />
      # the Rack middleware to reconstruct the session.<br />
      params.each_pair do |k,v|<br />
        params[k] = &#8217;1&#8242; if params[k] == true<br />
        params[k] = &#8217;0&#8242; if params[k] == false<br />
      end<br />
      params[:fb_sig_expires] = params[:fb_sig_expires].to_i if params.include?(:fb_sig_expires)<br />
      params[:fb_sig_profile_update_time]  = params[:fb_sig_profile_update_time].to_i if params.include?(:fb_sig_profile_update_time)<br />
      params[:fb_sig_time] = params[:fb_sig_time].to_f if params.include?(:fb_sig_time)<br />
    end<br />
    params<br />
  end</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.219 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-21 20:56:29 -->

