Updated

After a Cincinnati man was jailed following a rant about his wife and pending divorce on Facebook, a judge offered him two choices: enjoy a 60-day jail sentence or apologize to your wife on Facebook.

Photographer Mark Byron chose the latter.

After being issued a temporary restraining order for allegedly verbally abusing and threatening his wife, Byron claims the court prevented him from seeing his son, Cincinnati.com reports. He vented his frustrations on Facebook.

"Iif you are an evil, vindictive woman who wants to ruin your husbands life and take your son's father away from him completely -- all you need to do is say that you're scared of your husband or domestic partner," Byron initially wrote on Facebook, according to Cincinnati.com.

The post prompted an outpouring of negative comments from Byron's Facebook friends, which made wife Elizabeth Byron "afraid," according to court documents.

Elizabeth Byron reportedly said the post was a form of "harassment," a violation of the previous protective order.

Domestic Relations Court Magistrate Paul Meyers found Byron in contempt and ruled he could avoid jail time if he wrote an apology to his wife on Facebook and posted it for 30 days.

"I would like to apologize to my wife, Elizabeth Byron, for the comments regarding her and our son," Byron wrote in his apology on Facebook. "I further apologize to all of my Facebook Friends for attempting to mislead them into thinking Elizabeth was in any manner preventing me from spending time with (my son), which caused several of my Facebook Friends to respond with angry, venomous, and inflammatory comments of their own."

Byron is due back in court on March 19.

Click here for more on this story and to read the full apology on Cincinnati.com.