If any other country in the world did this to, say, Facebook, we would denounce them as an illegitimate dictator. Astonishing.
However, Iran banned Facebook merely because it was being used by protesters to share content about police brutality during protest.
So I'm not sure if that's a fair comparison.
I think governments are realizing that social networks are important strategic service because of the amount of data they capture. Before internet era countries were protecting way less data about their citizens with their teeths.