The 24-year-old earlier admitted the charges, which resulted from the end of Winstanley's relationship with the victim in January, in the Nelson District Court.
About 5am on Sunday, March 6 this year, Winstanley entered the victim's house and went to her bedroom where she lay sleeping. Police prosecution said he did not have permission to be there.
While recording on his cellphone he approached the victim's bed and removed the covers which exposed her and a man who was also asleep in the bed.
After Winstanley left the house he posted the video to Facebook. He later told police he had been to the house but gave no explanation why.
Defence lawyer Mark Dollimore said alongside the Restorative Justice process Winstanley had also attended specialist courses focused on helping him understand his behaviour which had been triggered by the end of what had been his first love.
He described the approach as "quite mature", after he had been so unsettled by the end of the relationship.
Winstanley had apologised early on and had paid $600 toward the victim's counselling.
Dollimore said Winstanley had also benefited from excellent family support, and he was now back living with his parents.
"This is a young man who has grown up a lot because of his behaviour, which he understands was serious.
"It's also clear the complainant has been seriously emotionally impacted," Dollimore said.
He said Winstanley had complied with what had been a life-changing process, helped by the victim who had shown forgiveness.
Judge Ruth said in sentencing Winstanley that a normal response might have been community work, or worse, but he was impressed with the outcome of the various agencies' responses.
On the charge of unlawfully being in a building, Winstanley was fined $200, and on the charge of causing harm by posting digital communications, he was ordered to pay $500 in emotional harm reparation to the victim, for whom a protection order was now also in place.