I always thought Facebook was dumb for not branching out more to diversify their income from purely social ads. I always thought their own search engine made sense, although that would also be ad based revenue.
Monetizing their infrastructure and AI stuff via cloud services makes sense to me, although they may not have the cultural DNA to do it well. Google's struggles compared to AWS and Azure show it's not just the quality of tech that matters for B2B