A suspect in the murder of Lucy McHugh, 13, was jailed for withholding his Facebook password.