Government officials had repeatedly warned Facebook, which also owns Instagram and WhatsApp, that the posts could lead to violence."
Sri Lanka isn't trying prevent people from communicating with each other or censorship. Sounds like they've been bitten by social media-driven violence in the past, which wouldn't be the first country to see this phenomenon (Myanmar).
It's so easy to assume a corrupt government motive here, but we've seen ethnic violence perpetuated on social media in the past. What's a government supposed to do when that happens?