Fbauth-sample is a project mainly written in RUBY and JAVASCRIPT, it's free.
This is a sample Facebook application designed to illustrate integration of the FBAuth plugin for Rails.
Integration of FBAuth into a normal Rails app is fairly straightforward: