FACEBOOK showed "predatory" gay conversion therapy adverts to young LGBT people designed to "shame" and "hurt" them.

Some users reported seeing the ads promoting "sexual purity" and "gay cures" as a result of the other Facebook pages they had shown an interest in, according to the Telegraph.

2 Facebook says the "hurtful" ads were down to an algorithm blunder Credit: Getty - Contributor

When outraged users clicked on the "why I am I seeing this ad?" option they were told that Facebook believed they were interested in "gender issues".

One of the ads was a video called "Homosexuality was my identity" that was promoting gay conversion therapy: a form of treatment that aims to change a person's sexual orientation based on the assumption that homosexuality is a mental illness that can be "cured".

Several organisations, including NHS England, the British Psychological Society, and the Royal College of Psychiatrists published a “memorandum of understanding” in 2014 describing conversion therapy as “unethical and potentially harmful”.

Facebook user Tessa Ann Schwartz, who complained after viewing one of the ads on the social network, said: “I don’t know why Facebook has permitted this group to target LGBT people, who have intentionally sought out community and education amongst peers, for shaming and hatred masked as love.”

2 Facebook recently promised to quash 5,000 ad-targeting features to prevent "discrimination" Credit: Corbis - Getty

Another conversion therapy ad promoted a self-help book called Help for Men with Same-Sex Attraction.

Alystair Ryder, a user who saw the advert, said he felt "shaken" by it, adding that “it was written in a way to try to appeal to people who may be depressed or self loathing due to their sexuality".

He continued: "I think it’s pretty irresponsible for Facebook to allow an advert that preys on gay men with mental health issues in such a negative way on their homepage.”

We reached out to Facebook but did not immediately receive a response.

The company told the Telegraph that a "micro-targeting" algorithm blunder caused the since removed ads to appear on young LGBT users' feeds.

This isn't the first time Facebook's ad-targeting tool has come under fire.

Most read in tech TECHCELLENT Amazon unveils flying drone camera that chases burglars from your home 'APPY DAYS NHS Covid-19 app – Does it work on my mobile and can old iPhones download it? Video STARSHIP BLOOPER SpaceX EXPLODES Starship rocket tank on purpose during dramatic test NEXT TOP MODEL PS5 sold out almost EVERYWHERE – here's where you might still get one today WATCH THIS SPACE How to watch the International Space Station TONIGHT PLAN-IT Jupiter is so bright you can see it from the UK with the naked eye TONIGHT

Back in 2016, the social network was forced to tighten controls after it was revealed that its ad buying service allowed marketers to exclude select ethnic groups from housing and employment posts, a move that US lawyers and civil rights activists slammed as unlawful.

It again caused a furore the following year when a report exposed its bigoted categories that allowed customers to target "jew haters" among those with antisemitic interests.

Facebook admitted that the topics were “totally inappropriate and a fail on our part”.

The company, which gets a cut from the ads shown on its social network, made $39.9billion (£31.1billion) in advertising revenue in 2017.

Have you seen any dodgy ads on Facebook? Let us know in the comments.

We pay for your stories! Do you have a story for The Sun Online news team? Email us at tips@the-sun.co.uk or call 0207 782 4368 . We pay for videos too. Click here to upload yours.