Facebook's moat is that it's the Yellow Pages of social.
It took the web to kill Yellow Pages, not a better phone book. Which is probably why you see FB investing in acquiring social-but-different competitors and researching paradigm shifts.
I'm sure no where near where facebook is with negative perception but it seems like small businesses at least could have viewed the yellow pages as problematic.
Also, Facebook has been around for about 18 years now. Myspace was a major player for like 4 years.
Stalin used to say that quantity has a quality all its own.
The world has changed. Even if Facebook decays, it could decay over literal decades, still being profitable. Yahoo is still around ($1.3bn in revenue), IBM is still around, SUSE is still around.
We only talk about the cool tip of the iceberg but IT/tech/software is huge.
Some gone, some still alive but all of them had what's FB's primary moat: network effect.
It's a strong moat but once things start to move to the wrong direction things can move fast... unlike with Walmart.