Facebook had $1B in profit in 2011(1), the IPO was mid 2012. Maybe it wasn't enough to justify the $100B+ valuation at IPO but at least they had their business figured out; which is not the case for Snap, yet..
(1): https://techcrunch.com/2012/02/01/facebook-1-billion-profit/