It's a heavily augmented PHP. There's also a good bit of C++, Erlang, Python and D in there as well.
Same with Instagram?
I don't think java is used in Facebook or Instagram.
It seems like mainly php (or similar) platforms.
Here is a very detailed answer: http://www.quora.com/What-programming-languages-are-used-at-Facebook
Separate names with a comma.