Former President Barack Obama told Prince Harry in an interview broadcast Wednesday that people in leadership roles must be careful in their use of social media and warned against spending too much time immersed in the internet at the expense of the world outside, report agencies.
Obama did not, however, directly mention his successor, President Donald Trump, who has made the use of Twitter a centerpiece of his presidency.
"All of us in leadership have to find ways to recreate a common space on the internet," he said. "One of the dangers of the internet is people can have entirely different realities. They can be just cocooned in information that reinforces their current biases."
He spoke with Harry in the prince's capacity as guest editor of the BBC Radio 4 news programme. Both men said the interview, recorded in Canada in September, was Obama's first since leaving the presidency in January.
Obama said he felt serene the day he left the White House at the end of his second four-year term despite the vast amount of work that remained unfinished. He said it was "hugely liberating" to be able to set his own agenda in the morning to have the time to talk with his wife, Michelle, now that he is no longer president.
"I miss the work itself because it was fascinating," Obama said of his eight years in the Oval Office, citing his health care reforms as one of his proudest achievements.
On his new routine, Obama told the prince: "I wake up later, it's wonderful to be able to control your day."
The prince opened the discussion by saying: "This is the first interview you've said 'yes' to doing since you handed over the reins", to which Obama replied: "that's true".
Obama rejected gloomy prognostications about the state of the world, saying that in many ways the world is healthier and wealthier than it has ever been, making it perhaps the best time in human history to be born.
He cited improved treatment of African-Americans and greatly expanded opportunities for young women as achievements of the past few generations that give him hope for the future.
In a brief live segment at the end of the show, Harry said he did not know if Obama would be on the guest list for his wedding in May to American actress Meghan Markle.
"I don't know about that, we haven't even put the invite or the guest list together, who knows if he's going to be invited or not," Harry said. "I wouldn't want to ruin that surprise."