Drayton Dwayne Preston broke into the bedroom of a 17-year-old Calgary girl who was passed out after partying with friends, raped her and then returned an hour later to sexually assault her twice more, while using her phone to take photos and video, which he posted to Facebook.

The victim, who can't be identified because of a publication ban, was in court in Calgary on Tuesday as Preston was taken into custody by a sheriff to serve a 26-month prison sentence.

Those details of Preston's crimes are contained in an agreed statement of fact prepared by defence lawyer Rame Katrib and prosecutor Pam McCluskey. Preston pleaded guilty to sexual assault several months ago.

Broke into bedroom through window

Preston and a group of friends — which included his girlfriend, the victim, her boyfriend — were partying together on the night of July 29, 2016.

They were drinking, and when the victim became drunk, she and her boyfriend had sex in her bed and then passed out.

In the early morning hours, Preston removed a window screen and broke into her bedroom.

The victim woke up to him raping her but she passed out again in the middle of the rape.

An hour later, the teen woke up again. This time, Preston was on his knees at the side of her bed. She was scared and pretended to sleep while he continued to assault her twice more.

Once Preston left her room, the victim got out of bed and told a friend who had stayed the night about what had happened. While she was crying, Preston left the victim's apartment.

Video of assault posted to Facebook

Later that night, Preston's girlfriend confronted the victim. She had seen nude photos of the girl on her boyfriend's Facebook page and mistakenly believed the victim had sent them to him.

Preston had used the victim's own phone to take photos and video, which, after the third assault, he posted to his Facebook account and then deleted them from her phone.

The video shows Preston walk up to the victim's bed, remove the blanket and spread her legs, all while her boyfriend is asleep next to her. The minute-long video then depicts Preston sexually assaulting the teen.

There are also photos of her genitalia.

Judge admonishes Preston

"It's a fundamental lack of respect for others that you demonstrated," said provincial court Judge Gord Wong in handing down his decision.

"You're not satisfied with committing this sexual offence, you go ahead and use someone else's phone to take photos ... send it back to yourself and post it to Facebook."

Preston will be on the sex offender registry for the next 20 years.

McCluskey noted that during a pre-sentence psychiatric evaluation with Dr. Patrick Baillie, Preston "talks about feeling sorry for himself."

Preston was on house arrest pending the sentencing hearing. He breached the conditions of his arrest three times and failed to attend court twice.