A Wisconsin teenager accused of using a Facebook scam to blackmail dozens of male students into sex acts has reached a plea agreement.

Nineteen-year-old Anthony Stancl of New Berlin pleaded no contest Tuesday to two felonies. In exchange, prosecutors dismissed 10 other charges.

Stancl was accused of posing as a girl on Facebook and tricking more than 30 classmates into sending him naked photos of themselves, then using the photos to blackmail them for sex.

Waukesha County District Attorney Brad Schimel says he will recommend a "substantial" prison term. Stancl faces a maximum of 50 years in prison when he is sentenced at a date to be determined.

Defense attorney Craig Kuhary declined to comment.