Facebook Hacking (Searching for Job Titles and Employers by IDs)

booleanstrings Boolean

facebook-graph-search

Due to the main professional social network not meeting our expectations on several fronts, there’s a growing interest in sourcing on Facebook. As many people are already aware, the Graph search is “officially” gone but still exists in the back-end. @TheBalazs has two great posts on using Graph search:

Most of these techniques continue to work, though some ways to figure out Facebook IDs are gone.

Here is a write-up on how to search on Facebook for employees of a company and for people with a given job title. Be warned though, that Facebook search is far from being precise, meaning:

  1. Depending on the search, Facebook may decide to include synonyms, and we don’t have a “verbatim” option to stop it from doing that.
  2. Facebook won’t return “all” results on most searches; we will likely get representative results. (Of course, that is true for Google searches as well).

Facebook Graph searches exist in two formats: 1) searching by strings and 2) searching by Facebook IDs. For job titles and company names you can, quite often, use both ways to search, and will often (but not always) get different results. In some cases (but not always) searching by IDs is more precise, meaning that there’s less interpretation compared to searching by strings.

The formats for searching by strings and IDs look like this:

Note, also, that some job titles and companies have more than one ID to choose from, and we’ll get different results for different IDs. (Try searching for Quality Control as a job title, for example, and you’ll see). On the other hand, some job titles won’t have IDs; for example, there is no ID for a Sourcer – in those cases searching by string is the only option.

Shane McCuscker’s popular Facebook search tool constructs “searching by string” queries.

Search is Back! by Michael Morgenstern provides a mix between searching by strings and by IDs. Michael’s tool has a good-sized database of company, title, and school IDs in the back-end, but it doesn’t provide many existing IDs (providing “any” ID is probably an impossible task anyway).

If you want to search by IDs yourself and need to find them for that purpose, here is how to do that. Pages on Facebook fall into two categories. The first kind has the ID as part of the URL – those pages are usually auto-created by Facebook (sometimes copying the content from Wikipedia). Examples:

The second type is “man-made” pages that don’t have the ID as part of the page; examples:

When you are looking for an ID to use, there are two steps: finding the page and finding the ID.

To find the page representing a title or company, you can just search in the FB search box and narrow to “pages”. Or, you can search in the Pages Directory. Or, you can search this way: https://www.facebook.com/search/more?q=keywords (replace keywords with your terms).

If the resulting page URL contains the ID, you are done!

If it doesn’t, you can look the ID up in the HTML source code (search for page_id=). Or, you can use any tool that provides Facebook IDs based on URLs (they usually say they find “your” ID, but they do work for any page).

Once you have the ID, replace the number 4 in this URL by the ID to find people with given titles or working at a given company:

Template.

Have fun!

For a deep dive into Sourcing on Facebook, check out the upcoming Webinar on Social Sourcing on May 11th, with optional hands-on practice on the 12th. As always, we provide a month of support to help everyone practice.