Many interviews casually ask you to implement a chatting app. By yourself.
But I agree that Facebook is significantly larger in scope.
For example, they didn't store contacts/images/messages server-side as you see in Telegram, Google ChatAppOfTheWeek, FB messenger, Twitter, IG, etc. All the infrastructure and the folks required to develop and maintain it, simply didn't exist. Similar with the limited amount of data collection they did at the time -- if you don't log it you there is no reason to have a team of people to analyze it. If you don't have ads you don't need an ad sales team. Etc.
To continue to grow they needed to buy Facebook and Instagram. They scaled up their infrastructure - lots of system administrators. They needed more sales people and corporate campaign managers to get advertising in. More moderation, because governments started passing internet content laws. Spam detection. Customer support. Automated content blocking. More legal teams, because they are constantly under legal attack. Don't forget all these laws and what is acceptable or not changes by country - so they need a team in every country to handle that. Then there's VR, Meta AI, the 'Metaverse', and their whole R&D division.
It was always a struggle to hire enough engineers to accomplish my team's goals, and it only got worse as time went on. We didn't have a terrible on-call or terrible team morale, we just tended to lose out to teams working on more visible projects. We could have doubled our headcount and still had a backlog of impactful work we couldn't get to.
87000 people to run Facebook sounds a little ridiculous.
These tech companies sounds like colleges these days where the number of administrators has grown 10X and the amount of teachers has stayed the same.
Use your money to hire people that directly contribute to your product. Use profits to "do good" after.