Prosecutors said it was part of an "escalating pattern of violence against women" and that Shkreli also threatened political pundit Ana Kasparian, and Twitter suspended him after he harassed journalist Lauren Duca.
Judge Matsumoto said Shkreli is "an ongoing risk to the community". The judge wasn't having it as he remanded Shkreli ahead of his sentencing.
Shkreli is now at the Metropolitan Detention Center in Brooklyn where he was assigned the number 87850-053 by the Federal Bureau of Prisons as he awaits sentencing on January 16 for his conviction on securities fraud last August 4, according to CNBC.
That now appears much less likely, legal experts say.
The judge rejected arguments by Shkreli's lawyer, Benjamin Brafman, that the post was protected free speech, saying one of Shkreli's Facebook followers - who number more than 93,000 - could take it seriously.
Shkreli had tried to express his contrition, sending a letter to the judge saying, "I used poor judgement but never meant to cause alarm or promote any act of violence whatsoever".
"It's a tough place", said Robert Kipnees, a white-collar criminal defense attorney at the NY firm Lowenstein Sandler.
Shkreli, 34, gained notoriety as a pharmaceutical executive for increasing the price of a lifesaving drug, Daraprim, by 5,000 percent. Shkreli lied to obtain investors' money then didn't tell them when he made a bad stock bet that led to massive losses, prosecutors argued. According to the prosecutors, he continued tricking other investors and using the money of Retrophin, a drug company he was running, to pay for his losses.
In white collar cases such as Shkreli's, the sentence is usually meted out in proportion to the losses faced by their victims. But his out-of-court antics may have crushed those prospects. Known for being an aggressive social media troll at the best of times, he recently shared something rather ridiculous on Facebook.
"He does not need to apologize to me. This post-trial conduct will not help him".
Larry Levine, director and founder of Wall Street Prison Consultants, said Shkreli "threatened someone who's federally protected". That comment was seen as a threat against the Democratic presidential candidate. He has never been violent and did not expect anyone to take him seriously, they said.
Those documents detailing a US diplomatic spy effort, obtained in 2010 by Wikileaks, offer yet another freakish twist to the already freaky story of how convicted fraudster Shkreli had his $5 million release bond revoked Wednesday night.