Template Information

Latest Post

Showing posts with label Facebook. Show all posts
Showing posts with label Facebook. Show all posts

api facebook status search

Written By xx on Wednesday, June 5, 2013 | 3:10 AM

Ref: http://stackoverflow.com/questions/2263287/does-facebook-have-a-public-search-api-yet

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:
More Better way 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