Question: what language facebook apps are written in?
Answer: The frontend is written in PHP (programming language). Much of it is written using XHP, and the runtime is HipHop for PHP. Like most websites there's a lot of JavaScript (programming language) running in the users' browsers.