small medium large xlarge

Errata for Developing Facebook Platform Applications with Rails

 

The latest version of the book is P1.0, released almost 8 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.0 (01-Dec-08)
#36236
Paper page: 27
In the new method of invitations_controller.rb, a variable is declared as @from_user_id = facebook_session.user.to_s. This is then referenced in new_...more...
  • Reported in: P1.0 (24-Apr-09)
#38991
PDF page: 30

The "Callback URL" is now part of the Canvas section of Edit Settings and is now called "Canvas Callback URL".--Justin Countiss

  • Reported in: P1.0 (24-Apr-09)
#38992
PDF page: 31

screenshot is out of date.--Justin Countiss

  • Reported in: P1.0 (24-Apr-09)
#38993
PDF page: 31

Post-Add URL has been eliminated from facebook apps. I believe Post-Authorize Redirect URL replaced it.--Justin Countiss

  • Reported in: P1.0 (21-Mar-10)
#42485
PDF page: 31
I couldn't get the samples to work until I checked "Render Method: FBML". The screen shot does show this, but the text doesn't mention making this cha...more...
  • Reported in: P1.0 (20-Nov-08)
#36014
PDF page: 36

I found it was much easier to install facebooker by installing it from facebooker.rubyforge.org/svn/trunk/facebooker/. No need for git.
--dzengal.com

  • Reported in: P1.0 (26-Nov-08)
#36148
Paper page: 38
The set_current_user method in app/controllers/application.rb needs to be updated to pass in a second facebook_session parameter otherwise the session...more...
  • Reported in: B8.0 (15-Sep-08)
#34506
PDF page: 39
Setting up the invitation page, (/app/views/invitations/new.erb) I had to give it an fbml.erb extension instead of just .erb, and then I had to create...more...
  • Reported in: P1.0 (29-Dec-09)
#41940
PDF page: 39

You might want to mention deleting public/index.html so the map.root entry will take effect.--Bill Gathen

  • Reported in: P1.0 (02-Dec-08)
#36252
PDF page: 44

<fb:profile-pic uid="<%id%>" /> should be <fb:profile-pic uid"<%user%>" />--Joseph Rork

  • Reported in: P1.0 (07-Oct-09)
#40954
PDF page: 53
Paper page: 36
The book suggests that a 64-bit integer is created with ActiveRecord by applying a :limit =>20 argument. This is incorrect. ActiveRecord uses the "l...more...
  • Reported in: P1.0 (04-Mar-09)
#38161
PDF page: 54
The method User#for calls #create_by_facebook_id . However, that method doesn't exist. The method should call #find_or_create_by_facebook_id . See ...more...
  • Reported in: P1.0 (04-Mar-09)
#38164
PDF page: 54
The book should explicitly state that all before-filters that rely on Facebooker methods and variables must be defined after the call to #ensure_authe...more...
  • Reported in: P1.0 (20-Nov-08)
#36021
PDF page: 54
With Rails 2.1.2, the purpose of :limit has changed when specifying the length of an integer. Instead of doing :limit => 20, it should be :limit => 8...more...
  • Reported in: P1.0 (04-Mar-09)
#38165
PDF page: 56

The Facebook Developer Terms of Service URL is now located at developers.facebook.com/terms.php .
--Nick Hoffman

  • Reported in: P1.0 (04-Mar-09)
#38166
PDF page: 56
Rather than say "Facebook allows you to store only the IDs of events, networks, and users." I suggest something along the lines of "Facebook ...more...
  • Reported in: P1.0 (07-Jul-09)
#39858
PDF page: 58

# Re-create a Facbooker::Session--Eric Tarn

  • Reported in: P1.0 (15-Jul-09)
#39999
PDF page: 59
In the linked example code for application.rb: self.current_user = User.for(facebook_session.user.to_i, facebook_session) it shows ",facebook_se...more...
  • Reported in: P1.0 (04-Mar-09)
#38171
PDF page: 69
The #hometown method should check that the "location" variable isn't blank/nil before calling "location.city" and "location.state". See pastie.org/407...more...
  • Reported in: P1.0 (16-Jan-10)
#42088
PDF page: 77
test_get_new_requires_user example needs "next" attached to login_url as discussed in the forums. Search on test_get_new_requires_user for solutions.-...more...
  • Reported in: P1.0 (16-Jan-10)
#42089
PDF page: 81
profile_expection has changed slightly. I had to cut and paste the error from the flexmock exception: "<fb:fbml>\n\tI was sent here by <fb:name uid='1...more...
  • Reported in: P1.0 (01-Dec-08)
#36237
Paper page: 81
Refers to 1st paragraph, last sentence: Once we have created the fb_dashboard with the fb_action and fb_help, since we have a Help and Feedback tab...more...
  • Reported in: P1.0 (26-Nov-08)
#36149
Paper page: 86
This is concerning Footnote 6 on installing will_paginate. According to errtheblog.com, installing will_paginate by running script/plugin install sv...more...
  • Reported in: P1.0 (22-Jan-09)
#37202
PDF page: 87
In both code samples, shouldn't we add attack.save before the create method ends? Otherwise, no attack is saved to the database (and the text explicit...more...
  • Reported in: P1.0 (05-Mar-09)
#38199
PDF page: 88

On page 88, the options to #form_for are different from what was last discussed, on page 86.--Nick Hoffman

  • Reported in: P1.0 (26-Nov-08)
#36150
Paper page: 91
The generate publisher command has apparently changed: Before: script/generate publisher attack After: script/generate facebook_publisher atta...more...
  • Reported in: P1.0 (05-Mar-09)
#38201
PDF page: 94

The last two code samples call #fb_tab . However, the correct method name is #fb_tabs (IE: plural).
--Nick Hoffman

  • Reported in: P1.0 (18-Jan-10)
#42097
PDF page: 98

FunWall has become FunSpace.--Bill Gathen

  • Reported in: P1.0 (06-Mar-09)
#38213
PDF page: 102

The "will_paginate" plugin is now hosted on GitHub at github.com/mislav/will_paginate/ .
--Nick Hoffman

  • Reported in: P1.0 (19-Jan-10)
#42102
PDF page: 107

Generator has been renamed from publisher to facebook_publisher. Should read "script/generate facebook_publisher attack".

  • Reported in: P1.0 (01-Dec-08)
#36238
Paper page: 113
I found that in the code for new.erb the new_attack_path method needs to be substituted for a new_attack_url method otherwise there will be routing er...more...
  • Reported in: P1.0 (28-Nov-08)
#36159
Paper page: 114
Under the fb_request_form method, there is a fb_request_form_submit method. This is not needed as the fb_multi_friend_selector method already provide...more...
  • Reported in: P1.0 (01-Dec-08)
#36209
Paper page: 115
The line: "Since our partial is for AttackPublisher, I'll put it in app/views/attack_publisher/_profile.erb" initially confused me since the app/views...more...
  • Reported in: B8.0 (13-Oct-08)
#35202
PDF page: 127
Paper page: 128
You use a method potential_disciples(friend_ids) on page 128, but you never mention defining it in any of the previous sections. it’s also inconsisten...more...
  • Reported in: P1.0 (05-Dec-08)
#36311
Paper page: 148
The select nickname function in Karate Poke doesn't work properly on Firefox. Textbook code for app/views/attacks/index.fbml.erb ... <div id="nic...more...