The High Court in Belfast has ordered Facebook to remove a page set up to monitor paedophiles in Northern Ireland.
The case was taken by a convicted sex offender who claimed he faced being attacked because of threatening comments posted on the social networking site.
The judge ruled that some of the contents of the Facebook page amounted to prima facie harassment of the man and risked infringing his human rights.
Facebook was given 72 hours to take down the page - 'Keeping Our Kids Safe From Predators'.
The man, who is out on licence having served a six-year sentence for child sex offences committed over 20 years ago, issued proceedings against Facebook after he discovered his photograph and threatening comments posted on the page.
The court heard he feared being attacked or burnt out of his rented accommodation.
Facebook later removed his photograph and the comments made about him but argued in court that closing down the page was neither necessary nor proportionate.