One way to look at this is to say "Hah, how shameful."
The other way to look at this is to say "Hah, clearly business success isn't a function of code quality"
The other way to look at this is to say "Hah, clearly business success isn't a function of code quality"
Mind you, early Facebook wasn’t exactly a “tech business”—the code wasn’t making them any money, such that having a bug in the code would make them less money.
Really, Facebook only became a “tech business” once they got into 1. Messaging, and 2. Advertising. Then they had SLAs, and breaking those SLAs meant losing users/customers; and their ability to deliver on those SLAs became directly related to the quality of their code.
They aren't nearly as strongly correlated as many developers might like to believe.
Knowing what to make and who to market it to will usually matter a lot more than how you build it.