You can create a Facebook application using any language / framework / etc. The application is uploaded to Facebook Canvas (iframe), but your application is not hosted on Facebook itself, but hosted on an external web server of your choice. Therefore, as long as your server supports the language of your choice, you are well off.
source share