Nakoula's attorney, Steven Seiden, sought to have the hearing closed and his client released on $10,000 bail. He argued Nakoula has checked in with his probation officer frequently and made no attempts to leave Southern California.
Seiden was concerned that Nakoula would be in danger in federal prison because of Muslim inmates, but prosecutors said he likely would be placed in protective custody.
Lawrence Rosenthal, a constitutional and criminal law professor at Chapman University School of Law in Orange, said it was "highly unusual" for a judge to order immediate detention on a probation violation for a nonviolent crime, but if there were questions about Nakoula's identity it was more likely.
"When the prosecution doesn't really know who they're dealing with, it's much easier to talk about flight," Rosenthal said. "I've prosecuted individuals who'd never given a real address. You don't know who you're dealing with, and you're just going to have very limited confidence about their ability to show up in court."
Enraged Muslims have demanded punishment for Nakoula, and a Pakistani cabinet minister has offered a $100,000 bounty to anyone who kills him.
First Amendment advocates have defended Nakoula's right to make the film while condemning its content. And federal officials likely will face criticism from those who say Nakoula's free speech rights were trampled by his arrest on a probation violation.
In arguing that Nakoula is a possible flight risk, Dugdale said Nakoula couldn't even reveal something as fundamental as his real name.
"He's a person who simply can't be trusted," he said.
Associated Press writer Gillian Flaccus contributed to this report.
Copyright 2012 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.