FACEBOOK GRAPH SEARCH

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!ID from:classic designnew design
Profileentity_iduserID
Pageentity_idpageID
Locationentity_idThings-to-do-in (first number after this line)
EventID is displayed in the URLeventID
Groupentity_idgroupID
What khổng lồ tìm kiếm for in the source code when looking for the ID numbersExample of the userID of Facebook.com/zuck

Also, don’t forget lớn switch your Facebook language settings to ‘English US’ in order to get the best results.

Searching Facebook

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.

Xem thêm: Bài Tập Giúp Giảm Mỡ Bụng - 8 Bài Tập Đánh Tan Mỡ Bụng Hiệu Quả Tức Thì

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.

The base

For every search the base will always be this URL:

facebook.com/search/top/?q=people&epa=FILTERS&filters=

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:

facebook.com/search/top/?q=people&epa=FILTERS&filters=

These are the categories to choose from:

URL ParameterWhat it does
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:

facebook.com/search/top/?q=people&epa=FILTERS&filters=

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:

facebook.com/search/posts/?q=baseball&epa=FILTERS&filters=

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:

“rp_chrono_sort”:””name”:”chronosort”,”args”:”””

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:

eyJycF9jaHJvbm9fc29ydCI6IntcIm5hbWVcIjpcImNocm9ub3NvcnRcIixcImFyZ3NcIjpcIlwifSJ9

Now we’re going to lớn put the URL & the Base64 together;

facebook.com/search/posts/?q=baseball&epa=FILTERS&filters=eyJycF9jaHJvbm9fc29ydCI6IntcIm5hbWVcIjpcImNocm9ub3NvcnRcIixcImFyZ3NcIjpcIlwifSJ9