Lee Mallabone
2008-Dec-10 11:50 UTC
[Facebooker-talk] forms and IncorrectSignature (with test)
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/
Mike Mangino
2008-Dec-10 14:26 UTC
[Facebooker-talk] forms and IncorrectSignature (with test)
We''ve had reports of this before, I just haven''t spent any time looking at it. I don''t know that anyone else has either. I''ll try to look at it this week. 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
Mike Mangino
2008-Dec-10 20:06 UTC
[Facebooker-talk] forms and IncorrectSignature (with test)
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
Lee Mallabone
2008-Dec-11 21:53 UTC
[Facebooker-talk] forms and IncorrectSignature (with test)
Hi Mike, Thanks for investigating this further. I''ve added my votes to that bug. I''m afraid I don''t think I understand your workaround fully: how would the iframe interact with my GET-based form? Thanks, Lee. 2008/12/10 Mike Mangino <mmangino at elevatedrails.com>:> 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 > > > >-- Lee Mallabone. Crossbone Systems Ltd. http://www.crossbonesystems.com/ http://www.fonicmonkey.net/ http://CambridgeWebHeads.ning.com/
Mike Mangino
2008-Dec-11 22:24 UTC
[Facebooker-talk] forms and IncorrectSignature (with test)
Sorry for the long windedness. Try the newest version of Facebooker. I think it fixes your problem. Mike On Dec 11, 2008, at 4:53 PM, Lee Mallabone wrote:> Hi Mike, > > Thanks for investigating this further. I''ve added my votes to that > bug. > > I''m afraid I don''t think I understand your workaround fully: how would > the iframe interact with my GET-based form? > > Thanks, > Lee. > > > 2008/12/10 Mike Mangino <mmangino at elevatedrails.com>: >> 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 >> >> >> >> > > > > -- > Lee Mallabone. > Crossbone Systems Ltd. > > http://www.crossbonesystems.com/ > http://www.fonicmonkey.net/ > http://CambridgeWebHeads.ning.com/-- Mike Mangino http://www.elevatedrails.com
Lee Mallabone
2008-Dec-12 20:14 UTC
[Facebooker-talk] forms and IncorrectSignature (with test)
Hi Mike, I did a git pull on my local copy of facebooker but I''m still seeing the issue with GET forms in my rails test app. Do I need to configure the workaround explicitly? Thanks, Lee. 2008/12/11 Mike Mangino <mmangino at elevatedrails.com>:> Sorry for the long windedness. Try the newest version of Facebooker. I think > it fixes your problem. > > Mike > > On Dec 11, 2008, at 4:53 PM, Lee Mallabone wrote: > >> Hi Mike, >> >> Thanks for investigating this further. I''ve added my votes to that bug. >> >> I''m afraid I don''t think I understand your workaround fully: how would >> the iframe interact with my GET-based form? >> >> Thanks, >> Lee. >> >> >> 2008/12/10 Mike Mangino <mmangino at elevatedrails.com>: >>> >>> 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 >>> >>> >>> >>> >> >> >> >> -- >> Lee Mallabone. >> Crossbone Systems Ltd. >> >> http://www.crossbonesystems.com/ >> http://www.fonicmonkey.net/ >> http://CambridgeWebHeads.ning.com/ > > -- > Mike Mangino > http://www.elevatedrails.com > > > >-- Lee Mallabone. Crossbone Systems Ltd. http://www.crossbonesystems.com/ http://www.fonicmonkey.net/ http://CambridgeWebHeads.ning.com/
Lee Mallabone
2008-Dec-15 19:48 UTC
[Facebooker-talk] forms and IncorrectSignature (with test)
Mike, I was still seeing the same errors in the test app after updating from github. I just installed rails 2.2.2 and generated a new test app and with the latest facebooker the GET forms seem to work fine. I guess the fix just doesn''t take on rails 2.1.1 for some reason! Thanks for the patch, much appreciated. Lee. 2008/12/12 Lee Mallabone <lee at crossbonesystems.com>:> Hi Mike, > > I did a git pull on my local copy of facebooker but I''m still seeing > the issue with GET forms in my rails test app. Do I need to configure > the workaround explicitly? > > Thanks, > Lee. > > > 2008/12/11 Mike Mangino <mmangino at elevatedrails.com>: >> Sorry for the long windedness. Try the newest version of Facebooker. I think >> it fixes your problem. >> >> Mike >> >> On Dec 11, 2008, at 4:53 PM, Lee Mallabone wrote: >> >>> Hi Mike, >>> >>> Thanks for investigating this further. I''ve added my votes to that bug. >>> >>> I''m afraid I don''t think I understand your workaround fully: how would >>> the iframe interact with my GET-based form? >>> >>> Thanks, >>> Lee. >>> >>> >>> 2008/12/10 Mike Mangino <mmangino at elevatedrails.com>: >>>> >>>> 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 >>>> >>>> >>>> >>>> >>> >>> >>> >>> -- >>> Lee Mallabone. >>> Crossbone Systems Ltd. >>> >>> http://www.crossbonesystems.com/ >>> http://www.fonicmonkey.net/ >>> http://CambridgeWebHeads.ning.com/ >> >> -- >> Mike Mangino >> http://www.elevatedrails.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/