Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook graph API search https://graph.facebook.com/search?q=query&type=user with two keywords

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.

like image 437
Zigglzworth Avatar asked Apr 10 '13 20:04

Zigglzworth


People also ask

What is the Facebook Graph API?

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.

Does Facebook graph search still work?

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 ...

What is a Graph Search query?

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.


1 Answers

I tested with web browser and it works as expected.

enter image description here

like image 108
林果皞 Avatar answered Oct 12 '22 23:10

林果皞