A SWANSEA Valley sex offender logged on to a social networking site despite an order banning him from accessing the internet, Swansea Crown Court has been told.
Andrew Liney, of High Street, Pontardawe, logged on to Facebook by using computers in local libraries, the court heard.
But he had earlier been prohibited from using the internet under a Sexual Offences Prevention Order.
Liney, aged 26, of High Street, Pontardawe, received a 26-week jail term suspended for 12 months after admitting breaching the order.
He was also made the subject of an eight-week, 9pm-6am curfew with electronic tagging.
Mikhael Paur, prosecuting, said Liney had pleaded guilty to 21 counts of possessing indecent images of children in December 2006.
The charges followed a police search at his home the previous year which led to the discovery of 1,461 images on his computer.
Liney had earlier been made the subject of a three-year community rehabilitation order for gross indecency and a Sexual Offences Prevention Order barring him from accessing the web.
But Mr Paur explained evidence recently came to light that the defendant had accessed the internet by logging on to Facebook at Swansea Central Library.
Sentencing Liney, Judge Peter Heywood noted the defendant had logged on using a name other than his own and added he could not accept Liney had not understood the precise terms of the order which he was subject to.