Rep. Trey Gowdy, R-S.C., said Friday former FBI Director James Comey has managed to politicize his former office by writing a book trashing President Trump, even though he had talked to Gowdy about the importance of keeping the FBI neutral.

"I can't think of anyone who's done a better job of politicizing the FBI than he has in the last 36 to 48 hours, by talking about tanning bed goggles and the length of a tie," Gowdy said on Fox News. "That is beneath the dignity of the offices that he held."

[Related: Kellyanne Conway: James Comey hyping his few meetings with Trump to sell books]

Among other things, Comey's book mocks Trump's physical appearance by saying he had "bright white half-moons" that he thought came from tanning goggles.

"I'm really disappointed, whether or not the intelligence community vetted this book," Gowdy said. "I hope he let them do it so he's not disseminating classified information. My guess is he did."

"But the writing of the book in general and then some of the things that he's talking about are just frankly beneath the dignity of some really important offices he once held," he said.

[Opinion: James Comey's big bad book of anti-Trump metaphors]