Here's the *other* problem I ran into...
To recap:
Within the last two weeks, I installed Facebooker using the normal
(script/plugin install git://
github.com/mmangino/facebooker.git)
route.
I just got through Chapter 7 of Mangino's Facebooker book, but the
AJAX comment system wasn't working. Once I fixed the paramaters-
parsing error, I found that request.xhr? was not returning true when
the AJAX call was received.
I noticed that Facebook was in fact sending the fb_sig_is_ajax => 1
parameter, so I figured there was something wrong with how Facebook
and xhr? were interacting.
I found the facebook_request_fix.rb file, which seemed to be
addressing this very issue by checking for the "fb_sig_is_mockajax"
and "fb_sig_is_ajax" parameters as indicators that FB was sending us
an AJAX request. However, I also found that that fix is not
implemented for Rails 2.3 and higher, and I am running Rails 2.3.2.
Is Rails 2.3 somehow supposed to understand some indicator from
Facebook that the request is AJAX? Or is there some other code that is
supposed to be dealing with this?
For now, I'm simply checking for
request.parameters["fb_sig_is_mockajax"] == "1" ||
request.parameters["fb_sig_is_ajax"] == "1" || request.xhr?
to see if the request is AJAX, so I'm okay.
But I figured there must be something wrong here, so I wanted to bring
it up on the list.