A gang of brazen criminals linked to a series of burglaries in Brooklyn were busted after they boasted about their crimes on Facebook, authorities said.

According to police, the group, made up of 14 young men between the ages of 13 and 20, are in police custody and charged with several burglaries and assaults.

The group would use fire escapes to gain access to their victims' apartments, preying on open windows and unanswered doorbells.

In one robbery, members ambushed a 22-year-old woman who they brutally gang raped inside her Bed-Stuy apartment.

Commissioner Ray Kelly said Wednesday, the gang was taken after a series of postings on Facebook where members apparently joked about being busted by police. In a series of posts, members even argued about dibs on proceeds and merchandise from a recent break-in.

An NYPD detective friended one of the suspects, which ultimately led to officers being on the scene of a burglary in progress.

The identities of the men weren't immediately released.