With the hype growing every day, I figured I was being left behind by the cool kids in not having my very own Facebook application!
Overall I like what I see there, they do not allow any custom JavaScript in FBML apps but do give you some reasonable tags to do AJAX callbacks and stuff (Note to self: I need to test how badly these degrade) and basic hide/show markup stuff which is useful.
However I just had to blog about the pain I have had with the rFacebook Gem. From what I can gather, the latest version of the gem simply doesn’t work as every time I redirected via Facebook to login (a necessary step) I got the following error:
NoMethodError (You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.length):
/usr/local/lib/ruby/gems/1.8/gems/rfacebook-0.6.4/lib/facebook_rails_controller_extensions.rb:37:in `fbparams'
/usr/local/lib/ruby/gems/1.8/gems/rfacebook-0.6.4/lib/facebook_rails_controller_extensions.rb:60:in `fbsession'
/usr/local/lib/ruby/gems/1.8/gems/rfacebook-0.6.4/lib/facebook_rails_controller_extensions.rb:130:in `require_facebook_login'
[snip...]
Much Googling, wailing and gnashing of teeth later I found someone talking about this issue being specific to 0.6.4 of the gem (the latest) and sure enough downgrading to the 0.6.2 version of the gem and everything is sweetness and light.
Anyway, a morning of frustration out of the way and I am proud to present…

Apart from the gem issues the development process is fairly smooth. The FBML Test Console is nice enough and is very useful to prevent hundreds of checkin/deploy cycles to test out your markup as your site (obviously) has to be deployed to be accessed through Facebook.
I am hoping to build a little app for fun (more than “Hello World”) so expect a few more posts here as that develops…






