Bangladesh lifted a ban on Facebook on Thursday, three weeks after blocking it in anticipation of protests after the Supreme Court upheld death penalties on two opposition leaders, a government official said.

Four days after the Nov. 18 ban on Facebook, WhatsApp and Viber, Salauddin Quader Chowdhury and Ali Ahsan Mohammad Mojaheed were hanged simultaneously for atrocities committed during the 1971 war of independence.

Tarana Halim, the junior minister for post and telecommunications ministry said at a news conference in the capital Dhaka that the government was grateful to younger Bangladeshis in particular for not protesting over the hangings.

There was a one-day national general strike in peaceful protest the day after the court’s decision and again the day after the hangings.

She told reporters the ban on WhatsApp and Viber would remain in place for now.

Muslim-majority Bangladesh has seen a rise in Islamist violence in recent months, with two foreigners and four secular writers and a publisher killed this year.