Even if facebook isn't doing fine, instagram is. Instagram is eating the market of younger people who would have used facebook. Either way meta wins.
In a lot of those growing markets, Facebook is the main (or only) way of having a web presence for their business. WhatsApp is similarly the main way to have IM support, as well.