Facebook and other social media services were blocked or restricted across Sri Lanka on Wednesday afternoon to prevent the spread of anti-Muslim posts the government said were helping to fuel the violence, which it has blamed on hardline Buddhist groups accused of bussing supporters into the district.