<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in Developing Facebook Platform Applications with Rails | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/59/posts</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <item>
      <title>URL Rewriting issue - missing app name from _path and _url posted by Tyler Godfrey @ Tue, 02 Dec 2008 13:31:06 -0000</title>
      <description>&lt;p&gt;Uninstalling just Rails and its immediately associated gems (activeresource, actionpack, etc.) didn&amp;#8217;t work. However, blowing away all of my installed gems and reinstalling them did.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m up and running. Thanks for the help!&lt;/p&gt;</description>
      <pubDate>Tue, 02 Dec 2008 13:31:06 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1483:6531</guid>
      <author>Tyler Godfrey</author>
      <link>http://forums.pragprog.com/forums/59/topics/1483</link>
    </item>
    <item>
      <title>URL Rewriting issue - missing app name from _path and _url posted by Tyler Godfrey @ Tue, 02 Dec 2008 04:10:30 -0000</title>
      <description>&lt;p&gt;When I&amp;#8217;m running the application off of my laptop using an &lt;span class="caps"&gt;SSH&lt;/span&gt; tunnel, it does not work. When I run it directly on a server using the same version of Rails and Facebooker, it does work.&lt;/p&gt;


	&lt;p&gt;It looks like the issue is with my installation of Rails and Facebooker on my laptop. I just tried uninstalling and reinstalling both via gems, and that didn&amp;#8217;t work. I&amp;#8217;m next going to blow away all of the gems on my machine and start over.&lt;/p&gt;</description>
      <pubDate>Tue, 02 Dec 2008 04:10:30 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1483:6518</guid>
      <author>Tyler Godfrey</author>
      <link>http://forums.pragprog.com/forums/59/topics/1483</link>
    </item>
    <item>
      <title>Problems w/ Ferret posted by RC @ Mon, 01 Dec 2008 16:45:51 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;m currently attempting to implement Ferret (full-text search) using the acts_as_ferret plugin to the facebooker app I&amp;#8217;m working on, but there are problems with the pagination(using will_paginate).&lt;/p&gt;


	&lt;p&gt;When I paginate a regular list of records, the pagination works fine but getting a listing back from a ferret query causes the page indexing not to work.  Trying to access any page but the 1st page of paginated listings returns this error:&lt;/p&gt;


	&lt;p&gt;ActiveRecord::RecordNotFound in FoosController#show&lt;br /&gt;Couldn&amp;#8217;t find Foo with ID=search&lt;/p&gt;


	&lt;p&gt;Has anyone else come across this problem?&lt;br /&gt;btw, I&amp;#8217;m currently using Ferret in development&lt;/p&gt;</description>
      <pubDate>Mon, 01 Dec 2008 16:45:51 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1492:6503</guid>
      <author>RC</author>
      <link>http://forums.pragprog.com/forums/59/topics/1492</link>
    </item>
    <item>
      <title>Re-registering feed templates issues posted by Mike Mangino @ Mon, 01 Dec 2008 16:16:39 -0000</title>
      <description>&lt;p&gt;Just re-installing should do it. In theory, you can use sub-modules but I&amp;#8217;ve never gotten that to work.&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Mon, 01 Dec 2008 16:16:39 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1463:6501</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/1463</link>
    </item>
    <item>
      <title>URL Rewriting issue - missing app name from _path and _url posted by Mike Mangino @ Mon, 01 Dec 2008 15:59:55 -0000</title>
      <description>&lt;p&gt;I just double checked Facebooker and it works fine for me with Rails 2.2&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s what I have in routes.rb:&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
  map.root :controller=&amp;gt;"test", :action=&amp;gt;"index" 
  map.name_test '/name_test',:controller=&amp;gt;"test", :action=&amp;gt;"index" 
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;In index.fbml.erb&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
This is a test &amp;lt;%= link_to "With a link to a named route", name_test_path%&amp;gt; and an &amp;lt;%=link_to "absolute link", root_url%&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;Does a simple testcase like that work? I just cleaned up The facebooker tests to work with Rails 2.2 and all of our tests pass.&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Mon, 01 Dec 2008 15:59:55 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1483:6500</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/1483</link>
    </item>
    <item>
      <title>URL Rewriting issue - missing app name from _path and _url posted by Tyler Godfrey @ Mon, 01 Dec 2008 14:55:54 -0000</title>
      <description>&lt;p&gt;The callback &lt;span class="caps"&gt;URL&lt;/span&gt; is not actually a link &amp;#8211; the forum interpreted it that way.&lt;/p&gt;


	&lt;p&gt;I should have thought about using an earlier version of Rails. I would assume there may be issues if Facebooker has not been tested with 2.2.&lt;/p&gt;


	&lt;p&gt;I appreciate the help!&lt;/p&gt;</description>
      <pubDate>Mon, 01 Dec 2008 14:55:54 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1483:6491</guid>
      <author>Tyler Godfrey</author>
      <link>http://forums.pragprog.com/forums/59/topics/1483</link>
    </item>
    <item>
      <title>URL Rewriting issue - missing app name from _path and _url posted by Mike Mangino @ Mon, 01 Dec 2008 14:16:31 -0000</title>
      <description>&lt;p&gt;Is your callback &lt;span class="caps"&gt;URL&lt;/span&gt; actually a link? I&amp;#8217;m guessing that was added by the forum code.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m not running any applications on Rails 2.2, that might be the problem. Let me take a look to see if I can duplicate this.&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Mon, 01 Dec 2008 14:16:31 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1483:6489</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/1483</link>
    </item>
    <item>
      <title>Re-registering feed templates issues posted by Paul Fioravanti @ Mon, 01 Dec 2008 12:39:34 -0000</title>
      <description>&lt;p&gt;Hi Mike,&lt;/p&gt;


	&lt;p&gt;Thanks for your reply.&lt;/p&gt;


	&lt;p&gt;After reinstalling the Facebooker plugin using &lt;code&gt;script/plugin install git://github.com/mmangino/facebooker.git&lt;/code&gt;, the method started working again.&lt;/p&gt;


	&lt;p&gt;Slightly off topic, but since &lt;code&gt;script/plugin update facebooker&lt;/code&gt; didn&amp;#8217;t work for me, is&lt;br /&gt;there any way to use &lt;code&gt;script/plugin update&lt;/code&gt; for plugins installed from a git&lt;br /&gt;repository?  Or is reinstalling the only way currently?&lt;/p&gt;</description>
      <pubDate>Mon, 01 Dec 2008 12:39:34 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1463:6484</guid>
      <author>Paul Fioravanti</author>
      <link>http://forums.pragprog.com/forums/59/topics/1463</link>
    </item>
    <item>
      <title>URL Rewriting issue - missing app name from _path and _url posted by Tyler Godfrey @ Sun, 30 Nov 2008 20:21:41 -0000</title>
      <description>&lt;p&gt;I am having a problem getting the &lt;span class="caps"&gt;URL&lt;/span&gt; rewriting to work correctly. In the example in Chapter 2 (page 22) &lt;code&gt;&amp;lt;%=new_invitation_path%&amp;gt;&lt;/code&gt; gets interpreted as &lt;code&gt;/invitations/new&lt;/code&gt;. If I change it to &lt;code&gt;&amp;lt;%=new_invitation_url%&amp;gt;&lt;/code&gt;, it is interpreted as:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;apps.facebook.com/invitations/new&lt;/code&gt;&lt;/pre&gt;.&lt;/p&gt;


	&lt;p&gt;Basically, my app name is getting dropped by the &lt;span class="caps"&gt;URL&lt;/span&gt; rewriter, near as I can tell.&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s my facebooker.yml:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
