US President Barack Obama and his successor, Donald Trump, have met at the White House, a day after the billionaire businessman was declared the winner of the country’s election.

Obama called Thursday’s 90-minute meeting in the Oval Office “excellent”, while Trump said he looked forward to receiving the outgoing president’s “counsel”.

“We now are going to want to do everything we can to help you succeed because if you succeed, the country succeeds,” Obama told Trump.

The two men, who have been harshly critical of each other for years, were meeting for the first time, Trump said.

“I have great respect [for him]” he said. “The meeting could have, as far as I’m concerned, gone a lot longer.

“We disscussed a lot of different situations, some wonderful and some difficulties,”  he said.

Trump said he looked forward “to dealing with the president in the future, including counsel” and meeting with Obama “many, many more times”.

Throughout the election campaign, Obama had blasted Trump as unfit to serve as commander-in-chief.

Trump, on the other hand, spent years challenging the legitimacy of Obama’s presidency, falsely suggesting that he may have been born outside the US.

Al Jazeera’s Patty Culhane at the White HouseThis meeting was important for two reasons. The big question everyone has been asking is whether the Donald Trump of the campaign trail is going to be the same Donald Trump in the White House.

Nobody knew that answer, this meeting is our first indication.

Donald Trump is not a man who lets go of grudges. It really got under his skin during the campaign trail that President Obama was campaigning for Hillary Clinton, he called him completely “unfit” for the Oval Office, so people were asking “is Donald Trump going to hit back”.

It Turns out, no. He called Obama a very good man. He said he is going to ask him for advice in the future.

That was very important, to see how Donald Trump will behave in the office.

The next important thing is coming from President Obama.

Huge portions of this country are frightened. Trump supporters are obviously really excited but [some of]  those who were against Trump … are expressing actual fear. There are protests in the major cities all across the country.

So President Obama is trying to send a message. Not only as the head of the Democratic Party. but as a very popular president to his followers that it is over, it is time to try and help Donald Trump.

But at least publicly, the two men appeared to put aside their animosity. As the meeting concluded and journalists scrambled out of the Oval Office, Obama smiled at his successor and explained the unfolding scene.

“Here’s a good rule: Don’t answer the questions when they [reporters] just start yelling,” Obama jokingly said.

“President Obama came away from the meeting with renewed confidence in the commitment of the president-elect to engage in an effective, smooth transition,” White House spokesman Josh Earnest told reporters later on Thursday.

Trump and Obama did not resolve their differences, Earnest said, but, based on their agreement on the need for an effective transition, “the meeting might have been at least a little less awkward than some might have expected”.

If Trump makes good on his campaign promises, he will wipe away much of what Obama has done during his eight years in office.

The president-elect, who will govern with Congress fully under Republican control, has vowed to repeal Obama’s signature healthcare law and dismantle the nuclear accord with Iran.

First lady Michelle Obama also met privately in the White House residence with Trump’s wife, Melania, while Vice President Joe Biden prepared to see Vice President-elect Mike Pence later on Thursday.

PROFILE: President-elect Donald Trump

The anticipated show of civility at the White House contrasted with post-election scenes of rallies across a politically divided country, as thousands of people took to the streets in several US cities on Wednesday to protest against Trump’s surprise victory.

Demonstrators in several US cities vented against the election’s winner, chanting “Not my president,” burning a papier-mache Trump head, beating a Trump pinata and carrying signs that said “Impeach Trump.”

Trump traveled to Washington from New York on his private jet, breaking with protocol by not bringing journalists in his motorcade or on his plane to document his historic visit to the White House.

Trump was harshly critical of the media during his campaign and for a time banned news organisations from his events.

Also on Trump’s schedule were meetings with House Speaker Paul Ryan of Wisconsin and Senate Majority Leader Mitch McConnell of Kentucky to discuss the GOP legislative agenda.