Time for action – searching without authorization
The basic search query Graph URL is:
https://graph.facebook.com/search?type=«type»&q=«query»
The type
parameter lets you choose an option (as in from the left-hand side of the Full Search), and q
(for query) specifies the search terms.
Let's try searching for the Packt Publishing page:
https://graph.facebook.com/search?type=page&q=PacktPub
{ "data": [ { "name": "Packt Publishing", "category": "Products_other", "id": "204603129458" } ] }
We're cheating here; I've searched for the exact name of the page, which sort of defeats the point of a search. Note that PacktPub
does not appear anywhere in the results, though – this implies that, sometimes, you (and your application) may not be able to tell why a ...
Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.