Antonia Lopez admitted to throwing her newborn daughter out a second-floor window

A 16-year-old girl who admitted to killing her newborn daughter by throwing the 'secret baby' out of a second-floor window has walked free and been given probation.

Antonia Lopez gave birth in secret in her Omaha, Nebraska, bedroom on September 30, 2016, before throwing the baby out the window and soliciting help in getting rid of the body on Facebook.

The baby, who was about two months premature, suffered fatal injuries when she hit the ground.

She was originally charged as an adult but entered a plea of admission after her case was moved to the juvenile court.

On Friday a judge sentenced her to probation, ordered her to live in a group home, take part in individual and family therapy and perform 50 hours of community service.

Judge Christopher Kelly also ordered her to delete her Facebook account.

The Omaha World-Herald reported that Lopez's defense attorney, Rebecca McClung, told the court: 'She's coping the best she can. Her mother is coping the best she can. The grandmother is coping the best she can.'

Lopez denied knowing she was pregnant but messages on her Snapchat and Facebook accounts suggested she did realize and kept it hidden for months.

McClung told the court Lopez had thought the child was stillborn.

When a friend responded to her Facebook status (above), Lopez asked for help getting rid of the baby and requested trashbags, according to police

Lopez (pictured, left) was originally charged as an adult, entered a plea of admission after her case was moved to the juvenile court due to her lack of criminal record and her mental state

Douglas County Attorney Don Kleine, whose office agreed to move the case down to the juvenile court based on Lopez's mental state and the lack of a criminal history, said the teen's reaction was not premeditated.

He said: 'It wasn't a planned-out, thought-out process. It was more of a panicked reaction.'

Kleine said: 'She obviously has some issues that need to be dealt with.'

The baby, measuring 14 inches long and weighing just two pounds, suffered bleeding near the skull, brain, spine and abdomen before she was pronounced dead, an autopsy revealed

The teenager told police she didn't know she was pregnant when she woke up on September 30 - a claim her boyfriend disputed.

She began pushing the baby out onto a towel she laid on the ground and pierced the amniotic sac with a nail clipper, police said.

Lopez panicked and threw her baby out the window, and her mother later called 911 after she found the child in the grass below. The baby was pronounced dead by the time she was taken to the hospital.

A pathologist told police the baby was alive when she was thrown out the window, even though Lopez told her boyfriend: 'Babe I had a miscarriage.'

Lopez sent her boyfriend several text messages between 12.56am and 3.06am, including one that read: 'Babe I’m having contractions in my lower abs every couple seconds. It hurts so much.'

Less than two hours later, she wrote: 'It was a girl by the way.'

She later sent another text that read: 'Babe we can try again if you still want to be with me.'

A previous post dating back to January 2016 (pictured) shows the girl with a baby doll for a school assignment on parenting. She wrote: 'This thing so annoying'

Lopez also posted a Facebook status at 3.40am, just 32 minutes before paramedics were dispatched to her home.

The update read: 'Who can do me a huge favor and has a car?' followed by three crying emojis.

When a friend responded, Lopez asked for help getting rid of the baby and asked for trashbags and a car, according to Omaha Police Officer Chad Kavar's testimony.

A previous post dating back to January shows the girl with a baby doll for what appeared to be a school assignment on parenting, with the caption: 'This thing so annoying.'

Douglas County Attorney Don Kleine, said of Lopez (pictured): 'It wasn't a planned-out, thought-out process'