Facebook, Twitter and other social media sites are being forced to remove offensive content or face fines of up to $60m.