Former President Barack Obama Barack Hussein ObamaChicago's next mayor will be a black woman Obama portraits brought more than 1 million visitors to National Portrait Gallery in first year With low birth rate, America needs future migrants MORE issued a warning against "irresponsible" social media use in a wide-ranging interview with Britain's Prince Harry on Wednesday.

"One of the dangers of the internet is that people can have entirely different realities. They can be cocooned in information that reinforces their current biases," Obama told Harry on BBC 4 Radio.

"The question has to do with how do we harness this technology in a way that allows a multiplicity of voices, allows a diversity of views, but doesn't lead to a Balkanization of society and allows ways of finding common ground," he continued.

The former president went on to emphasize the need for face-to-face contact.

ADVERTISEMENT

"Social media is a really powerful tool for people of common interests to convene and get to know each other and connect. But then it's important for them to get offline, meet in a pub, meet at a place of worship, meet in a neighborhood and get to know each other," Obama said.

"Because the truth is that on the internet, everything is simplified and when you meet people face-to-face it turns out they're complicated," he added.

While the Obama administration often employed the use of Twitter, President Trump Donald John TrumpREAD: Cohen testimony alleges Trump knew Stone talked with WikiLeaks about DNC emails Trump urges North Korea to denuclearize ahead of summit Venezuela's Maduro says he fears 'bad' people around Trump MORE has taken to using the platform to attack his opponents and announce policy changes and proposals, including notably banning transgender individuals from the military.

Obama did not mention Trump by name in the interview.

The former president issued a warning on social media use earlier this month, asking users to think before they post on platforms.

“Michelle was giving the general idea ... that don’t say the first thing that pops in your head. Have a little bit of an edit function ... think before you speak, think before you tweet," he said.