Learn how to use fb_graph!
fb_graph is a full-stack Facebook Graph API wrapper in Ruby.
Reading the souce code (in Rails), you can learn how to authenticate facebook users using fb_graph, how to access their profile data, how to update their status etc.