Charleston police on Thursday arrested a man accused of using Facebook and other social networking sites to try to convince teenage girls to have sex with him.

Glen Rogers, 46, of Gatetree Road, was charged with two counts of criminal solicitation of a minor and one count of disseminating obscene material to a person under 18, affidavits state.

The National Center for Missing and Exploited Children contacted Charleston police in October of 2012 concerning an investigation on Rogers, police said.

A Special Investigations Unit detective in an affidavit accused Rogers of using Facebook and other social networking sites to encourage a 17-year-old girl to have sex with him in June of 2012.

Rogers offered to visit the girl in Pottsville, Pa., where she lives, and used his cell phone to send several pictures of his genitalia, the affidavit sates.

He urged the girl to sneak out of her parents’ home and stay with him in a hotel, according to an affidavit.

Another girl, this one in Florida, told investigators that in October of 2011, when she was 16 years old, Rogers talked about getting her pregnant and asked her to lie to her parents and run away with him.

Rogers is being held at the Charleston County jail. He is scheduled to have a bond hearing today, court records show.