[Facebooker-talk] forms and IncorrectSignature (with test)

Mike Mangino mmangino at elevatedrails.com
Wed Dec 10 15:06:58 EST 2008


Lee, thanks for the test application. It appears that this is actually  
a Facebook bug.

http://bugs.developers.facebook.com/show_bug.cgi?id=544

Luckily, we can work around it. The newest version of Facebooker  
monkey patches Rails to remove facebook parameters from the get  
parameters. It only does this if there are post parameters, so you can  
still stick the Facebook parameters in a request to an IFrame to make  
the IFrame share a session with your Facebook request.

Mike

On Dec 10, 2008, at 6:50 AM, Lee Mallabone wrote:

> Hi,
>
> I'm trying to get a form to work on a facebook canvas page with  
> method="get".
>
> As I understand it, this should be possible. However, every time I
> change my (perfectly working) form a POST form to a GET form, I get
> the Facebooker::Session::IncorrectSignature exception raised.
>
> I've created a trivial test app that demonstrates this behaviour
> outside of my app. It can be downloaded from:
> http://www.crossbonesystems.com/wp-content/uploads/2008/12/fbformhelp1.zip
>
> Just drop in any working facebooker.yml in the config directory and
> the latest facebooker plugin (from github) into vendor/plugin and
> navigate to:
>
> http://apps.facebook.com/YOURAPP/runme/test
>
> You should see a simple page with two forms: one is a POST form (that
> works), the other is a GET form (that throws the above). They use the
> standard form_for helper (not the facebook_form_for).
>
> Can anyone verify my results? Am I missing a step in my form
> generation or is this a bug in facebooker? Mike, any pointers on how I
> can help fix this?
>
> Thanks,
> Lee.
>
>
> --
> Lee Mallabone.
> Crossbone Systems Ltd.
>
> http://www.crossbonesystems.com/
> http://www.fonicmonkey.net/
> http://CambridgeWebHeads.ning.com/
>
>
>
> --
> Lee Mallabone.
> Crossbone Systems Ltd.
>
> http://www.crossbonesystems.com/
> http://www.fonicmonkey.net/
> http://CambridgeWebHeads.ning.com/
>
>
>
> -- 
> Lee Mallabone.
> Crossbone Systems Ltd.
>
> http://www.crossbonesystems.com/
> http://www.fonicmonkey.net/
> http://CambridgeWebHeads.ning.com/
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk

--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list