Skip to content

Instantly share code, notes, and snippets.

@nemec
Last active December 17, 2024 10:02
Show Gist options
  • Save nemec/2ba8afa589032f20e2d6509512381114 to your computer and use it in GitHub Desktop.
Save nemec/2ba8afa589032f20e2d6509512381114 to your computer and use it in GitHub Desktop.

How to Use

Take the following URL

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

Replace /search/top/ with the appropriate general search type (see headings below). One filter from each second-level header can be combined with each other, but I don't believe you can combine multiple filters from the same second-level header.

Replace the word people with your keyword search term (this is sadly a required field). It does not seem to be "semantic", and it only serves to add another filter to the below semantic filters.

Find any additional semantic filter(s) below (the JSON) that you want to filter on. Use this page for testing your JSON, but before submitting make sure you remove all whitespace from your JSON - you can set the "JSON Template" drop down to Compact in the formatter if you like, it will remove all whitespace for you. Note also that often there is JSON embedded within JSON. This is where you'll see a backslash before a quote (\"). Make sure to leave those backslashes alone.

When you combine filters, put them together in the same JSON object. For example, if I take Posts From a Page

{"rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}"}

and combine with Posts I've Interacted

{"interacted_posts":"{\"name\":\"interacted_posts\",\"args\":\"\"}"}

the combined filter should look like this:

{
    "rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}",
    "interacted_posts":"{\"name\":\"interacted_posts\",\"args\":\"\"}"
}

and compact down to:

{"rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}","interacted_posts":"{\"name\":\"interacted_posts\",\"args\":\"\"}"}

Next, find a Base64 encoder and paste the compacted JSON into it. Encode the JSON above and you see the following:

eyJycF9hdXRob3IiOiJ7XCJuYW1lXCI6XCJhdXRob3JcIixcImFyZ3NcIjpcIjExOTM3NTA1NDc1MDYzOFwifSIsImludGVyYWN0ZWRfcG9zdHMiOiJ7XCJuYW1lXCI6XCJpbnRlcmFjdGVkX3Bvc3RzXCIsXCJhcmdzXCI6XCJcIn0ifQ==

