A Long Island teenager is accused of threatening on Facebook to carry out a shooting at a school, authorities said.

A Bay Shore teenager created a Facebook page using the name of a girl in his class, Suffolk County cops said. He then posted a threat on that page about committing a shooting at their school on December 19, police said.

Detectives investigated and traced the Facebook page to the teenager and arrested him.

Authorities charged the 14-year-old boy with making a terroristic threat, a class D felony. He was released to his mother and is required to appear in Family Court on January 2, 2013, police said.

"The Suffolk County Police Department takes all threats seriously, will conduct full investigations and make any and all appropriate arrests," the department said in a statement.

The arrest came less than a week after a Connecticut man, Adam Lanza, forced his way into an elementary school and killed 20 children and six adults and then committee suicide.