A Florida man posted a horrific photo of his wife’s body on Facebook yesterday after he allegedly murdered her in the kitchen of their South Miami townhouse.

Derek Medina, 31, put the disturbing photograph on his Facebook page after shooting his wife, Jennifer Alfonso, 26, and making a bizarre confession on the site, police said.

“I’m going to prison or death sentence for killing my wife,” Medina wrote.

“love you guys miss you guys take care Facebook people you will see me in the news.”

Medina — who incredibly has written self-help book about saving marriages — later turned himself in to police and was charged with murder.

In the Facebook photo, his wife e is seen lying limp, with her legs folded behind her. Blood appears to be splattered on her face and left arm.

Along with the grisly image, Medina wrote the caption: “Rip Jennifer Alfonso.”

The couple’s Facebook friends reacted with disbelief.

“What happened????” one person wrote in response to the picture while another said, “That is my friend there. Jennifer Alfonso.”

Cops later found Alfonso’s body in the couple’s South Miami home.

They also found the victim’s 10-year-old daughter, authorities said, but she was not physically injured.

Police said Medina admitted he shot his wife several times after, he claimed, she punched him repeatedly, wielded a knife and said she was leaving him.

In his Facebook confession, too, Medina said he was acting in self-defense.

“My wife was punching me and I am not going to stand anymore with the abuse,” he wrote.

“so I did what I did I hope you understand me.”

In other photos posted to his Facebook account, which has since been taken down, Medina could be seen brandishing a firearm and kickboxing at a gym.

Facebook also removed Alfonso’s page.

The couple apparently first married in January 2010, divorced in February 2012, and then remarried three months later.

Medina once acted as an extra on the USA network crime drama “Burn Notice” and published six e-books, once of which was titled “How I Saved Someone’s Life and Marriage and Family Problems Thru Communication.”

The book details how it’s subject “found peace and made peace” after years of tumult after a divorce. Like Medina, the subject also divorced and remarried the same woman.

In the e-book, Medina offers “marriage counseling tips” and stresses how “effective communication” can help save a marriage.

His other e-book titles aldo have long, absurd names, such as “World Just Ask Yourself Why We Are Living a Life Full of Lies” and “How I an Emotional Writer Made All of My Professional Dreams Come True Blocking Society’s Teachings.”

Medina’s father, Derek Medina Sr., said last night that his son had killed his wife after she pulled a knife on him.

“He just said that his wife picked up a knife on him, and they had a big fight, and he shot her,” Medina Sr. said.