The law could have avoided all of this by only restricting communications that would not be outside of the realm of what constitutes normal communications between a school employee and a student. That way, a counselor creating a FB page regarding scholarships information or when recruiters will be at the high school would not be illegal.
I grew up before the days of Facebook, but I had a few teachers that I'd consider friends. Isn't a close relationship between teacher and student something to be celebrated? A friendship with a teacher can lead to great things. Let's not try to destroy that over "think of the children" nonsense.
"Ninety percent of baseball is half mental." -- Yogi Berra