PORTLAND, Maine — A Biddeford man who admitted using the Internet to stalk his ex-fiancee and steal her identity was sentenced Tuesday in U.S. District Court to five years in prison, the maximum sentence allowed.

Shawn Sayer, 43, pleaded guilty in August to cyberstalking.

He continued to stalk his ex-fiancee even after she changed her name and moved from Maine to Louisiana, according to the prosecution version of the offense to which he pleaded guilty.

Sayer caused men seeking sexual encounters to show up at the ex-fiancee’s Louisiana home by uploading sexually explicit videos of her to porn sites using her real name and street address, setting up a fake Facebook account on which to post the videos, and extending sexually explicit invitations through a phony Yahoo! Messenger account, according to court documents.

“As a result, Sayer caused numerous men [in August 2009], previously unknown to his ex-fiancee, to come to her residence in Louisiana seeking sexual encounters with her, terrifying her and causing her to fear that she could be sexually assaulted or otherwise physically harmed,” the U.S. attorney’s office said in a press release issued shortly after the sentencing.

In addition to prison time, U.S. District Judge D. Brock Hornby sentenced Sayer to three years of supervised release after he completes his prison term.

Sayer faced a minimum of one year and up to five years in prison and a fine of up to $250,000. Under the prevailing federal sentencing guidelines, Sayer’s recommended guideline range was between three years and one month and three years and 10 months.

Assistant U.S. Attorney Craig Wolff recommended that Sayer spend 6½ years in prison. Defense attorney Peter Rodway of Portland urged the judge to impose a 15-month sentence, according to his sentencing memorandum.