The feature set of Facebook is much more complicated than WhatsApp. Most of WhatsApps features come out of the box with ejabberd too (which is what they used in the beginning). Is it really a fair comparison?
But the feature set of Facebook is not all implemented in Haskell or OCaml either. There is lots of PHP etc.