Does facebook have a public search API yet?

FacebookRest

Facebook Problem Overview


I can't seem to find the definitive word out there of the facebook search api: the api that allows you to search public status updates and comments/posts (there is a web interface for all logged in users for this at the moment).

Facebook Solutions


Solution 1 - Facebook

You can use the Facebook graph API :

http://developers.facebook.com/docs/reference/api/

look for the searching section,

QUOTE from fb:

Searching

You can search over all public objects in the social graph with https://graph.facebook.com/search. The format is:

https://graph.facebook.com/search?q=QUERY&type=OBJECT_TYPE We support search for the following types of objects:

All public posts: https://graph.facebook.com/search?q=watermelon&type=post

You can also search an individual user's News Feed, restricted to that user's friends, by adding a q argument to the home connection URL:

Solution 2 - Facebook

Facebook Public Post search is no longer available in Graph API v2.0: https://developers.facebook.com/docs/apps/changelog

Solution 3 - Facebook

Better way is using Facebook PHP SDK

-> Search any term using facebook php sdk.

$mySrch = $facebook->api('/search?q=YOUR WORD&type=TYPES');

THERE ARE VARIOUS TYPES, you can search:

  1. post
  2. user
  3. event
  4. group
  5. place
  6. checkin

Solution 4 - Facebook

The search according to "type=user" type="event" type="group" type="page is deprecated now. See https://developers.facebook.com/docs/graph-api/changelog/breaking-changes#search-4-4

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMichael NealeView Question on Stackoverflow
Solution 1 - FacebookJarod DY LawView Answer on Stackoverflow
Solution 2 - FacebookWissam El-KikView Answer on Stackoverflow
Solution 3 - FacebookJignesh VishavadiaView Answer on Stackoverflow
Solution 4 - FacebookOmega CubeView Answer on Stackoverflow