A Pakistani court has awarded the death sentence to four men for uploading blasphemous content on Facebook, an official said on Saturday.