First, find out what your district or school Acceptable Use Policy (AUP) says about posting student work and names online.
Students' first names may be published, along with group photos, as long as there is no indication which name belongs to which student.