The Texas school shooter has written a Facebook message 15 minutes before proceeding with his plans on the Robb Elementary School shooting, which killed 19 children and two teachers.

NBC News reported that the suspect barricaded himself inside a classroom and fired indiscriminately, according to officials.

Texas Gov. Greg Abbott said at a news conference that the suspect did not have "meaningful forewarning" of the violence he intended to unleash except for the Facebook message.

There were two other Facebook messages before announcing that he will be shooting an elementary school.

One stated that he will be shooting his grandmother, while the other confirmed the completion of his act to shoot his grandmother.

A spokesperson for Facebook's parent company Meta. Andy Stone, said that the warnings were sent in private one-to-one text messages that were found after the shooting.

Stone said in a tweet that Facebook is currently cooperating with law enforcement.

READ NEXT: Florida Condo Collapse: Architect Suspended Over Toppling of Other Structures in Miami   

Texas School Shooter

The Texas school shooter has been identified as 18-year-old Salvador Rolando Ramos.

Associated Press News reported that Ramos had used an AR-15 style semi-automatic rifle at Robb Elementary School in Uvalde.

Ramos had bought the rifle and a second one like it last week, just after his birthday on May 16, according to authorities.

The state governor noted that Ramos had no known criminal or mental health history. The suspected shooter was also a resident of the small town about 85 miles west of San Antonio.

Investigators had not released any motive for the attack. The shooting has also left at least 17 people wounded.

The Republican governor had repeatedly talked about mental health struggles among Texas young people, arguing that stricter gun laws in Chicago, New York, and California are ineffective.

Abbott made the statement amid calls around the U.S. for higher restrictions on firearms.

Democrat Beto O'Rourke, who is running against Abbott, said that this is on the Republican governor until he chooses to do something different.

Texas Elementary School Shooting

U.S. President Biden said that he would travel to Uvalde in the coming days to try to comfort the residents.

However, Biden did not call on Congress to take up gun safety legislation. The president instead said that the "Second Amendment is not absolute" and the earlier gun safety laws did not violate its constitutional protections, according to a New York Times report.

Abbott has been hesitant to touch on the topic of enforcing stricter gun laws, citing that Chicago, Los Angeles, and New York show that tougher gun laws are not going to solve mass shootings.

Gov. J.B. Pritzker of Illinois replied by saying that the majority of guns used in the Chicago shootings come from states with "lax gun laws."

Meanwhile, Ramos had been reportedly messaging his plans with a 15-year-old girl in Germany, whom he had recently met online.

The girl said that Ramos has video-called her in the days around his birthday from a gun store, with Ramos showing her a black bag that seemed to hold many magazines of ammunition and at least one gun.

READ MORE: Florida Gov. Ron DeSantis Ignores U.S. Pres. Joe Biden's Request for National Guard Troops at State of the Union

This article is owned by Latin Post.

Written by: Mary Webber

WATCH: Texas shooting: video appears to show gunman on school grounds - from The Telegraph