# Problem with deploying a facebook application

**URL:** <https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709>\
**Category:** Deployment\
**Created:** [January 31, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709 "2008-01-31T16:54:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![noham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@noham](https://www.ruby-forum.com/u/noham)\
**Post date:** [January 31, 2008, 4:54pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709/1 "2008-01-31T16:54:35Z")

</div>

Hi all,  
M having a problem deploying a ruby on rails application on the  
production server tthough I’ve successfully deployed another 1 on the  
same before, and though the neww app is successfully running on the  
developer’s server.

After lots of trials, setting files permissions, configuring  
enviroment.rb to point to the server’s rails version , configuring the  
ruby path in dispatch.fcgi, , I get the bowser error, “Something Went  
Wrong”. Checking the fastcgi.crash.log file I find the following error:

[31/Jan/2008:16:00:58 :: 11562] Dispatcher failed to catch: private  
method `split' called for nil:NilClass (NoMethodError) /usr/local/lib/ruby/1.8/cgi.rb:897:in`parse’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action\_controller/cgi\_ext/raw\_post\_data\_fix.rb:45:in  
`initialize_query' /usr/local/lib/ruby/1.8/cgi.rb:2270:in`initialize’  
/usr/local/lib/ruby/site\_ruby/1.8/fcgi.rb:594:in `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:141:in`process\_each\_request!’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi\_handler.rb:55:in  
`process!' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:25:in`process!’  
dispatch.fcgi:6  
almost killed by this error  
[31/Jan/2008:16:00:58 :: 11562] Dispatcher failed to catch: private  
method `split' called for nil:NilClass (NoMethodError) /usr/local/lib/ruby/1.8/cgi.rb:897:in`parse’  
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.2/lib/action\_controller/cgi\_ext/raw\_post\_data\_fix.rb:45:in  
`initialize_query' /usr/local/lib/ruby/1.8/cgi.rb:2270:in`initialize’  
/usr/local/lib/ruby/site\_ruby/1.8/fcgi.rb:594:in `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:141:in`process\_each\_request!’  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi\_handler.rb:55:in  
`process!' /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/fcgi_handler.rb:25:in`process!’  
dispatch.fcgi:6  
killed by this error

my new dispatch.fcgi file content is:  
#!/usr/local/lib/env ruby

require File.dirname( **FILE** ) + “/config/environment”  
require ‘fcgi\_handler’

RailsFCGIHandler.process!

Some1 plz advise as m starting to turn crazy, the only diff between this  
app and the older is that it contains facebook pluging but the plugin is  
properly located in the vendor folder, and all it’s related errors are  
now fixed!!

Any1 has any clue??!!

---

<div class="post-metadata">

**Author:** ![noham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@noham](https://www.ruby-forum.com/u/noham)\
**Post date:** [February 5, 2008, 8:51pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709/2 "2008-02-05T20:51:19Z")

</div>

> Some1 plz advise as m starting to turn crazy, the only diff between this  
> app and the older is that it contains facebook pluging but the plugin is  
> properly located in the vendor folder, and all it’s related errors are  
> now fixed!!

What plugin are you using? Rfacebook or Facebooker? I highly recommend  
using Facebooker over Rfacebook.

---

<div class="post-metadata">

**Author:** ![noham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@noham](https://www.ruby-forum.com/u/noham)\
**Post date:** [February 8, 2008, 7:24pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709/3 "2008-02-08T19:24:43Z")

</div>

why exactly do you highly recommend Facebooker over RFacebook, we are  
doing  
a site for facebook and are having a lot of trouble with the Rfacebook  
plugin, just wanting to find out if your problems are like ours.

On Feb 6, 2008 3:51 AM, Dustin A.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![noham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@noham](https://www.ruby-forum.com/u/noham)\
**Post date:** [February 12, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709/4 "2008-02-12T12:01:08Z")

</div>

Scott Ballantyne wrote:

> why exactly do you highly recommend Facebooker over RFacebook, we are  
> doing  
> a site for facebook and are having a lot of trouble with the Rfacebook  
> plugin, just wanting to find out if your problems are like ours.
> 
> On Feb 6, 2008 3:51 AM, Dustin A.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

m using Rfacebook, but why hould the other be better? will give it a try  
anyway , thk uu Dustin…

hey Scott, what sort of problems r u facing, mayb we can share any  
experience?

---

<div class="post-metadata">

**Author:** ![noham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@noham](https://www.ruby-forum.com/u/noham)\
**Post date:** [April 17, 2008, 9:11am UTC](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709/5 "2008-04-17T09:11:28Z")

</div>

I m also facing to see my rails application on facebook.  
I used rfacebook with rfacebooker plugin.  
canu guide my what is the my next step for seeing the Ror application on  
facebook.  
Bacoz i m new in it.  
So i have problem to configure the Ror application on facebook.  
can u guide me with proper steps?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![noham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/b5ac83/32.png) [@noham](https://www.ruby-forum.com/u/noham)\
**Post date:** [February 13, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/problem-with-deploying-a-facebook-application/127709/6 "2008-02-13T13:21:57Z")

</div>

using ajax first of all. facebook mangles the hell out of our ajax.  
also,  
we are using haml, and the syntax of fbml is making haml a little  
unhappy.  
But I’m not the lead dev on this project. I will check in with my  
colleague  
about the specifics and get back to you.

On Feb 12, 2008 7:01 PM, Noha Mostafa  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
