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
https://twitter.com/henkvaness/status/1136937742712094721
{"rp_chrono_sort":"{\"name\":\"chronosort\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"author_me\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"author_friends_feed\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"my_groups_and_pages_posts\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"merged_public_posts\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}"}
{"interacted_posts":"{\"name\":\"interacted_posts\",\"args\":\"\"}"}
{"rp_group":"{\"name\":\"my_groups_posts\",\"args\":\"\"}"}
{"rp_group":"{\"name\":\"group_posts\",\"args\":\"574981909329531\"}"}
{"rp_location":"{\"name\":\"location\",\"args\":\"115028691842393\"}"}
{"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\\\"}\"}"}
{"rp_author":"{\"name\":\"author_me\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"author_friends_feed\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"my_groups_and_pages_posts\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"merged_public_posts\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}"}
{"interacted_posts":"{\"name\":\"interacted_posts\",\"args\":\"\"}"}
{"rp_group":"{\"name\":\"my_groups_posts\",\"args\":\"\"}"}
{"rp_group":"{\"name\":\"group_posts\",\"args\":\"574981909329531\"}"}
{"rp_location":"{\"name\":\"location\",\"args\":\"115028691842393\"}"}
{"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\\\"}\"}"}
{"city":"{\"name\":\"users_location\",\"args\":\"115028691842393\"}"}
{"school":"{\"name\":\"users_school\",\"args\":\"751335894893898\"}"}
{"employer":"{\"name\":\"users_employer\",\"args\":\"20531316728\"}"}
{"friends":"{\"name\":\"users_friends\",\"args\":\"\"}"}
{"friends":"{\"name\":\"users_friends_of_friends\",\"args\":\"\"}"}
{"friends":"{\"name\":\"users_friends_of_people\",\"args\":\"100000154813605\"}"}
{"rp_author":"{\"name\":\"author_me\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"author_friends_feed\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"my_groups_and_pages_posts\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"merged_public_posts\",\"args\":\"\"}"}
{"rp_author":"{\"name\":\"author\",\"args\":\"119375054750638\"}"}
{"interacted_photos":"{\"name\":\"interacted_photos\",\"args\":\"\"}"}
{"rp_location":"{\"name\":\"location\",\"args\":\"115028691842393\"}"}
{"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\\\"}\"}"}
{"videos_source":"{\"name\":\"videos_live\",\"args\":\"\"}"}
{"videos_source":"{\"name\":\"videos_episode\",\"args\":\"\"}"}
{"videos_source":"{\"name\":\"videos_feed\",\"args\":\"\"}"}
{"rp_location":"{\"name\":\"location\",\"args\":\"115028691842393\"}"}
{"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\\\"}\"}"}
{"verified":"{\"name\":\"pages_verified\",\"args\":\"\"}"}
{"category":"{\"name\":\"pages_category\",\"args\":\"1006\"}"}
{"category":"{\"name\":\"pages_category\",\"args\":\"1013\"}"}
{"category":"{\"name\":\"pages_category\",\"args\":\"1009\"}"}
###Artist, Band, or Public Figure
{"category":"{\"name\":\"pages_category\",\"args\":\"1007,180164648685982\"}"}
{"category":"{\"name\":\"pages_category\",\"args\":\"1019\"}"}
{"category":"{\"name\":\"pages_category\",\"args\":\"2612\"}"}
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"}
can you please eloborate more please.