Two weeks after Facebook founder Mark Zuckerberg posted #JeSuisCharlie and vowed not to let extremists dictate the content on the social media site, Facebook has reportedly agreed to censor images of the Prophet Muhammad in Turkey.

The move comes as the Internet giant agreed to comply with a court demand in the country, the BBC reported. Facebook did not respond for comment in the article, but has in the past complied with local laws in various countries. If the company does not comply, it could be blacked out in the country.

"These companies might be U.S.-based, but their users are global -- they have to respect for local traditions and customs," a cybersecurity professor told the news agency.

The BBC report pointed out that Facebook has blocked an unspecified number of pages in Turkey that offended the Prophet Muhammad.

The company is required to follow laws in countries where it operates, but, as The Independent newspaper put it, to some "there's something a bit grating about the decision, coming so very soon after Zuckerberg's rosy-eyed epistle on free speech."

Shortly after the Charlie Hebdo attack in Paris, Zuckerberg took to Facebook to post, "I'm committed to building a service where you can speak freely without fear of violence." He recalled the time an extremist in Pakistan fought to have him sentenced to death over not banning content deemed offensive of the Prophet Muhammad.

The post continued, "We follow the laws in each country, but we never let one country or group of people dictate what people can share across the world."