Koala is a Ruby gem for integrating Facebook connectivity into Ruby, and Ruby on Rails applications.
You can find out more about Koala here. It's a Facebook library for Ruby, supporting the Graph API (including the batch requests and photo uploads), the REST API, realtime updates, test users, and OAuth validation.