development:
  api_key: 913870fe21e5e6e7de326c391d3b0c9d
  secret_key: ********************************
  canvas_page_name: motivatus_tg
  callback_url: &amp;lt;a href="http://9a3400e6.fb.joyent.us:3000"&amp;gt;http://9a3400e6.fb.joyent.us:3000&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;


My environment:
	&lt;ul&gt;
	&lt;li&gt;Rails 2.2.2&lt;/li&gt;
		&lt;li&gt;Facebooker r224 (installed from &lt;span class="caps"&gt;SVN&lt;/span&gt; source trunk)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Any ideas?&lt;/p&gt;</description>
      <pubDate>Sun, 30 Nov 2008 20:21:41 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1483:6467</guid>
      <author>Tyler Godfrey</author>
      <link>http://forums.pragprog.com/forums/59/topics/1483</link>
    </item>
    <item>
      <title>Re-registering feed templates issues posted by Mike Mangino @ Sat, 29 Nov 2008 19:17:58 -0000</title>
      <description>&lt;p&gt;There was a bug in Facebooker that was fixed a couple of weeks ago. Updating your plugin should fix things.&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Sat, 29 Nov 2008 19:17:58 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1463:6451</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/1463</link>
    </item>
    <item>
      <title>Re-registering feed templates issues posted by Paul Fioravanti @ Thu, 27 Nov 2008 03:06:54 -0000</title>
      <description>&lt;p&gt;This refers to Page 98-99 of the Textbook:&lt;/p&gt;


	&lt;p&gt;After defining the &lt;code&gt;attack_feed_template&lt;/code&gt; method, I was able to register it correctly using the&lt;br /&gt;&lt;code&gt;AttackPublisher.register_attack_feed&lt;/code&gt; command in &lt;code&gt;script/console&lt;/code&gt;.&lt;br /&gt;However, when I made a change to the &lt;code&gt;attack_feed_template&lt;/code&gt; method and attempted to re-register the &lt;br /&gt;template, I got the following error:&lt;/p&gt;


&lt;pre&gt;
ArgumentError: wrong number of arguments (0 for 1)
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/timestamp.rb:33:in `changed?'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/timestamp.rb:33:in `update'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/base.rb:2483:in `create_or_update_without_callbacks'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/callbacks.rb:207:in `create_or_update'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/base.rb:2217:in `save_without_validation!'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/validations.rb:921:in `save_without_dirty!'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/dirty.rb:83:in `save_without_transactions!'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in `save!'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:79:in `transaction'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:98:in `transaction'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in `save!'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:118:in `rollback_active_record_state!'
        from /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/transactions.rb:110:in `save!'
        from /home/karate_poke/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:116:in `register'
        from /home/karate_poke/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:423:in `method_missing'
&lt;/pre&gt;

	&lt;p&gt;I was able to get around this problem by opening up mysql and deleting the template record directly from the&lt;br /&gt;&lt;code&gt;facebook_templates&lt;/code&gt; table and then running &lt;code&gt;AttackPublisher.register_attack_feed&lt;/code&gt; again to register it &lt;br /&gt;successfully as a new template, but does anyone know what the cause of this error is?  Does the Facebooker &lt;br /&gt;library not pass some required parameter when registering an existing template?  Or is there something else I&amp;#8217;m &lt;br /&gt;missing?&lt;/p&gt;</description>
      <pubDate>Thu, 27 Nov 2008 03:06:54 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1463:6406</guid>
      <author>Paul Fioravanti</author>
      <link>http://forums.pragprog.com/forums/59/topics/1463</link>
    </item>
    <item>
      <title>'Session key invalid or no longer valid' notification issues posted by Paul Fioravanti @ Thu, 27 Nov 2008 01:21:44 -0000</title>
      <description>&lt;p&gt;Thanks Mike!  Errata has been submitted.&lt;/p&gt;</description>
      <pubDate>Thu, 27 Nov 2008 01:21:44 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1452:6403</guid>
      <author>Paul Fioravanti</author>
      <link>http://forums.pragprog.com/forums/59/topics/1452</link>
    </item>
    <item>
      <title>'Session key invalid or no longer valid' notification issues posted by Mike Mangino @ Thu, 27 Nov 2008 00:59:44 -0000</title>
      <description>&lt;p&gt;Good find! As much as I&amp;#8217;d like to claim it as a printing error, it&amp;#8217;s more likely an author error. Can you add this as an errata at &lt;a href="http://www.pragprog.com/titles/mmfacer/errata"&gt;http://www.pragprog.com/titles/mmfacer/errata&lt;/a&gt; ? That will remind me to fix it if we do another release of the &lt;span class="caps"&gt;PDF&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;Thanks and good luck with your application!&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Thu, 27 Nov 2008 00:59:44 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1452:6401</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/1452</link>
    </item>
    <item>
      <title>'Session key invalid or no longer valid' notification issues posted by Paul Fioravanti @ Thu, 27 Nov 2008 00:40:11 -0000</title>
      <description>&lt;p&gt;Thanks very much for the reply, Mike.&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m testing out all of my actions via the web (2 Facebook users running on web browsers on seperate machines), &lt;br /&gt;and not by script/console.&lt;/p&gt;


	&lt;p&gt;I tried de-authorizing the application on both users and then re-authorizing it, and reloading the fixtures into the&lt;br /&gt;development database to try and get a clean slate, but I still got the &lt;br /&gt;&lt;code&gt;user_to_user notifications require a session&lt;/code&gt; error.  Checking out the &lt;code&gt;users&lt;/code&gt; table under mysql, it seemed that the &lt;code&gt;session_key&lt;/code&gt; value is always &lt;code&gt;NULL&lt;/code&gt; when a new user is added.&lt;/p&gt;


	&lt;p&gt;After a bit of reading ahead, it seems that the issue was in the &lt;code&gt;set_current_user&lt;/code&gt; method.  Working on page 93,&lt;br /&gt;my &lt;code&gt;set_current_user&lt;/code&gt; method in &lt;code&gt;app/controllers/application.rb&lt;/code&gt; still looked like it did when it was first&lt;br /&gt;implemented on page 38 of the text:&lt;/p&gt;


&lt;pre&gt;
def set_current_user
    self.current_user = User.for(facebook_session.user.to_i)
end
&lt;/pre&gt;

	&lt;p&gt;The above &lt;code&gt;User.for&lt;/code&gt; method doesn&amp;#8217;t pass in a second &lt;code&gt;facebook_session&lt;/code&gt; parameter, so I guess that&amp;#8217;s why I was&lt;br /&gt;getting &lt;code&gt;NULL&lt;/code&gt; &lt;code&gt;session_key&lt;/code&gt; values.  I cross-referenced the official downloaded code in &lt;br /&gt;&lt;code&gt;chapter3/karate_poke/app/controllers/application.rb&lt;/code&gt; and found there that the &lt;code&gt;User.for&lt;/code&gt; method is passing in the second &lt;code&gt;facebook_session&lt;/code&gt; parameter.  Perhaps this is a printing error in the text?&lt;/p&gt;


	&lt;p&gt;Anyway, when I changed the code to how it is on page 125 below, the notifications got sent and I was able to view them as expected:&lt;/p&gt;


&lt;pre&gt;
def set_current_user
  set_facebook_session
  # if the session isn't secured, we don't have a good user id
  if facebook_session and 
    facebook_session.secured? and 
    !request_is_facebook_tab?
      self.current_user = User.for(facebook_session.user.to_i,facebook_session) 
  end
end
&lt;/pre&gt;</description>
      <pubDate>Thu, 27 Nov 2008 00:40:11 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1452:6400</guid>
      <author>Paul Fioravanti</author>
      <link>http://forums.pragprog.com/forums/59/topics/1452</link>
    </item>
    <item>
      <title>'Session key invalid or no longer valid' notification issues posted by Mike Mangino @ Wed, 26 Nov 2008 13:28:37 -0000</title>
      <description>&lt;p&gt;Have you used the application recently as the user who you are sending the notification from?&lt;/p&gt;


	&lt;p&gt;By default, Facebook sessions are only valid for about an hour from the time the user last uses your application. If you&amp;#8217;re sending notifications via the web, this won&amp;#8217;t be a big deal because each request renews the session. If you&amp;#8217;re using script/console, you&amp;#8217;ll need to make sure you visit your application in a browser once an hour or so.&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Wed, 26 Nov 2008 13:28:37 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1452:6384</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/1452</link>
    </item>
    <item>
      <title>'Session key invalid or no longer valid' notification issues posted by Paul Fioravanti @ Wed, 26 Nov 2008 02:53:41 -0000</title>
      <description>&lt;p&gt;Now I&amp;#8217;m getting the following error:&lt;/p&gt;


	&lt;p&gt;&lt;code&gt;facebook.notifications.send (0) Facebooker::Session::SessionExpired:&lt;/code&gt;&lt;br /&gt;&lt;code&gt;user_to_user notifications require a session&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;ve tried looking back over what I&amp;#8217;ve done so far, but I guess I&amp;#8217;m finding the&lt;br /&gt;Facebook session stuff pretty confusing.  Is no one else having similar session-related problems?&lt;/p&gt;</description>
      <pubDate>Wed, 26 Nov 2008 02:53:41 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1452:6367</guid>
      <author>Paul Fioravanti</author>
      <link>http://forums.pragprog.com/forums/59/topics/1452</link>
    </item>
    <item>
      <title>'Session key invalid or no longer valid' notification issues posted by Paul Fioravanti @ Tue, 25 Nov 2008 08:03:29 -0000</title>
      <description>&lt;p&gt;Hi there,&lt;/p&gt;


	&lt;p&gt;I&amp;#8217;m currently having fun working my way through the text but have hit a wall on page 93, Sending Notifications.&lt;br /&gt;I&amp;#8217;ve implemented the &lt;code&gt;attack_notification&lt;/code&gt; and &lt;code&gt;send_attack_notification&lt;/code&gt; methods and have tried to get &lt;br /&gt;notifications sent from and to my test Facebook users but I&amp;#8217;m getting the following error:&lt;/p&gt;


	&lt;p&gt;&lt;code&gt;facebook.notifications.send (0) Facebooker::Session::SessionExpired:&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Session key invalid or no longer valid&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;How do I generate new session keys for my test Facebook users?&lt;br /&gt;Any help appreciated.&lt;/p&gt;</description>
      <pubDate>Tue, 25 Nov 2008 08:03:29 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1452:6344</guid>
      <author>Paul Fioravanti</author>
      <link>http://forums.pragprog.com/forums/59/topics/1452</link>
    </item>
    <item>
      <title>Problem with adding the created App posted by Stephane Arcos @ Tue, 25 Nov 2008 00:25:13 -0000</title>
      <description>&lt;p&gt;Hello there,&lt;br /&gt;I&amp;#8217;m closed to release my first app, thanx to this amazing book, but I have an issue when a new user try to install it(&amp;#8216;allow&amp;#8217; in new Facebook terms).&lt;/p&gt;


	&lt;p&gt;My server (the production one) is hit two times :&lt;br /&gt;1 &amp;#8211; using this url : apps.new.facebook.com/&lt;strong&gt;app_name&lt;/strong&gt;/&lt;br /&gt;&lt;pre&gt;&lt;code&gt;
Processing PollsController#index 
  Parameters: {... "action"=&amp;gt;"index", "controller"=&amp;gt;"polls", "fb_sig_added"=&amp;gt;"0" ...}
&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;


	&lt;p&gt;2 &amp;#8211; After clicking the &amp;#8220;Allow&amp;#8221; &lt;br /&gt;&lt;pre&gt;&lt;code&gt;
Processing PollsController#index 
   Parameters: {"installed"=&amp;gt;"1", "action"=&amp;gt;"index", "auth_token"=&amp;gt;"ebe62ef2f6da55d7e3d2565f17676ca9", "controller"=&amp;gt;"polls"}
...
Rendering polls/index

ActionView::MissingTemplate (Missing template polls/index.html.erb in view path /home/soxosin/fb_polls/app/views):

&lt;/code&gt;&lt;/pre&gt;&lt;/p&gt;


	&lt;p&gt;It looked like the second request does not go thru Facebooker, I have tried to change the &amp;#8216;Post-Add &lt;span class="caps"&gt;URL&lt;/span&gt;&amp;#8217; in the Facebook app settings (currently set to &lt;a href="http://apps.new.facebook.com/"&gt;http://apps.new.facebook.com/&lt;/a&gt;&lt;strong&gt;app_name&lt;/strong&gt;) but same result.&lt;/p&gt;


	&lt;p&gt;My main route is : &lt;pre&gt;&lt;code&gt;map.root :controller=&amp;gt;"polls" , :action=&amp;gt;"index"&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;(I&amp;#8217;ve tried map.connect &amp;#8217;&amp;#8217;, :controller =&amp;gt; &amp;#8220;polls&amp;#8221;, map.polls &amp;#8217;&amp;#8217;, :controller=&amp;gt;&amp;#8221;polls&amp;#8221; , :action=&amp;gt;&amp;#8221;index&amp;#8221;)&lt;/p&gt;


	&lt;p&gt;It is really just this step causing problem, the app is correctly added and if I navigate to apps.new.facebook.com/&lt;strong&gt;app_name&lt;/strong&gt;/ it is functionnal.&lt;/p&gt;


	&lt;p&gt;Any Idea ?&lt;br /&gt;&lt;span class="caps"&gt;TIA&lt;/span&gt;&lt;br /&gt;Stephane&lt;/p&gt;</description>
      <pubDate>Tue, 25 Nov 2008 00:25:13 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1451:6342</guid>
      <author>Stephane Arcos</author>
      <link>http://forums.pragprog.com/forums/59/topics/1451</link>
    </item>
    <item>
      <title>&amp;quot;If you are behind a router, you will need to confingure port forwarding to send requests to your machine&amp;quot; posted by David Turnbull @ Mon, 24 Nov 2008 21:33:21 -0000</title>
      <description>&lt;p&gt;Hmmm, I knew I was doing something stupid.&lt;/p&gt;


	&lt;p&gt;Thanks for that, working fine now. :)&lt;/p&gt;</description>
      <pubDate>Mon, 24 Nov 2008 21:33:21 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1445:6335</guid>
      <author>David Turnbull</author>
      <link>http://forums.pragprog.com/forums/59/topics/1445</link>
    </item>
    <item>
      <title>&amp;quot;If you are behind a router, you will need to confingure port forwarding to send requests to your machine&amp;quot; posted by Mike Mangino @ Mon, 24 Nov 2008 16:12:54 -0000</title>
      <description>&lt;p&gt;Are you running script/server ?&lt;/p&gt;</description>
      <pubDate>Mon, 24 Nov 2008 16:12:54 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1445:6330</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/1445</link>
    </item>
    <item>
      <title>wrong number of arguments (3 for 4) posted by Mike Mangino @ Mon, 24 Nov 2008 16:12:27 -0000</title>
      <description>&lt;p&gt;There was an &lt;span class="caps"&gt;API&lt;/span&gt; change after the publication of the book. I believe you now need to pass in four parameters. I&amp;#8217;ll see if I can make the last one optional.&lt;/p&gt;


	&lt;p&gt;Mike&lt;/p&gt;</description>
      <pubDate>Mon, 24 Nov 2008 16:12:27 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1444:6329</guid>
      <author>Mike Mangino</author>
      <link>http://forums.pragprog.com/forums/59/topics/1444</link>
    </item>
    <item>
      <title>&amp;quot;If you are behind a router, you will need to confingure port forwarding to send requests to your machine&amp;quot; posted by David Turnbull @ Mon, 24 Nov 2008 02:51:03 -0000</title>
      <description>&lt;p&gt;&amp;#8220;If you are behind a router, you will need to configure port forwarding to send requests to your machine&amp;#8221;&lt;/p&gt;


	&lt;p&gt;Can someone tell me what that means? Maybe the book assumes the reader has some technical knowledge, but that statement has just gone straight over my head and I&amp;#8217;m 100% lost.&lt;/p&gt;


	&lt;p&gt;&lt;span class="caps"&gt;EDIT&lt;/span&gt;: Okay, I was just watching the screencast &amp;#8220;Rails Development for the Facebook Platform &amp;#8211; Part 1: Building an App From Scratch&amp;#8221; and was Tunnlr was suggested I tried that out, but when I run the &amp;#8220;rake facebooker:tunnel:start&amp;#8221; command, this is the output:&lt;/p&gt;


	&lt;p&gt;david-turnbulls-macbook-pro:zombie_poke DavidTurnbull$ rake facebooker:tunnel:start&lt;br /&gt;(in /Users/DavidTurnbull/zombie_poke)&lt;br /&gt;Starting tunnel ssh1.tunnlr.com:10215 to 0.0.0.0:3000&lt;br /&gt;&lt;a href="mailto:tunnlr619@ssh1.tunnlr.com"&gt;tunnlr619@ssh1.tunnlr.com&lt;/a&gt;&amp;#8217;s password:&lt;/p&gt;


	&lt;p&gt;setsockopt &lt;span class="caps"&gt;TCP&lt;/span&gt;_NODELAY: Invalid argument&lt;br /&gt;connect_to 0.0.0.0 port 3000: failed.&lt;/p&gt;


	&lt;p&gt;Help?&lt;/p&gt;</description>
      <pubDate>Mon, 24 Nov 2008 02:51:03 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1445:6324</guid>
      <author>David Turnbull</author>
      <link>http://forums.pragprog.com/forums/59/topics/1445</link>
    </item>
    <item>
      <title>wrong number of arguments (3 for 4) posted by David Turnbull @ Mon, 24 Nov 2008 00:37:17 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;m in section 2.5 of the book (&amp;#8220;Updating the profile&amp;#8221;) but I keep running into the same error, which is:&lt;/p&gt;


	&lt;p&gt;wrong number of arguments (3 for 4)&lt;br /&gt;&lt;span class="caps"&gt;RAILS&lt;/span&gt;_ROOT: /mnt/home/userapps/42584&lt;/p&gt;


	&lt;p&gt;Application Trace | Framework Trace | Full Trace&lt;br /&gt;vendor/plugins/facebooker/lib/facebooker/models/user.rb:151&lt;br /&gt;vendor/plugins/facebooker/lib/facebooker/models/user.rb:151&lt;br /&gt;app/controllers/invitations_controller.rb:16&lt;br /&gt;app/controllers/invitations_controller.rb:5&lt;br /&gt;/home/userapps_plugins/preload/request_timeout/lib/request_timeout.rb:9&lt;br /&gt;/home/userapps_plugins/preload/request_timeout/lib/request_timeout.rb:8&lt;br /&gt;/home/heroku_rack/lib/toolbar.rb:15&lt;br /&gt;/home/heroku_rack/lib/static_assets.rb:9&lt;br /&gt;/usr/bin/thin:19:in `load&amp;#8217;&lt;br /&gt;/usr/bin/thin:19&lt;br /&gt;Request&lt;br /&gt;Parameters:&lt;/p&gt;


	&lt;p&gt;{&amp;#8220;fb_sig_time&amp;#8221;=&amp;gt;&amp;#8221;1227486797.4447&amp;#8221;,
 &amp;#8220;format&amp;#8221;=&amp;gt;&amp;#8221;fbml&amp;#8221;,
 &amp;#8220;from&amp;#8221;=&amp;gt;&amp;#8221;1074566347&amp;#8221;,
 &amp;#8220;fb_sig_in_new_facebook&amp;#8221;=&amp;gt;&amp;#8221;1&amp;#8221;,
 &amp;#8220;fb_sig&amp;#8221;=&amp;gt;&amp;#8221;d2b6148344a3069819bb6865a645adcb&amp;#8221;,
 &amp;#8220;fb_sig_locale&amp;#8221;=&amp;gt;&amp;#8221;en_US&amp;#8221;,
 &amp;#8220;_method&amp;#8221;=&amp;gt;&amp;#8221;GET&amp;#8221;,
 &amp;#8220;fb_sig_in_canvas&amp;#8221;=&amp;gt;&amp;#8221;1&amp;#8221;,
 &amp;#8220;fb_sig_position_fix&amp;#8221;=&amp;gt;&amp;#8221;1&amp;#8221;,
 &amp;#8220;fb_sig_session_key&amp;#8221;=&amp;gt;&amp;#8221;60aa82a91564c64cf6cece75-1490936108&amp;#8221;,
 &amp;#8220;fb_sig_request_method&amp;#8221;=&amp;gt;&amp;#8221;GET&amp;#8221;,
 &amp;#8220;fb_sig_expires&amp;#8221;=&amp;gt;&amp;#8221;1227573197&amp;#8221;,
 &amp;#8220;fb_sig_friends&amp;#8221;=&amp;gt;&amp;#8221;2705337,&lt;br /&gt;4926832,&lt;br /&gt;9309167,&lt;br /&gt;10113993,&lt;br /&gt;16404659,&lt;br /&gt;17114116,&lt;br /&gt;17810540,&lt;br /&gt;22904946,&lt;br /&gt;25401917,&lt;br /&gt;37518506,&lt;br /&gt;65002841,&lt;br /&gt;68005305,&lt;br /&gt;69405532,&lt;br /&gt;91300247,&lt;br /&gt;116300182,&lt;br /&gt;215300953,&lt;br /&gt;218700244,&lt;br /&gt;227303353,&lt;br /&gt;500822270,&lt;br /&gt;502371267,&lt;br /&gt;503438930,&lt;br /&gt;508978461,&lt;br /&gt;510896672,&lt;br /&gt;512039070,&lt;br /&gt;512370130,&lt;br /&gt;513094938,&lt;br /&gt;516527832,&lt;br /&gt;522863247,&lt;br /&gt;523094684,&lt;br /&gt;528355974,&lt;br /&gt;529231058,&lt;br /&gt;531273018,&lt;br /&gt;535353005,&lt;br /&gt;541275036,&lt;br /&gt;548260734,&lt;br /&gt;550537872,&lt;br /&gt;555506492,&lt;br /&gt;556763355,&lt;br /&gt;559284714,&lt;br /&gt;561365723,&lt;br /&gt;564007550,&lt;br /&gt;566468404,&lt;br /&gt;566532583,&lt;br /&gt;574960520,&lt;br /&gt;577428882,&lt;br /&gt;581521055,&lt;br /&gt;582850261,&lt;br /&gt;584042483,&lt;br /&gt;589528734,&lt;br /&gt;594903921,&lt;br /&gt;595920273,&lt;br /&gt;596185435,&lt;br /&gt;599634445,&lt;br /&gt;600860134,&lt;br /&gt;601614594,&lt;br /&gt;603439339,&lt;br /&gt;612279703,&lt;br /&gt;614297246,&lt;br /&gt;617844143,&lt;br /&gt;622707265,&lt;br /&gt;624471564,&lt;br /&gt;626143013,&lt;br /&gt;628104147,&lt;br /&gt;630239436,&lt;br /&gt;631908429,&lt;br /&gt;634439361,&lt;br /&gt;642248562,&lt;br /&gt;646805499,&lt;br /&gt;648896862,&lt;br /&gt;651655761,&lt;br /&gt;656276183,&lt;br /&gt;660345595,&lt;br /&gt;661341255,&lt;br /&gt;664590372,&lt;br /&gt;667516276,&lt;br /&gt;673329004,&lt;br /&gt;674372593,&lt;br /&gt;675881472,&lt;br /&gt;680500669,&lt;br /&gt;697044686,&lt;br /&gt;704486293,&lt;br /&gt;706101890,&lt;br /&gt;706777757,&lt;br /&gt;708671292,&lt;br /&gt;709390573,&lt;br /&gt;711280397,&lt;br /&gt;711288556,&lt;br /&gt;716053680,&lt;br /&gt;722543731,&lt;br /&gt;726963958,&lt;br /&gt;728407735,&lt;br /&gt;730258388,&lt;br /&gt;742223137,&lt;br /&gt;744568731,&lt;br /&gt;750713073,&lt;br /&gt;750773805,&lt;br /&gt;752540163,&lt;br /&gt;754765097,&lt;br /&gt;759079578,&lt;br /&gt;769917445,&lt;br /&gt;773960704,&lt;br /&gt;775778705,&lt;br /&gt;779102560,&lt;br /&gt;779895290,&lt;br /&gt;781809401,&lt;br /&gt;784377850,&lt;br /&gt;793013816,&lt;br /&gt;803094740,&lt;br /&gt;824479718,&lt;br /&gt;826505262,&lt;br /&gt;874310653,&lt;br /&gt;897405594,&lt;br /&gt;900200299,&lt;br /&gt;1022487230,&lt;br /&gt;1048345104,&lt;br /&gt;1056187620,&lt;br /&gt;1058890797,&lt;br /&gt;1065469059,&lt;br /&gt;1072280889,&lt;br /&gt;1074566347,&lt;br /&gt;1077495861,&lt;br /&gt;1094590017,&lt;br /&gt;1098357786,&lt;br /&gt;1104468892,&lt;br /&gt;1131201147,&lt;br /&gt;1133134106,&lt;br /&gt;1138117521,&lt;br /&gt;1142978263,&lt;br /&gt;1145365896,&lt;br /&gt;1151346956,&lt;br /&gt;1157692935,&lt;br /&gt;1164476085,&lt;br /&gt;1167021903,&lt;br /&gt;1174164739,&lt;br /&gt;1176791095,&lt;br /&gt;1185353002,&lt;br /&gt;1191818245,&lt;br /&gt;1193679587,&lt;br /&gt;1197261315,&lt;br /&gt;1202298993,&lt;br /&gt;1213770525,&lt;br /&gt;1216852572,&lt;br /&gt;1224904004,&lt;br /&gt;1234503622,&lt;br /&gt;1244100049,&lt;br /&gt;1245800884,&lt;br /&gt;1261113876,&lt;br /&gt;1269348365,&lt;br /&gt;1269694580,&lt;br /&gt;1275313359,&lt;br /&gt;1278944600,&lt;br /&gt;1286198286,&lt;br /&gt;1298921380,&lt;br /&gt;1299943729,&lt;br /&gt;1303281035,&lt;br /&gt;1304235620,&lt;br /&gt;1312578518,&lt;br /&gt;1323677610,&lt;br /&gt;1324561230,&lt;br /&gt;1328594749,&lt;br /&gt;1329429404,&lt;br /&gt;1335909017,&lt;br /&gt;1336001941,&lt;br /&gt;1343229627,&lt;br /&gt;1348437307,&lt;br /&gt;1356206544,&lt;br /&gt;1356231116,&lt;br /&gt;1357394007,&lt;br /&gt;1358415036,&lt;br /&gt;1365324549,&lt;br /&gt;1371457135,&lt;br /&gt;1378521430,&lt;br /&gt;1383296768,&lt;br /&gt;1383847106,&lt;br /&gt;1387787670,&lt;br /&gt;1388093011,&lt;br /&gt;1389123730,&lt;br /&gt;1393004237,&lt;br /&gt;1394973848,&lt;br /&gt;1394983877,&lt;br /&gt;1406127195,&lt;br /&gt;1407756580,&lt;br /&gt;1409670239,&lt;br /&gt;1410385051,&lt;br /&gt;1410517159,&lt;br /&gt;1410804075,&lt;br /&gt;1410940271,&lt;br /&gt;1413277295,&lt;br /&gt;1416647583,&lt;br /&gt;1418551158,&lt;br /&gt;1421730022,&lt;br /&gt;1423794812,&lt;br /&gt;1431516460,&lt;br /&gt;1432184292,&lt;br /&gt;1433336848,&lt;br /&gt;1434764363,&lt;br /&gt;1435716605,&lt;br /&gt;1448537296,&lt;br /&gt;1449805338,&lt;br /&gt;1450846270,&lt;br /&gt;1450848221,&lt;br /&gt;1451118067,&lt;br /&gt;1452974539,&lt;br /&gt;1453295648,&lt;br /&gt;1456196271,&lt;br /&gt;1456788641,&lt;br /&gt;1458944563,&lt;br /&gt;1462190674,&lt;br /&gt;1463169048,&lt;br /&gt;1463850560,&lt;br /&gt;1466599644,&lt;br /&gt;1466712374,&lt;br /&gt;1467082944,&lt;br /&gt;1467100489,&lt;br /&gt;1467177030,&lt;br /&gt;1472347743,&lt;br /&gt;1474985580,&lt;br /&gt;1478622245,&lt;br /&gt;1482062480,&lt;br /&gt;1483077801,&lt;br /&gt;1483995705,&lt;br /&gt;1485968178,&lt;br /&gt;1486090714,&lt;br /&gt;1486263052,&lt;br /&gt;1487108661,&lt;br /&gt;1492433560,&lt;br /&gt;1496859645,&lt;br /&gt;1497275288,&lt;br /&gt;1497355082,&lt;br /&gt;1497519327,&lt;br /&gt;1498333057,&lt;br /&gt;1508317870,&lt;br /&gt;1509970818,&lt;br /&gt;1510329068,&lt;br /&gt;1512783651,&lt;br /&gt;1532285076,&lt;br /&gt;1533850541,&lt;br /&gt;1540092093,&lt;br /&gt;1540982701&amp;#8221;,
 &amp;#8220;fb_sig_added&amp;#8221;=&amp;gt;&amp;#8221;1&amp;#8221;,
 &amp;#8220;fb_sig_api_key&amp;#8221;=&amp;gt;&amp;#8221;8bac4be05339d02bcd9ff83ee2781716&amp;#8221;,
 &amp;#8220;fb_sig_profile_update_time&amp;#8221;=&amp;gt;&amp;#8221;0&amp;#8221;,
 &amp;#8220;fb_sig_user&amp;#8221;=&amp;gt;&amp;#8221;1490936108&amp;#8221;}&lt;/p&gt;


	&lt;p&gt;Thanks in advance.&lt;/p&gt;</description>
      <pubDate>Mon, 24 Nov 2008 00:37:17 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1444:6323</guid>
      <author>David Turnbull</author>
      <link>http://forums.pragprog.com/forums/59/topics/1444</link>
    </item>
    <item>
      <title>Links in Notifications posted by Stephane Arcos @ Fri, 21 Nov 2008 22:15:29 -0000</title>
      <description>&lt;p&gt;hahaha, its even mentioned in your book (p. 133). Stephane, pay attention please !!&lt;/p&gt;</description>
      <pubDate>Fri, 21 Nov 2008 22:15:29 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1415:6262</guid>
      <author>Stephane Arcos</author>
      <link>http://forums.pragprog.com/forums/59/topics/1415</link>
    </item>
    <item>
      <title>Links in Notifications posted by Stephane Arcos @ Fri, 21 Nov 2008 17:51:28 -0000</title>
      <description>&lt;p&gt;Excellent ! thanx Mike. It&amp;#8217;s really pleasant seeing you offer great support here.&lt;/p&gt;</description>
      <pubDate>Fri, 21 Nov 2008 17:51:28 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:59:1415:6255</guid>
      <author>Stephane Arcos</author>
      <link>http://forums.pragprog.com/forums/59/topics/1415</link>
    </item>
  </channel>
</rss>
