A WREXHAM burglar was identified thanks to the photograph on his Facebook profile.
Joshua John Roberts, 19, raided a house while he was still on early release licence from a previous sentence.
Roberts was arrested after a witness got his name after checking his Facebook prolife picture.
Roberts faced a statutory minimum three year youth custody sentence because of his previous convictions but was given a 20 per cent discount for his guilty plea at a preliminary hearing and received a sentence of two years and five months.
Paul Abraham, defending, said Roberts knew that unless he changed his ways the custodial sentences would simply get longer and longer.
Roberts, of Mold Road, Wrexham, together with an accomplice, burgled a house at Y Wern on November 6 last year.
The homeowners were at work when a window was smashed and a laptop computer valued at £600 was stolen.
Gareth Parry, prosecuting, said the computer had never been recovered.
A witness saw two men running away from the house and believed one of them was named Josh who lived locally.
She went home and examined Facebook and was able to identity the defendant from his Facebook page and his profile photograph.
Police were shown the photograph, an officer recognised him and Roberts was arrested.
He gave a no comment interview but forensic examination of broken glass at the scene, together with footwear marks, linked him to the burglary.
Mr Abraham said the laptop was on view and the defendant and his accomplice decided to take it.