It came down to social media, paid informants and undercover agents who embedded themselves in the groups and secretly recorded what they saw and heard