Former Fox News star Bill O'Reilly advised President Trump on Thursday to stop using Twitter, and said his constant tweeting is hurting his presidency.

"Attacking specific media people, retweeting dubious material — now hurting the President because it diverts attention from his economic success & gives his enemies ammo," O'Reilly said.

Over the Thanksgiving holiday and into the following week, Trump has shot off one tweet after another taking on CNN, MSNBC morning host Joe Scarborough, and the New York Times. He weighed in on NBC's firing of Matt Lauer over sexual misconduct allegations and has been criticized for sharing a dubious video that purported to show Muslims committing crimes.

In February, Fox News anchor Sean Hannity, one of Trump's biggest boosters on TV, agreed that "maybe he shouldn’t tweet out every thought he has."

Trump, however, has always defended his use of the medium, which he said helps him get around news organization and bring his thoughts straight to the public.

"I love Twitter," he tweeted in 2012. "It's like owning your own newspaper — without the losses."