Director M Night Shyamalan has joked that he wrote the ending to the 89th Academy Awards, which saw the wrong winner announced in the coveted best picture category.

The Sixth Sense director is renowned for his films which have a twist at the end.

Presenters Warren Beatty and Faye Dunaway announced the wrong winner of the last category of the night, saying that La La Land had won, when in fact Barry Jenkins' Moonlight was the winner.

Shyamalan also tagged the evening's host Jimmy Kimmel on Twitter, adding: "We really got them."

Social media exploded with another common theme: people asking if the results of the American elections could be recounted in case they had been a misread too.

One viewer tweeted: "I wish that happened on election night" while another, posted from a parody account of the House of Cards character Frank Underwood, mused: "Hillary called. She wants Warren Beatty and Faye Dunaway to review the ballots voters cast in Wisconsin and Michigan."

"The #Oscars just did the best impression of The Electoral College," said another viewer.

The #Oscars just did the best impression of The Electoral College

E! News host Ryan Seacrest said his summary of events was that it was a "deserved win by Moonlight and a gracious concession by the La La Land team", ending his tweet asking: "wtf just happened for everyone else".

Throughout the show Kimmel referenced his "feud" with Bourne star Matt Damon, leading one viewer to conclude: "I'm convinced Matt Damon did it so he has something on @jimmykimmel #AcademyAwards."

The official Miss Universe twitter account offered the Academy some advice, following a similar blunder that happened during the crowning of the 2015 Miss Universe.

American comedian Steve Harvey mistakenly announced that Miss Colombia was the winner, when in fact Miss Philippines should have won.

The pageant tagged the Academy, saying: "Have your people call our people - we know what to do. #Oscars #MissUniverse."

Kimmel himself referenced Harvey after the mishap on stage saying: "Personally I blame Steve Harvey for this."

Harvey has not commented or posted anything on Social Media about the Oscars incident.

Wrestler Chris Jericho tweeted: "How is it possible for the WRONG movie to be read? Shouldn't there only be ONE name on the card? Didn't we learn anything from #SteveHarvey?".

Film director Michael Moore said mistakes such as this one were the reason a "booth of review" should be instituted.

He tweeted: "This is why the Academy has to institute a booth review of every award (or at least any award given in the final 2 minutes). #NFL #Oscars."

Celebrity blogger Perez Hilton joked on Twitter that "Russia was responsible!", while actor Emile Hirsch tweeted: "I'm starting to wonder if I got nominated for Into The Wild after all. #Oscars."

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.