Charleston police on Thursday arrested a man accused of using Facebook and other social networking sites to try to convince teen 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 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. Rogers offered to visit the girl in Pottsville, Pa., and used his cellphone to send several pictures of his genitals, the affidavit states.

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

Also, a girl in Florida, told investigators that in October 2011, when she was 16, Rogers talked about getting her pregnant and asked her to lie to her parents and run away with him.

Rogers was being held at the Charleston County jail on $300,000 bail Thursday.