A 19-year-old New York man who was arrested for armed robbery has been exonerated thanks to a status update he posted on social networking site Facebook.

Rodney Bradford was arrested and held for 12 days in connection with an October 17 armed robbery of two people in the Brooklyn housing project where he lives, prosecutors said.

But he insisted he was in Manhattan at the time of the crime -- a claim he backed up by an update he made to his Facebook page from a computer in his father's Manhattan building, prosecutors said.

A spokesman at the Brooklyn District Attorney's office acknowledged that Facebook played a role in the dismissal of charges.

(Reporting by Edith Honan; Editing by Michelle Nichols)