WARNING: This is a long read. We just couldn’t make it shorter, sorry… Take your time, get comfortable & dive inlớn the new way of Facebook Graph Search!
R.I.P Graph Search – June 7th 2019
As you might have noticed, on June 7th 2019, Facebook shut down its Graph Search options. Within a few hours people found solutions but, unfortunately, it didn’t seem to last long. Since August 1st, there seems khổng lồ be a steady solution.
The ‘new’ Graph Search seems a little comprehensive sầu at first, but it’s pretty easy once you get the hang of it. It involves some JSON & Base64, languages not everyone is familiar with. But even though you might have sầu even never heard of these concepts, you can still build the Graph queries! In fact, we made a whole other blog post about JSON, Base64 encoding, và URL encoding khổng lồ prep you for these Facebook changes.
Bạn đang xem: Facebook graph search
Of course there are tools và websites like Graph.tips, Sowdust, and Intelx.io which vày a great job of simplifying the “how vì I get this Facebook data…” questions, but it’s always better khổng lồ know how these tools work instead of relying on them. As we have seen recently, web sites and their tools come & go. Understanding HOW something works helps you even when our favourite tools stop working. And understanding how these tools work helps you stay OSINT curious too :)!
Before we start…
Just like in the ‘old’ Graph Search, ID numbers are still important. You can find a Facebook ID number very easily by following these instructions:mở cửa the page or profile of interest in a website browserRight cliông xã somewhere on the page where there is no nội dung (mostly in the light grey area’s) and choose ‘View page source’ (or use Ctrl+U. This works in most browsers.)Search, using Ctrl+F, for ‘userID’ (when looking at a profile), ‘pageID’ (when looking at a page) or ‘groupID’ (when looking at a group). The number mentioned just behind ‘userID=’ or ‘pageID=’ is the number you need to lớn copy.Looking for a different ID? Chechồng the table below!
|Location||entity_id||Things-to-do-in (first number after this line)|
|Event||ID is displayed in the URL||eventID|
Also, don’t forget lớn switch your Facebook language settings to ‘English US’ in order to get the best results.
According lớn an article on Buzzfeed, Facebook stated: “The vast majority of people on Facebook search using từ khoá, a factor which led us to pause some aspects of graph tìm kiếm & focus more on improving từ khóa search. We are working closely with researchers to lớn make sure they have the tools they need to lớn use our platsize.“
And I must say, their keywords tìm kiếm has improved. While searching the regular search bar at the top of Facebook (visible when logged on), Facebook offers a wide range of filters khổng lồ choose from. Give sầu it a try, it has already surprised me a couple of times!Choose a category, lượt thích ‘People’ on the left. When selected a category, the filter options will appear
Don’t forget to lớn log on khổng lồ Facebook in order to use the tìm kiếm options. If you struggle with creation or maintaining a retìm kiếm protệp tin, kiểm tra out one of our previous blogpost on sochồng puppets.
Searching with the ‘new’ Graph Search
Buckle up readers! This is where the ride really starts; get comfortable và keep on reading for the comprehensive sầu part!
Even though the tìm kiếm bar works pretty well, you sometimes want lớn specifically filter on the things you are interested in. For example; ‘Most Recent’ posts on a specific topic. This is not a standard option, although the option is still available. You just have sầu khổng lồ put in a little more effort.
For every search the base will always be this URL:
In this URL we’re going to lớn adjust somethings and add somethings at the kết thúc. We’re going to start with selecting the right category you want to lớn search in. For adjusting the category, you change the highlighted part (“top/”) in one of the categories mentioned below:
These are the categories to choose from:
|top/||Search top content|
|posts/||Search public posts|
|people/||Search for people|
|photos/||Search for photos|
|videos/||Search for videos|
|pages/||Search for pages|
|places/||Search for places|
Now you know how to change the category, we can take a look at changing the tìm kiếm query. Changing the tìm kiếm query is done in the highlighted part of the URL:
Change ‘people‘ inkhổng lồ whatever you’re searching for. Searching for more than one word? Just keep typing, the spaces will change into ‘%20’. Or type a ‘+’ between the words. (E.g. ‘nhagiarehaiphong.comus+technisette’ or ‘John+Doe‘ or ‘Ford+Mustang+Red‘).
Attention: You always have lớn fill in a query. You can’t leave sầu it blank.
So now you know how lớn change the category và how to change the search query. We’re half way there!
The next step
We’re going to dive inkhổng lồ JSON & Base64 now. Don’t be scared! I don’t ‘speak’ or ‘write’ any of these data formats & I was still able khổng lồ find out how it works. So stichồng with me please :)! Again, we have a primer for this on our other blog. Cheông chồng it out!
We’re going to lớn add the last piece lớn our URL. The best way khổng lồ explain this is by using an example. Let’s say you want to search for the most recent posts on the topic ‘baseball’. Our URL will look like this:
‘search/posts/‘ because we want lớn find public posts.‘?q=baseball‘ because this is our tìm kiếm query.
To find the ‘Most recent’ posts, we have lớn translate a JSON string into lớn Base64. The JSON string for ‘Most recent’ is:
To translate JSON inlớn Base64, we’re going lớn use CyberChef. This is a không tính phí online tool & very easy lớn use. (In our previous post we show you how lớn use CyberChef for many other things too. Also; there are more tools to help you translate JSON to Base64. Piông chồng whatever tool you’re most comfortable with.)Choose ‘To Base64’ form the Operations section. Drag this option to lớn the Recipe section and drop.The ‘Input’ field is blank. Make sure khổng lồ paste the JSON line, as mentioned above sầu, in this Input field.You’ll now see the result in the ‘Output’ field. (If you don’t immediately see a result, make sure khổng lồ kiểm tra if the ‘Auto lớn bake’ box is ticked.)Copy the Base64 Output đầu ra.Explanation on how to lớn use CyberChef to lớn ‘bake’ JSON khổng lồ Base64
So we’ve now put a JSON line lớn Base64. The result of the JSON line for ‘Most recent’ will look lượt thích this:
Now we’re going to lớn put the URL & the Base64 together;