Different renderings within the same format

I would like to write the same application for Facebook web app and Standard web users, but the Facebook layout is restricted, so I would have 2 html format layouts....

what is the best way to respond to html request from FB users and 'standard' users on the web.. ? what I should test in the request to select the correct layout ?

thanks for your feedback

I would like to write the same application for Facebook web app and Standard web users, but the Facebook layout is restricted, so I would have 2 html format layouts....

what is the best way to respond to html request from FB users and 'standard' users on the web.. ?

you can create pseudo mime types. I've most often seen this in the context of doing mobile web versions, but I imagine the same technique should work (one writeup of this is at http://nathanhoad.net/intro-to-iphone-optimising-your-rails-site)

what I should test in the request to select the correct layout ?

don't know.

Fred