Obama warned that the internet risked reinforcing people's prejudices and leading to a fractured society.
"One of the dangers of the internet is that people can have entirely different realities", he added. Obama never mentioned Trump by name.
The Democrat, who handed over power to Mr Trump in January 2017, said social media is corroding civil discourse.
The interview touched upon serious inquiries from Prince Harry, like asking the former president about life after leaving the White House, Donald Trump's chokehold on social media and the potential to work on various philanthropic campaigns together in the future.
And the thing he missed the most, he said, was "I didn't used to experience traffic - I used to cause traffic".
Saying he now wanted to create platforms for social change for young people, he advised that "sending out an hashtag in of itself can bring about change, it can be a powerful way to raise awareness, but you have to get on the ground and do something". "I still care about making the United States and the world a place where kids get an education, where people who are willing to work hard are able to find a job that pays a living wage, that we are conserving the fantastic resources of our planet so that future generations can enjoy the beauty of this place like we did".
But looking back, there are certain aspects of his presidency that Obama misses.
Josh Rosen Officially Out Of Cactus Bowl vs. Kansas State
Will the Kansas State Wildcats beat the UCLA Bruins and cover the point spread as a almost touchdown-sized favorite at 9:00 p.m. ET in the Cactus Bowl? The Bruins won the last matchup before Tuesday, taking a 40-35 victory in the 2014 Alamo Bowl.
So when it emerged that Harry was set to interview Obama, we were beyond excited.
On the question about briefs or boxers, the former United States president backtracked openly, saying he doesn't "answer those questions".
Kim or Khloe? "This one I have to defer on".
Prince Harry and Meghan announced their engagement in November.
"Suits" or "The Good Wife"?
After Trump's election, horrifying mass shootings and destructive hurricanes, 2017 won't be remembered too fondly by many, but the man who ran on "Hope and Change" in 2008 is optimistic for 2018.
They have frequently visited each other, with Mr Obama agreeing to be interviewed by Harry when he edited the Today programme.
He called the current generation the "most sophisticated", "most tolerant", "most embracing of diversity", "most tech savvy", and "most entrepreneurial", but added that they have little "faith in existing institutions". How much can you remember about 2017 in Showbiz?