Remove any equals signs at the end (Facebook doesn't need them) and then put the Base64'd JSON at the end of the URL you built above, after filters=

https://www.facebook.com/search/top/?q=people&epa=FILTERS&filters=eyJycF9hdXRob3IiOiJ7XCJuYW1lXCI6XCJhdXRob3JcIixcImFyZ3NcIjpcIjExOTM3NTA1NDc1MDYzOFwifSIsImludGVyYWN0ZWRfcG9zdHMiOiJ7XCJuYW1lXCI6XCJpbnRlcmFjdGVkX3Bvc3RzXCIsXCJhcmdzXCI6XCJcIn0ifQ

Initial inspiration

https://twitter.com/henkvaness/status/1136937742712094721

/search/top/

Sort By

Most Recent

{"rp_chrono_sort":"{\"name\":\"chronosort\",\"args\":\"\"}"}

Posts From

Posts from you

{"rp_author":"{\"name\":\"author_me\",\"args\":\"\"}"}

Posts from Your Friends

{"rp_author":"{\"name\":\"author_friends_feed\",\"args\":\"\"}"}

Posts From Your Groups and Pages

{"rp_author":"{\"name\":\"my_groups_and_pages_posts\",\"args\":\"\"}"}

Posts From Public

{"rp_author":"{\"name\":\"merged_public_posts\",\"args\":\"\"}"}

Posts from page:

{"rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}"}

Post Type

Posts You've Seen

{"interacted_posts":"{\"name\":\"interacted_posts\",\"args\":\"\"}"}

Posted In Group

Your Groups

{"rp_group":"{\"name\":\"my_groups_posts\",\"args\":\"\"}"}

From Group

{"rp_group":"{\"name\":\"group_posts\",\"args\":\"574981909329531\"}"}

Tagged Location

{"rp_location":"{\"name\":\"location\",\"args\":\"115028691842393\"}"}

Date Posted

2019

{"rp_creation_time":"{\"name\":\"creation_time\",\"args\":\"{\\\"start_year\\\":\\\"2019\\\",\\\"start_month\\\":\\\"2019-1\\\",\\\"end_year\\\":\\\"2019\\\",\\\"end_month\\\":\\\"2019-12\\\",\\\"start_day\\\":\\\"2019-1-1\\\",\\\"end_day\\\":\\\"2019-12-31\\\"}\"}"}

/search/posts/

Posts From

Posts from you

{"rp_author":"{\"name\":\"author_me\",\"args\":\"\"}"}

Posts from Your Friends

{"rp_author":"{\"name\":\"author_friends_feed\",\"args\":\"\"}"}

Posts From Your Groups and Pages

{"rp_author":"{\"name\":\"my_groups_and_pages_posts\",\"args\":\"\"}"}

Posts From Public

{"rp_author":"{\"name\":\"merged_public_posts\",\"args\":\"\"}"}

Posts from page:

{"rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}"}

Post Type

Posts You've Seen

{"interacted_posts":"{\"name\":\"interacted_posts\",\"args\":\"\"}"}

Posted In Group

Your Groups

{"rp_group":"{\"name\":\"my_groups_posts\",\"args\":\"\"}"}

From Group

{"rp_group":"{\"name\":\"group_posts\",\"args\":\"574981909329531\"}"}

Tagged Location

{"rp_location":"{\"name\":\"location\",\"args\":\"115028691842393\"}"}

Date Posted

2019

{"rp_creation_time":"{\"name\":\"creation_time\",\"args\":\"{\\\"start_year\\\":\\\"2019\\\",\\\"start_month\\\":\\\"2019-1\\\",\\\"end_year\\\":\\\"2019\\\",\\\"end_month\\\":\\\"2019-12\\\",\\\"start_day\\\":\\\"2019-1-1\\\",\\\"end_day\\\":\\\"2019-12-31\\\"}\"}"}

/search/people/

City

{"city":"{\"name\":\"users_location\",\"args\":\"115028691842393\"}"}

Education

{"school":"{\"name\":\"users_school\",\"args\":\"751335894893898\"}"}

Work

{"employer":"{\"name\":\"users_employer\",\"args\":\"20531316728\"}"}

Mutual Friends

Friends

{"friends":"{\"name\":\"users_friends\",\"args\":\"\"}"}

Friends of Friends

{"friends":"{\"name\":\"users_friends_of_friends\",\"args\":\"\"}"}

Friend with People

{"friends":"{\"name\":\"users_friends_of_people\",\"args\":\"100000154813605\"}"}

/search/photos/

Posted By

Posts from you

{"rp_author":"{\"name\":\"author_me\",\"args\":\"\"}"}

Posts from Your Friends

{"rp_author":"{\"name\":\"author_friends_feed\",\"args\":\"\"}"}

Posts From Your Groups and Pages

{"rp_author":"{\"name\":\"my_groups_and_pages_posts\",\"args\":\"\"}"}

Posts From Public

{"rp_author":"{\"name\":\"merged_public_posts\",\"args\":\"\"}"}

Posts from page:

{"rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}"}

Photo Type

Photos you've seen

{"interacted_photos":"{\"name\":\"interacted_photos\",\"args\":\"\"}"}

Tagged Location

{"rp_location":"{\"name\":\"location\",\"args\":\"115028691842393\"}"}

Date Posted

2019

{"rp_creation_time":"{\"name\":\"creation_time\",\"args\":\"{\\\"start_year\\\":\\\"2019\\\",\\\"start_month\\\":\\\"2019-1\\\",\\\"end_year\\\":\\\"2019\\\",\\\"end_month\\\":\\\"2019-12\\\",\\\"start_day\\\":\\\"2019-1-1\\\",\\\"end_day\\\":\\\"2019-12-31\\\"}\"}"}

/search/videos/

Source

Live

{"videos_source":"{\"name\":\"videos_live\",\"args\":\"\"}"}

Episodes

{"videos_source":"{\"name\":\"videos_episode\",\"args\":\"\"}"}

Friends and Groups

{"videos_source":"{\"name\":\"videos_feed\",\"args\":\"\"}"}

Tagged Location

{"rp_location":"{\"name\":\"location\",\"args\":\"115028691842393\"}"}

Date Posted

2019

{"rp_creation_time":"{\"name\":\"creation_time\",\"args\":\"{\\\"start_year\\\":\\\"2019\\\",\\\"start_month\\\":\\\"2019-1\\\",\\\"end_year\\\":\\\"2019\\\",\\\"end_month\\\":\\\"2019-12\\\",\\\"start_day\\\":\\\"2019-1-1\\\",\\\"end_day\\\":\\\"2019-12-31\\\"}\"}"}

/search/pages/

Verified

Verified

{"verified":"{\"name\":\"pages_verified\",\"args\":\"\"}"}

Category

Local Business or Place

{"category":"{\"name\":\"pages_category\",\"args\":\"1006\"}"}

Company, Organization, Or Institution

{"category":"{\"name\":\"pages_category\",\"args\":\"1013\"}"}

Brand or Product

{"category":"{\"name\":\"pages_category\",\"args\":\"1009\"}"}

###Artist, Band, or Public Figure

{"category":"{\"name\":\"pages_category\",\"args\":\"1007,180164648685982\"}"}

Entertainment

{"category":"{\"name\":\"pages_category\",\"args\":\"1019\"}"}

Cause or Community

{"category":"{\"name\":\"pages_category\",\"args\":\"2612\"}"}

/search/places/

This one is different... I haven't figured out how it works yet. The ref= parameter decodes into something with a session ID or something:

{"sid":"97e8f46cce641da376d91e4b2b1c2381","ref":"places_top_module_see_more"}
@mikhoul
Copy link

mikhoul commented Oct 25, 2019

can you please eloborate more please.

https://osint.support/

@fermi157
Copy link

can you please eloborate more please.

https://osint.support/

MIKHOUL, THANKS FOR THE REPLY COULD YOU PLEASE JUST GIVE ME INSTRUCTIONS. I ALREADY DOWNLOADED THE EXTENSION, LIKE WHATS NEXT PLEASE , IM COMING FROM MATHEMATICS BACKGROUND AND I AM NOT THAT EXPERIENCED WITH THIS PLEASE HELP JUST GIVE ME INSTRUCTIONS

@fermi157
Copy link

i just realised the instructions above , please ill let you if i face diffculties

@fermi157
Copy link

thanks for the reply and help i realy appreciate...

@fermi157
Copy link

fermi157 commented Oct 26, 2019

@fermi157 you will not get a friends list from this tool. you will get data to create a probable friends list.

i see, i got you now.

@bhviruslab
Copy link

It's not Graph Search related, by I've used this paid service recently for a specific Facebook use case:
fiverr.com/gorshkovrfa/reveal-hidden-facebook-friends

looks like a scam. You can do this yourself for free just by following this tutorial: techblog.mediaservice.net/2019/05/find-hidden-friends-and-community-for-any-facebook-user . The page you linked also uses the same image of the blog post.

Actually was not a scam, got the results delivered within 20 minutes...
For a technically challenged individual like myself, that type of service is a good fit.
Can you maybe refer me to a friendlier tutorial to do this type of research by myself?

@Delariu
Copy link

Delariu commented Oct 28, 2019

@nemec, am I correct in saying that the "who posted what" searches stopped working as of yesterday night? Even searches that previously returned a dozen results now either don't, or return a single result. Has facebook closed that avenue as well?

@nemec
Copy link
Author

nemec commented Oct 28, 2019

I'm not sure, I haven't checked on it in a while. It uses the public search feature, so unless FB has crippled that entirely it might just be some minor changes that must be accounted for.

@Delariu
Copy link

Delariu commented Oct 28, 2019

Ah! Well, in that case I doubt it's been closed down. Facebook's been tinkering away at it for a while though, making changes. Maybe some wires got crossed along the way. (one of the changes is that facebook now returns keyword results embedded in comments, which, seeing as they closed down graph search for privacy protection reasons, is just baffling to me.)

@sowdust
Copy link

sowdust commented Oct 30, 2019

It's not Graph Search related, by I've used this paid service recently for a specific Facebook use case:
fiverr.com/gorshkovrfa/reveal-hidden-facebook-friends

looks like a scam. You can do this yourself for free just by following this tutorial: techblog.mediaservice.net/2019/05/find-hidden-friends-and-community-for-any-facebook-user . The page you linked also uses the same image of the blog post.

Actually was not a scam, got the results delivered within 20 minutes...
For a technically challenged individual like myself, that type of service is a good fit.
Can you maybe refer me to a friendlier tutorial to do this type of research by myself?

No I am sorry I don't have a more in-depth tutorial, but if you have any specific question, don't hesitate to ask. You shouldn't pay someone to simply run a tool ;)

@bhviruslab
Copy link

It's not Graph Search related, by I've used this paid service recently for a specific Facebook use case:
fiverr.com/gorshkovrfa/reveal-hidden-facebook-friends

looks like a scam. You can do this yourself for free just by following this tutorial: techblog.mediaservice.net/2019/05/find-hidden-friends-and-community-for-any-facebook-user . The page you linked also uses the same image of the blog post.

Actually was not a scam, got the results delivered within 20 minutes...
For a technically challenged individual like myself, that type of service is a good fit.
Can you maybe refer me to a friendlier tutorial to do this type of research by myself?

No I am sorry I don't have a more in-depth tutorial, but if you have any specific question, don't hesitate to ask. You shouldn't pay someone to simply run a tool ;)

So, I've managed to follow the tutorial using a colleague of mine.
I've got only 40% of the results (friends) the Fiverr guy provided me with.
I suppose that his technique is different and/or more thorough... FYI

@sowdust
Copy link

sowdust commented Oct 31, 2019

It's not Graph Search related, by I've used this paid service recently for a specific Facebook use case:
fiverr.com/gorshkovrfa/reveal-hidden-facebook-friends

looks like a scam. You can do this yourself for free just by following this tutorial: techblog.mediaservice.net/2019/05/find-hidden-friends-and-community-for-any-facebook-user . The page you linked also uses the same image of the blog post.

Actually was not a scam, got the results delivered within 20 minutes...
For a technically challenged individual like myself, that type of service is a good fit.
Can you maybe refer me to a friendlier tutorial to do this type of research by myself?

No I am sorry I don't have a more in-depth tutorial, but if you have any specific question, don't hesitate to ask. You shouldn't pay someone to simply run a tool ;)

So, I've managed to follow the tutorial using a colleague of mine.
I've got only 40% of the results (friends) the Fiverr guy provided me with.
I suppose that his technique is different and/or more thorough... FYI

Thanks for the feedback. Unless he has some unpublished trick, the only different variable in the process is the pivot users you start with. The script fint.py created to do so and included with ffff needs an update; the extension https://osint.support/ might be of help in finding more pivot users (I haven't tried it myself yet). You might also want to try this other similar script: https://github.com/musafir-py/Hidden-Friends-Finder

@comtemimolette
Copy link

@github-userx
Copy link

github-userx commented Nov 17, 2019 via email

@hlecuanda
Copy link

hlecuanda commented Nov 17, 2019 via email

@zchryy03
Copy link

I noticed someone was able to do an osint research. I saw his research and the outputs were done on real-time. Does anyone have a clue if there's a new tool for Facebook on searching keywords that are location based and real-time? I've tried making json queries but the outputs were not always on real-time. Thanks for anyone who responds!

@ocantosnazareno
Copy link

ocantosnazareno commented Jan 5, 2020

The one related with education
``{"school":"{"name":"users_school","args":"751335894893898"}"}
`doesn't really work for searches. Maybe somebody knows hows to make it useful?

@wootwoot1234
Copy link

Thais is very useful, thank you. Quick question. Do you know if you can use boolean operators like OR, AND, &, &&, | or || in the search? I tried that and it doesn't seem to work as I expected.

@charlesvu295
Copy link

Dear thank you for very interesting sharing.
I have a question, why we cant search query for Links no more? Is it possible to Search all links have the same origin source, eg. II want to search all telegram invite links, what should I do? Pls answer me, i need this info, thanks

@illtellyoulater
Copy link

@machy179
Copy link

It seems, Facebook closed this query for example mutual friends does not work already. The same query hidden friends. Or have you any other experience?

@LordDeanMeta
Copy link

I’m useing the Posts dropdown and need some help willing to pay @sowdust any help for a code student?

regards
@LordDeanUK on x

@sowdust
Copy link

sowdust commented Apr 19, 2024

I’m useing the Posts dropdown and need some help willing to pay @sowdust any help for a code student?

what do you need help with?

@keiagency
Copy link

This code is pulling a 404 error when I conduct searches. I'm guessing it's an issue with Facebook updating their systems. Or is this user error? Both are possible

@LordDeanUK
Copy link

This has also happened to me, anyway around it?

If I find a way I will post it here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment