The Sri Lankan government on Sunday blocked social media platforms such as WhatsApp, Twitter, Facebook and Instagram after declaring a nationwide public emergency and imposing a 36-hour curfew ahead of a planned anti-government rally over the worst economic crisis in the island nation.