Facebook Offers An In-Depth Look At The Natural Language Interface Of Graph Search

facebook-graph-search-featuredSince its launch in January of this year, Facebook has been rolling out their Graph Search, allowing a limited number of users to perform queries with the natural language interface. In a post on their engineering blog today, Facebook explains how their natural language interface works, providing an in-depth look into the mechanics behind it.

Designed to perform exact searches across the abundance of data within the Facebook graph, the robust natural language interface recognizes traditional keyword searches and can identify grammatically incorrect queries, while also providing auto-complete options as a user enters search terms or phrases. The natural language interface understands not only keywords, but the grammar rules that may be used to combine them, quickly translating search terms into a programming language that can be understood by Faceobook’s Unicorn index standards.

According to Facebook, the natural language interface offers more precise queries compared to a key-word based system or augmented drop-down filters. The Facebook Graph Search team determined that a keyword-based system would be too limited in its ability to correctly match connections between data. Form-filling augmented drop-down filters were eliminated as well because of the hundreds of filters it would take to search all of Facebook’s data.


The Facebook Graph Search team built the natural language interface to identify common synonyms and related forms by culling extensive lists of words that could be used interchangeably, making it possible for phrases like, “besties from my hood” to return the same results as “my friends from my hometown.” Grammatical rules were also built in to know when slight changes to a word may or may not change its meaning, e.g., changing “work” to “worked” alters the root word’s meaning, while changing “photo” to “photos” does not.

Facebook claims that the natural language interface is the, “…most natural and efficient way of querying the data in Facebook’s graph,” allowing users to perform verbatim queries, with examples like, “TV shows liked by people who study linguistics,” to locate extremely specific results. With the amount of data Facebook collects, their Graph Search is positioned to dramatically alter the way users search the social networking site, and eventually become a formidable competitor within the search industry.

Related Topics: Channel: Search Marketing | Facebook: Facebook Search


About The Author: is Third Door Media's General Assignment Correspondent, and reports on the latest news and updates for Marketing Land and Search Engine Land. From 2009 to 2012, she was an award-winning syndicated columnist for a number of daily newspapers from New York to Texas. With more than ten years of marketing management experience, she has contributed to a variety of traditional and online publications, including MarketingProfs.com, SoftwareCEO.com, and Sales and Marketing Management Magazine. Read more of Amy's articles.

Connect with the author via: Email | Twitter | Google+ | LinkedIn


Get all the top search stories emailed daily!  


Other ways to share:

Read before commenting! We welcome constructive comments and allow any that meet our common sense criteria. This means being respectful and polite to others. It means providing helpful information that contributes to a story or discussion. It means leaving links only that substantially add further to a discussion. Comments using foul language, being disrespectful to others or otherwise violating what we believe are common sense standards of discussion will be deleted. Comments may also be removed if they are posted from anonymous accounts. You can read more about our comments policy here.
  • or zilberman

    Now all that it needs is to actually work, and have a purpose of course.

    I can see them doing that natural language process pretty much the same way a compiler works.

    1. Have rules to identify words and turn them into known understandable tokens.

    2. Gather the tokens in that sentence and match semantically to get relations and query structure.

    3. Look for the data by the filters taken out by the tokens.

    I can’t help but always have the feeling of a filter and not a search engine when I’m using Facebook.

Get Our News, Everywhere!

Daily Email:

Follow Search Engine Land on Twitter @sengineland Like Search Engine Land on Facebook Follow Search Engine Land on Google+ Get the Search Engine Land Feed Connect with Search Engine Land on LinkedIn Check out our Tumblr! See us on Pinterest


Click to watch SMX conference video

Join us at one of our SMX or MarTech events:

United States


Australia & China

Learn more about: SMX | MarTech

Free Daily Search News Recap!

SearchCap is a once-per-day newsletter update - sign up below and get the news delivered to you!



Search Engine Land Periodic Table of SEO Success Factors

Get Your Copy
Read The Full SEO Guide