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.