A Minnesota burglar was arrested after using a victim's home computer to log into Facebook, and forgetting to sign out before he left.

Nick Wig, 26, was arrested last Thursday after allegedly breaking into the South St. Paul home of James Wood, according to ABC News.

Wood arrived at his home on Thursday morning to find his door unlocked and the outer screen of his window removed. He noticed several items missing from his home.

"Credit cards, cash for a soccer tournament, checkbook, watch," were all stolen, Wood told WCCO-TV."[I] kind of started to panic."

A photo of Nick Dub on his Facebook page says "I'll be where the cash at..."Facebook photo

But he noticed something strange, too. Someone named "Nick Dub," later identified as Nick Wig, had logged onto his Facebook page using Wood's computer. Next to the computer was a pile of wet shoes and jeans.

Wood saw an opportunity. He updated "Nick Dub's" status, sharing one of the man's photos on his timeline along with the caption "Watch out for this guy. He's a thief."

Wood also left his phone number and told anyone with information on Wig to contact him, KXAN-TV reported.

"He text me at 7 p.m." Wood said.

That's right. Wig actually sent Wood a text, and Wood responded, "You left a few things at my house last night. How can I get them back to you."

Wig agreed to meet Wood to exchange the recycled phone he had stolen from Wood's home for clothes he left at the scene of the crime. As Wood waited to make the exchange, he spotted a man that looked like Wig approaching and called the police.

Officers arrested Wig, who was wearing the same watch he had stolen from the home earlier in the day, ABC reported. Wig said he would give everything back, and admitted to entering the home, stealing Wood's property, and logging onto Facebook on Wood's computer.

"World's dumbest criminal, I don't know," Wood told WCCO.

"This is a first case in Dakota County in which a suspected burglar left his Facebook profile on the computer screen of the victim's computer," said Monica Jensen, a spokesperson for the Dakota County Attorney's Office.

Wig's bail was set at $12,000 on the condition that he had no contact with the victim and no alcohol or substance use. He has an extensive criminal history including second-degree burglary, domestic assault convictions and pending drug charges.

If convicted he faces up to 10 years in jail and up to $20,000 in fines, authorities said.