Help me about connect Facebook in Ruby on Rails

I'm using RoR to create Demo connectting Facebook.i'm reading some
example but i can't run my Demo.I'm using example:
http://madebymany.com/blog/tutorial-for-restful-authentication-on-rails-with-facebook-connect-in-15-minutes
This example use Rails 2 and facebooker for Rails 2 and not compatible
with rails 3
Who can instruct for me solve this problem? Thanks...

http://railscasts.com/episodes/360-facebook-authentication

Thank Loganathan very much.I had done this problem

I have done some of the code for facebook, twitter. Please go through this repo : https://github.com/sonianand11/omniauth_share_example