Sounds like they tried to restrict and killed an/their own ("unofficial") API, and shot themselves into the foot.
This new twitter incident could well be a result of layoffs and the resulting loss of institutional knowledge, but that's hardly a foregone conclusion.
[0] https://en.wikipedia.org/wiki/2021_Facebook_outage
[1] https://blog.cloudflare.com/cloudflare-outage-on-june-21-202...