According to the American Civil Liberties Union, it is illegal for a school to out a student, even to their parents. However, there are no laws governing outing on social media for anyone else.