Mitchell Louws faces charges that could put him behind bars for almost 30 years.
Raleigh police said Louws posed as a woman online to get the boys, ages 13 and 14, to send him the photos.
Police claim that when he wanted more and the boys wouldn't send them, he threatened to either post the pictures he already had online or send them to friends and family.
Louws was charged with first-degree sexual exploitation of a minor and two counts of extortion.
His bond is set at $50,000. His next court appearance set for May 2.