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:
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...

Thank Loganathan very much.I had done this problem

I have done some of the code for facebook, twitter. Please go through this repo :