RFacebook on Rails update
The latest gem (0.8.8) adds support for mock ajax and Rails sessions when you are inside the Facebook Canvas. Detailed summary below
- Rails session[] and flash[] work (only ActiveRecord and PStore session containers, memcached store in a future release)
- Added in_mock_ajax? to all controllers, so that you know when you are handling a mock ajax operation
- Added support for a new url_for parameter, :mock_ajax => true, so that you can override the http://app.facebook.com rewriting (since mock ajax URLs have to be absolute)
- Fixed a bug where ampersands were being converted to & entities in URLs received from the API. Now, you can use fbsession.notifications_sendRequest(…).response, and the entities will automatically be gsub’ed with real ampersands
Thanks to everyone who filed bugs and contributed patches for this release! It’s looking pretty solid.
August 16th, 2007 at 7:15 pm
Hi Matt - I’m the one who logged the bug about the &s. I have been trying for the last 30 mins to post on the forums at http://facebook.jdg.net/ , but I haven’t been able to successfully create an account.
upgrading to 0.8.7 resulted in some problems with redirect_to, similar to problems I was having with a previous rev (0.8.3, I think). we had a brief exchange about those problems, as I recall. reverting to 0.8.6 solved the problems for me.
Thanks for all your work so far on rfacebook! I launched my app yesterday at about this time. 83 users and counting.
I’ll do my best in the future to contribute fixes and bug reports.
Ben
August 17th, 2007 at 10:26 am
Hey Ben, glad to hear that RFacebook is working out for you. Could you try out the 0.8.8 gem and let me know if it fixes your problem with redirect_to? If 0.8.8 doesn’t fix it, please head over to http://rubyforge.org/tracker/?func=add&group_id=3607&atid=13796 and submit a more detailed description of the bug so I can get that taken care of.