facebook4j.api
Interface SearchMethods

All Known Subinterfaces:
Facebook

public interface SearchMethods

Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
 ResponseList<facebook4j.internal.org.json.JSONObject> search(String query)
          Searches every type all public objects.
 ResponseList<facebook4j.internal.org.json.JSONObject> search(String query, Reading reading)
          Searches every type all public objects.
 ResponseList<facebook4j.internal.org.json.JSONObject> search(String query, String type, Reading reading)
          Searches all public objects of given type.
 ResponseList<Checkin> searchCheckins()
          Returns latest checkins.
 ResponseList<Checkin> searchCheckins(Reading reading)
          Returns latest checkins.
 ResponseList<Event> searchEvents(String query)
          Searches events.
 ResponseList<Event> searchEvents(String query, Reading reading)
          Searches events.
 ResponseList<Group> searchGroups(String query)
          Searches groups.
 ResponseList<Group> searchGroups(String query, Reading reading)
          Searches groups.
 ResponseList<Location> searchLocations(GeoLocation center, int distance)
          Returns locations near a geographical location.
 ResponseList<Location> searchLocations(GeoLocation center, int distance, Reading reading)
          Returns locations near a geographical location.
 ResponseList<Location> searchLocations(String placeId)
          Returns a particular place.
 ResponseList<Location> searchLocations(String placeId, Reading reading)
          Returns a particular place.
 ResponseList<Page> searchPages(String query)
          Searches pages.
 ResponseList<Page> searchPages(String query, Reading reading)
          Searches pages.
 ResponseList<Place> searchPlaces(String query)
          Searches places.
 ResponseList<Place> searchPlaces(String query, GeoLocation center, int distance)
          Searches places.
 ResponseList<Place> searchPlaces(String query, GeoLocation center, int distance, Reading reading)
          Searches places.
 ResponseList<Place> searchPlaces(String query, Reading reading)
          Searches places.
 ResponseList<Post> searchPosts(String query)
          Searches public posts.
 ResponseList<Post> searchPosts(String query, Reading reading)
          Searches public posts.
 ResponseList<User> searchUsers(String query)
          Searches users.
 ResponseList<User> searchUsers(String query, Reading reading)
          Searches users.
 

Method Detail

searchPosts

ResponseList<Post> searchPosts(String query)
                               throws FacebookException
Searches public posts.

Parameters:
query - the search condition
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPosts

ResponseList<Post> searchPosts(String query,
                               Reading reading)
                               throws FacebookException
Searches public posts.

Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchUsers

ResponseList<User> searchUsers(String query)
                               throws FacebookException
Searches users.

Parameters:
query - the search condition
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchUsers

ResponseList<User> searchUsers(String query,
                               Reading reading)
                               throws FacebookException
Searches users.

Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchEvents

ResponseList<Event> searchEvents(String query)
                                 throws FacebookException
Searches events.

Parameters:
query - the search condition
Returns:
events
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchEvents

ResponseList<Event> searchEvents(String query,
                                 Reading reading)
                                 throws FacebookException
Searches events.

Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
events
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchGroups

ResponseList<Group> searchGroups(String query)
                                 throws FacebookException
Searches groups.

Parameters:
query - the search condition
Returns:
groups
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchGroups

ResponseList<Group> searchGroups(String query,
                                 Reading reading)
                                 throws FacebookException
Searches groups.

Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
groups
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPlaces

ResponseList<Place> searchPlaces(String query)
                                 throws FacebookException
Searches places.

Parameters:
query - the search condition
Returns:
places
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPlaces

ResponseList<Place> searchPlaces(String query,
                                 Reading reading)
                                 throws FacebookException
Searches places.

Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
places
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPlaces

ResponseList<Place> searchPlaces(String query,
                                 GeoLocation center,
                                 int distance)
                                 throws FacebookException
Searches places.

Parameters:
query - the search condition
center - latitude and longitude
distance - distance
Returns:
places
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPlaces

ResponseList<Place> searchPlaces(String query,
                                 GeoLocation center,
                                 int distance,
                                 Reading reading)
                                 throws FacebookException
Searches places. narrows the search to a specific location and distance.

Parameters:
query - the search condition
center - latitude and longitude
distance - distance
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
places
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchCheckins

ResponseList<Checkin> searchCheckins()
                                     throws FacebookException
Returns latest checkins.

Returns:
checkins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchCheckins

ResponseList<Checkin> searchCheckins(Reading reading)
                                     throws FacebookException
Returns latest checkins.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
checkins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchLocations

ResponseList<Location> searchLocations(GeoLocation center,
                                       int distance)
                                       throws FacebookException
Returns locations near a geographical location.

Parameters:
center - latitude and longitude
distance - distance
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchLocations

ResponseList<Location> searchLocations(GeoLocation center,
                                       int distance,
                                       Reading reading)
                                       throws FacebookException
Returns locations near a geographical location.

Parameters:
center - latitude and longitude
distance - distance
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchLocations

ResponseList<Location> searchLocations(String placeId)
                                       throws FacebookException
Returns a particular place.

Parameters:
placeId - specify the ID of the place
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchLocations

ResponseList<Location> searchLocations(String placeId,
                                       Reading reading)
                                       throws FacebookException
Returns a particular place.

Parameters:
placeId - specify the ID of the place
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPages

ResponseList<Page> searchPages(String query)
                               throws FacebookException
Searches pages.

Parameters:
query - the search condition
Returns:
pages
Throws:
FacebookException - when Facebook service or network is unavailable
Since:
Facebook4J 2.0.0
See Also:
Search - Facebook Developers

searchPages

ResponseList<Page> searchPages(String query,
                               Reading reading)
                               throws FacebookException
Searches pages.

Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pages
Throws:
FacebookException - when Facebook service or network is unavailable
Since:
Facebook4J 2.0.0
See Also:
Search - Facebook Developers

search

ResponseList<facebook4j.internal.org.json.JSONObject> search(String query)
                                                             throws FacebookException
Searches every type all public objects.

Parameters:
query - the search condition
Returns:
objects
Throws:
FacebookException - when Facebook service or network is unavailable

search

ResponseList<facebook4j.internal.org.json.JSONObject> search(String query,
                                                             Reading reading)
                                                             throws FacebookException
Searches every type all public objects.

Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
objects
Throws:
FacebookException - when Facebook service or network is unavailable

search

ResponseList<facebook4j.internal.org.json.JSONObject> search(String query,
                                                             String type,
                                                             Reading reading)
                                                             throws FacebookException
Searches all public objects of given type.

Parameters:
query - the search condition
type - search type
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
objects
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Using the Graph API - Searching


Copyright © 2019. All rights reserved.