The ban on Facebook drew both praise and condemnation in a country that has long struggled with how strict a version of Islam Pakistan should follow .