Three Moroccan teenagers arrested for posting photos of themselves kissing on Facebook were released to their parents on Monday ahead of their trial for breaching public decency, judicial sources said.

The young couple and a male friend who took the photos had been held in a juvenile detention centre in the northern city of Nador since Thursday, as their arrest sparked outrage on social media.

Cultural clash: Three teens facing charges of public indecency.

After the detainees formally asked to be released, the judge on Monday agreed to their request and ordered that they be delivered to their parents, the public prosecutor said.

The teenagers, aged between 14 and 15, were arrested after a Moroccan NGO filed a lawsuit at the end of September which charged that the photos "deeply affect Moroccan education and culture, and upset people's feelings."