The only big companies that seem to be able to diversify their income somewhat are Microsoft and Amazon.
Microsoft makes its money from various products and services, and Amazon now makes a lot of money from AWS let alone its online shopping.
Compared to those two Google and Facebook are one hit wonders.
Amazon loses money on their online shopping. It is their consumer-facing offering so it grows their brand, while they make their money via services like AWS.