A Turkish court has ordered Facebook to take down a number of pages that were deemed to be insulting the prophet Mohammad.