# Problem during creating an app in facebook

**URL:** <https://www.ruby-forum.com/t/problem-during-creating-an-app-in-facebook/163127>\
**Category:** Rails\
**Created:** [March 17, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/problem-during-creating-an-app-in-facebook/163127 "2009-03-17T14:52:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [March 17, 2009, 2:52pm UTC](https://www.ruby-forum.com/t/problem-during-creating-an-app-in-facebook/163127/1 "2009-03-17T14:52:11Z")

</div>

Hi,  
I am using rails 2.2. I am trying to develop an application in  
facebook.  
I installed gem rfacebook (0.9.8) and also I installed plugin  
“rfacebook” by using “ruby script/plugin install  
[http://rfacebook.rubyforge.org/svn/trunk/rfacebook/plugins/rfacebook](http://rfacebook.rubyforge.org/svn/trunk/rfacebook/plugins/rfacebook)”  
command.  
I added a line “before\_filter :require\_facebook\_login” in  
application.rb.  
Whenever I am hitting my application URL  
“[http://localhost:3000/socialrecipetushar](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  
this

“Processing RecipesController#index (for 127.0.0.1 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

> **[Log into Facebook](https://www.facebook.com/dialog/oauth?app_id=73889171417&redirect_uri=https%3A%2F%2Fwww.facebook.com%2Fdesktopapp.php&auth_token=1c76a0ffb177cc29eeb98e3954696474#_=_)**
>
> Log into Facebook to start sharing and connecting with your friends, family, and people you know.

Filter chain halted as [:require\_facebook\_login] rendered\_or\_redirected.  
Completed in 0ms (View: 0, DB: 0) | 200 OK  
[[http://localhost/socialrecipetushar/recipes](http://localhost/socialrecipetushar/recipes)]”

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?

Thanks,  
Tushar

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [March 17, 2009, 2:57pm UTC](https://www.ruby-forum.com/t/problem-during-creating-an-app-in-facebook/163127/2 "2009-03-17T14:57:05Z")

</div>

Tushar G. wrote:

> Hi,  
> I am using rails 2.2. I am trying to develop an application in  
> facebook.  
> I installed gem rfacebook (0.9.8) and also I installed plugin  
> “rfacebook” by using “ruby script/plugin install  
> [http://rfacebook.rubyforge.org/svn/trunk/rfacebook/plugins/rfacebook](http://rfacebook.rubyforge.org/svn/trunk/rfacebook/plugins/rfacebook)”  
> command.  
> I added a line “before\_filter :require\_facebook\_login” in  
> application.rb.  
> Whenever I am hitting my application URL  
> “[http://localhost:3000/socialrecipetushar](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  
> this
> 
> “Processing RecipesController#index (for 127.0.0.1 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  
> [Log into Facebook | Facebook](http://www.facebook.com/login.php?v=1.0&api_key=b09d2cd4c4ea5e0e0b0f9d9da8933c9b)  
> Filter chain halted as [:require\_facebook\_login] rendered\_or\_redirected.  
> Completed in 0ms (View: 0, DB: 0) | 200 OK  
> [[http://localhost/socialrecipetushar/recipes](http://localhost/socialrecipetushar/recipes)]”
> 
> 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?
> 
> Thanks,  
> Tushar  
> Alos I tried the example from this URL  
> “[http://www.liverail.net/articles/2007/6/29/tutorial-on-developing-a-facebook-platform-application-with-ruby-on-rails](http://www.liverail.net/articles/2007/6/29/tutorial-on-developing-a-facebook-platform-application-with-ruby-on-rails)”  
> but whenever I add "require “facebook\_rails\_controller\_extensions” " in  
> the environment.rb, I am getting an error during starting server itself.  
> Error is “no such file to load – facebook\_rails\_controller\_extensions  
> (MissingSourceFile)”

Thanks,  
Tushar
