The findings showed that by analyzing just 10 likes on Facebook, the computer could more accurately predict a subject's personality than a work colleague.
With 70 likes, it could know more about someone than their friends, and with 150 it would be more knowledgeable than a family member. With 300 likes it could determine your personality better than a spouse, although an average Facebook user has about 227 likes, the researchers pointed out.
Users can "like" Facebook posts such as pictures, statuses or groups by clicking the blue thumbs-up button on the social media website.
Read MoreFacebook knows what you 'like'—next it may know how you feel
Volunteers in the study - which was published in the "Proceedings of the National Academy of Sciences" journal – gave friends and family a shorter version of the personality test they originally completed. This gave the researchers a chance to test their computer's assessment against a human with a close association to the subject.
"People may choose to augment their own intuitions and judgments with this kind of data analysis when making important life decisions such as choosing activities, career paths, or even romantic partners. Such data-driven decisions may well improve people's lives," Youyou said.