The ruling came after Turkish prosecutors investigated the social media pages following a deadly attack on the Paris offices of French satirical magazine Charlie Hebdo on January 7.
The court ruled yesterday that Facebook would be shut down altogether in Turkey if it fails to implement the order, state-run Anatolia news agency reported.
Earlier this month Turkish daily newspaper Cumhuriyet printed a selection of cartoons in a show of solidarity with Charlie Hebdo.
