Facebook envisions a future in which people will be able to type out words and send messages using only their brains.


The idea might seem like the stuff of science fiction, but the social media giant said that it's moving closer to making the moonshot project a reality thanks to new research.


That could help Facebook build wearables such as augmented reality glasses, letting people interact with each other in real life without having to pick up a smartphone.


"The promise of AR lies in its ability to seamlessly connect people to the world that surrounds them -- and to each other. Rather than looking down at a phone screen or breaking out a laptop, we can maintain eye contact and retrieve useful information and context without ever missing a beat," Facebook said in a blog post.


Researchers, including at Stanford University, have already found a way to do this with patients who are paralyzed, but it requires surgery in which electrodes are implanted into the brain. Facebook, though, hopes to build a wearable that isn't invasive.


The social network has kept tight-lipped about progress on the moonshot project since it was first unveiled.


In the meantime, the company has faced a series of scandals about privacy and security.


Facebook's tarnished image will likely make consumers wary about giving the social network the ability to decode their thoughts -- even if they're only the ones we want to share.


It's also not the only company studying computer-brain interfaces. Elon Musk's startup Neuralink is trying to link our brains to computers.