Problem during creating an app in facebook.

  I am using rails 2.2. I am trying to develop an application in
I installed gem rfacebook (0.9.8) and also I installed plugin
"rfacebook" by using "ruby script/plugin install"
   I added a line "before_filter :require_facebook_login" in
Whenever I am hitting my application URL
"http://localhost:3000/socialrecipetushar" it is asking me for login to
face book. After I am entering my valid facebook id and password it is
going in infinite loop. I checked the log and it is giving an error like

"Processing RecipesController#index (for at 2009-03-18
07:10:28) [GET]
  e[4;35;1mSQL (0.0ms)e[0m e[0mSET SQL_AUTO_IS_NULL=0e[0m
** RFACEBOOK INFO: Redirecting to login for external app
** RFACEBOOK INFO: iframe redirect to
Filter chain halted as [:require_facebook_login] rendered_or_redirected.
Completed in 0ms (View: 0, DB: 0) | 200 OK

It seems to be it is not able to take session. I am not able to tackle
the problem Can anybody give me solution to this problem?