If I perform a Facebook graph api search such as:
https://graph.facebook.com/search?q=query&type=user
Where query is just one word such as 'Mark' , everything is fine and there are results. However if query is two words such as 'Mark Roberts' , there are no results returned.
I have tried using 'Mark+Roberts' and also tried using URL encoding with escapes but this does not help. However when I use two keywords and remove the &type=user, I get results (albeit a large amount of random facebook stuff).
So:
https://graph.facebook.com/search?q=mark&type=user < WORKS
https://graph.facebook.com/search?q=mark+robers&type=user < DOES NOT WORK
https://graph.facebook.com/search?q=mark+robers < WORKS (but does not return people)
Has anyone run into this issue?
Facebook do not seem to mention anything about this : http://developers.facebook.com/docs/reference/api/search/
NOTE: I am doing this of course with an authenticated APP ID and logged in user etc.
The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.
In early June 2019, the feature was further deprecated, with the majority of URLs for graph search queries no longer working. Facebook explained this by saying: "The vast majority of people on Facebook search using keywords, a factor which led us to pause some aspects of graph search and focus more on improving keyword ...
Graph Search is a search engine that is integrated with Facebook's social graphs. The search engine processes natural language queries to return information from across the user's social network of friends and connections or beyond, depending on the search.
I tested with web browser and it works as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With