Peter TerVeer, a gay Library of Congress staffer, has filed a discrimination complaint over his recent firing, claiming he became the subject of harassment and humiliation after a supervisor learned of his sexual orientation from Facebook.

The 30-year-old TerVeer was hired as a management analyst at the library in 2008. Officials praised his work and promoted him three times.

He told gay weekly the Washington Blade, that he lost his status as the “golden boy in the office” after his boss learned his sexual orientation.

John Mech's daughter, Katie Mech, contacted TerVeer on Facebook asking to become friends. He accepted the request, saying he blocked her from viewing information on his page that identified him as gay.

But after Facebook implemented changes to its privacy rules, TerVeer's support for the Facebook group Two Dads, a group devoted to gay parenting, became visible to Katie Mech.

“I get home one day and she saw it and commented and said, 'You're not one of those weirdoes are you?' I said I am actually, in fact, one of those weird ones if you're referring to the fact that I'm gay,” TerVeer said.

While Katie Mech said she wasn't troubled by the discovery, the following day she dropped him as a Facebook friend.

Within days, John Mech began discussing his views on gay rights.

“All of a sudden now, every time I'm going into his office he's starting off with a religious conversation. Then it comes out where he pointed out he was a believer with a literal translation of the Bible,” said TerVeer. “Then he goes specifically into homosexuality.”

According to his discrimination complaint filed with the Library of Congress' Equal Employment Opportunity Complains Office, TerVeer claims that Mech told him that he “wanted to educate me on hell and that it was a sin to be a homosexual.”

“He stated that as a homosexual I could never succeed because it was against God's law.”

“I contend that I have been subjected to a hostile work environment by Mr. Mech since August 2009 on the basis of my sex (male), sexual orientation (homosexual) and religion (non-denominational Christian/Agnostic),” TerVeer states in his affidavit.

A ruling is expected in May.