Prime Minister Benjamin Netanyahu’s son crudely weighed in on a diplomatic spat between Jerusalem and Ankara — posting “F–k Turkey” on his Instagram account, according to reports.

Yair Netanyahu, 26, no stranger to controversial posts in social media, also replaced the letter “c” in the obscenity with the crescent and star of Turkey’s flag, the Times of Israel reported.

In response, a family spokesman said: “Yair Netanyahu is a private individual and his Instagram account is private.”

His account appears to have been deleted, but screenshots of the offensive message have been circulated by local media outlets.

Bibi’s son waded into the growing crisis between the two countries in the wake of Israel’s response to the violent Palestinian protests at the Gaza border.

“Turkey, you’re responsible to unbelievable atrocities and suffer to Cyprus, the Greek people, the Kurds and a genocide of the Armenians,” he wrote on Facebook.

“Also I would like to remind the Turks that they’re a people coming from Central Asia, illegally occupying little Asia and Constantinople that was Christian before their invasion. So shut up!” he added.

Yair, a student at the Hebrew University in Jerusalem, also found himself in hot water last year when he posted a cartoon on Facebook featuring many of his dad’s critics, including US billionaire George Soros.

According to the Hamas-led Healthy Ministry in Gaza, 62 Palestinians were killed and more than 2,700 others were injured in clashes with Israeli troops.

A top Hamas official said Wednesday that 52 of the dead were members of the Iranian-backed militant Islamic group, which controls Gaza and which Israel and the US blamed for inciting the violence.

On Tuesday, Ankara expelled Israeli Ambassador Eitan Na’eh — under the glare of the media — because of the number of Palestinians killed.

Turkey had already pulled its ambassador from Israel for consultations, while Israel ordered the Turkish consul in Jerusalem to leave the country.

Turkey’s foreign ministry said it also ordered the Israeli consul general in Istanbul to leave the country “for a period of time,” according to Agence France-Presse.

The tit-for-tat ejections came less than two years after the countries reconciled after a 2010 confrontation between Israeli commandos and a Turkish flotilla trying to breach the blockade of Gaza left 10 Turkish activists dead.

President Recep Tayyip Erdogan — who has often lashed out at Israel over its clashes with Hamas militants in Gaza — placed the blame for this week’s clashes squarely on Jerusalem.

He accused Israel of being a “terrorist state” that commits “genocide” — and called Netanyahu the prime minister of an “apartheid state.”

In response, the Israeli Haaretz reported, Netanyahu said “a man who sends thousands of Turkish soldiers to hold the occupation of northern Cyprus and invades Syria will not preach to us when we defend ourselves from an attempt by Hamas.”