ALERT: At the moment, the Facebook graph search interface has changed. We are adjusting and a full update is coming soon. This means that most of the matrix below does not currently work but the directories and FBID info are good.
For instructions on the new search queries, visit https://gist.github.com/nemec/2ba8afa589032f20e2d6509512381114 or https://mtg-bi.com/content/facebook-graph-search-workaround or https://pakainfo.com/facebook-graph-search-queries-url-api-facebook-search/ (we will try to simplify this…eventually)
or use the following search tool to simplify queries through the current Facebook search interface: https://sowdust.github.io/fb-search/
This file will collect useful Facebook search techniques and queries. Please help us keep it up to date by submitting new queries through our form.
Facebook uses ID numbers for everything in the system. If the string includes an ID number, a placeholder such as (place ID), (page ID), or (person ID) will be present and should be replaced with an ID number. Variables in the graph below are noted in red. Unless otherwise noted, all search queries start with facebook.com/search/ and may be combined with other searches by adding /intersect to the end. Example: https://www.facebook.com/search/114952118516947/residents/present/105702905593/likers/intersect
These searches can be blocked by making full use of Facebook privacy options.
Facebook is constantly changing so some of these that worked yesterday may not work today and yet might still work tomorrow.
This page is best viewed on, and the URLs are best used on laptops/desktops
Get a Facebook ID
Manually get a Facebook ID
Facebook changes the ways to get ID numbers in the URL periodically, although they are often still visible in certain page URLs. The best way to consistently get an ID manually is via the source code. Note that you do not have to be logged in to get the FBID.
On the main page of any user profile, right click on unused space. Use ctrl+U (command+option+U on OSX) or in the right click menu, choose “View Page Source”.
In the following page of HTML, use ctrl+F (command+F on OSX) and open a search tool. Search for entity_id and the following number will be the Facebook ID number of the user, group or page.
Note that in some cases the group or user page ID will be in the original URL and for a place, it will always be in the URL.
The Facebook directory can be used to find items that seem unsearchable by browsing alphabetically.
https://www.facebook.com/places (not working?)
https://www.facebook.com/directory/people_remain (does not show users with profiles denied to outside search engines?)
https://www.facebook.com/directory/events/ (not working?)
https://www.facebook.com/directory/events_directories/ (master events directory)
https://www.facebook.com/directory/events_links/ (browse by city)
https://www.facebook.com/directory/events_discovery/ (discover by city)
https://www.facebook.com/directory/events_az/ (browse by event name)
and possibly more.