Royal Family

Sarah Ferguson snapped smiling next to Prince Philip in Eugenie’s wedding photos

Not even royals are immune from awkward family photos.

Britain’s Prince Philip and Sarah “Fergie” Ferguson pasted on the grins as they posed within inches of one another in the official group portrait taken at Friday’s wedding of her daughter Princess Eugenie and Jack Brooksbank.

Philip has refused to publicly acknowledge his estranged ex-daughter-in-law since 1992, when her marriage to his son, Prince Andrew, collapsed.

The last straw came when tabloids published photos of an open-air toe-sucking session that featured a topless Duchess of York being serviced by a paramour with a foot fetish.

Andrew’s staid father never forgave her for the humiliating incident. Some royal watchers expected him to skip his granddaughter’s wedding altogether in order to avoid the mother of the bride.

Aside from the frosty family reunion, the festivities went off without a hitch.

And after the televised ceremony, the sedate celebration became a booze-drenched rave that went well into the night.

UK star Robbie Williams gave a surprise performance, a guest told Page Six, as supermodels and stars boogied.

“Robbie jumped on stage,” said a source of the wedding party at the Windsor Castle nuptials. “Naomi Campbell and Demi Moore were dancing. Robbie would sing a line to one of his hits — and then he’d let the audience sing the next line.”

At the end of the fun-filled night, “There was a food truck that was serving pizza” and “everyone was drinking Casamigos margaritas.” The groom is a brand ambassador for the high-end tequila label.

A source said the party continued Saturday with another reception for 300 that was scheduled to go from the afternoon till early Sunday morning.

“It’s cocktails and lunch into the night,” the source said.

At the celebration, “There was a traveling band going from table-to-table, and they played ‘All Shook Up’ for Eugenie and Jack. There was also a whole carnival with games for guests.”

Among 850 guests at the Friday wedding the night before were singer Ellie Goulding, models Kate Moss, Campbell and Cara Delevingne with socialite sister Poppy, comic star Stephen Fry, Pixie Geldof, artist Tracey Emin, Discovery Land Company mogul Mike Meldman, Glen and Dorit Rotner, and members of the royal family including Queen Elizabeth II and Prince Philip, Prince Charles, Prince William and Kate Middleton.

Italian tenor Andrea Bocelli performed at the ceremony at St. George’s Chapel — the same venue where Prince Harry and Meghan Markle tied the knot this year.

Eugenie and Brooksbank reportedly had a five-tier red velvet and chocolate wedding cake. People Magazine reported a guest saying of proud dad Andrew’s toast at the wedding, which poked fun at the groom: “The Duke told a story about their dog Jack [a Norfolk terrier]… One day, I think it was early in the relationship, he shouted, ‘Jack, get off the chair!’ And the dog didn’t move. But Jack did!”

Additional reporting by Marisa Dellato