*NOTE: If your company is looking for Facebook Apps my web development consultancy specializes in creation of social apps on Facebook Platform, get in touch with us at www.lightboxit.com if you are interested.
This is the beginnings of a plugin I may put together to help others integrate Facebook into their Rails apps. Much of the code is borrowed from Luke Shepherd’s examples and slightly modified and repackaged. It is cleaner (and more Ruby-like) than having all those Facebook specific methods scattered around your application controller. You can check out the latest code with fixes (including fixes for the extended RFacebook Ruby API Client) at http://svn.jamiequint.com/rubyface (NOTE: There likely still bugs with this code, I’m collaborating with Paul McKellar on this and will update here as things progress) You will want to put this code in the lib directory of your Rails application and use it like this…
require "facebook_web_session" class ApplicationController < ActionController::Base include Facebook session :session_key => ‘_myapp_session_id’ before_filter :initfb before_filter :require_login, :except => [:view, :index, :list] end
I’ve also found the most helpful resource yet to be the Facebook Platform Wiki so if you are looking for further help I suggest checking that out.
UPDATE: Matt Pizzimenti just released an updated version of RFacebook that works so as of now you probably should be using that.
We’re adding a facebook app to Only Human really soon. Thanks for posting up this information about the platform. We’ll make sure to share any code that we make to other rails developers.
Dennis
June 13th, 2007
Just a heads up - if anyone is looking for help we have a forum over at http://facebook.jdg.net for Ruby developers using the Facebook API.
JDG
June 13th, 2007
I have also found #facebook on freenode to be a great place to collaborate on platform stuff.
jamiequint
June 13th, 2007