The man was sentenced Wednesday at Copenhagen City Court. Photo: Colourbox
The Copenhagen City Court also sentenced the man to conditional deportation, which means he will be kicked out of Denmark if he commits any new crimes.
Prosecutors had pushed for a five month sentence followed by actual deportation.
In court, he tried to defend the Facebook post by saying he was merely displaying his faith.
“I just praised Allah. I do that every day,” the man said, according to broadcaster DR.
The man was cited under Article 136 of the Danish Penal Code, which outlaws “publicly approving” actions that are punishable under the nation’s terror laws. The man’s lawyer argued that the Facebook posts were private and visible only to his 50 friends on the social network. The Iraqi also said he removed the posts after one of his friends warned him that they could be misunderstood.
The man’s lawyer filed an immediate appeal against Wednesday’s decision.