The Minnewaska School District in Minnesota has agreed to pay a former sixth grader $70,000 to settle a 2012 lawsuit involving the student's Facebook posts.
ABC News reported the case surrounding now 15-year-old Riley Stratton started when she posted a status about a teacher's aid.
"I posted on my Facebook and said I didn't like this Kathy person … I hated this Kathy person because she was mean," Stratton said.
Even though the comments were made on Stratton's home computer, she said the school gave her detention and made her write a letter of apology.
A few days later Stratton got into trouble for her Facebook account again after school officials received a complaint that she and a male classmate were having explicit private conversations on the social networking site.
Stratton was then asked to share private information with the school officials regarding her Facebook account.
"They interrogated me and told me to give them my password," she said. "I didn't want detention, so I had to give them this."
Stratton and her family joined forces with the American Civil Liberties Union and sued the school district, stating her constitutional rights were violated.
The two sides have settled the lawsuit.
The school district has updated its policies regarding the search of devices and social media accounts.
*ABC News and the Associated Press contributed to this story.