How to get exact phrase match from Graph API search

Looking for a way to get the exact phrase match from the Graph API search endpoint. For example, all actions with "dogs and cats" in them. Putting the phrase in quotation marks does not seem to work, the API will return actions containing these words, but in any order.

curl -v "https://graph.facebook.com/search?q=%22dogs%20and%20cats%22&type=post&limit=75&access_token=&since=Wed+Jan+25+20%3A59%3A30&until=Wed+Jan+25+20%3A59%3A40" 

returns activity, the text of which:

"Oh man, it's raining, dogs, cats, lobsters, crabs, birds and horses are here. I'm scared!"

"dogs" "cats" and "and" are all in this post, but not in order.

+4
source share
1 answer

Yes, I ran into the same problem. There's a similar question that might help. Using the Facebook API to find the exact string.

Facebook does not allow exact match with phrases, not at the API level. You will need to get all the data and program the programs for exact matches (too slow, though).

0
source

Source: https://habr.com/ru/post/1393051/


All Articles