The linux kernel is mainly written in C, with some hardware specific code using Assembly.
Distributions like Ubuntu use C/C++.
Also they use some python, ruby and more...
Android is like a distribution of Linux. The apps from Android can be written in Java (most of them) or C/C++. The facebook app for android use HTML5.