Revenue is not a good comparison, e.g. Ford has much higher revenue than Apple. Net retained earnings [profit] is what matters and that is unreported because Facebook is a private company.
There are plenty of other potential revenue streams, but these two alone make the valuation seem like not so much of a stretch — they might just be a $20b company, but then again, they could conceivably end up being a $200b company.