public interface PlacesService
| Modifier and Type | Method and Description |
|---|---|
String |
checkin(String placeId,
double latitude,
double longitude)
Checks the authenticated user into the specified location.
|
String |
checkin(String placeId,
double latitude,
double longitude,
String message,
String... tags)
Checks the authenticated user into the specified location.
|
Checkin |
getCheckin(String checkinId)
Retrieves details for a single checkin.
|
List<Checkin> |
getCheckins()
Retrieves a list of up to 25 recent checkins for the authenticated user.
|
List<Checkin> |
getCheckins(int offset,
int limit)
Retrieves a list of checkins for the authenticated user.
|
List<Checkin> |
getCheckins(String objectId)
Retrieves a list of up to 25 recent checkins for the specified object.
|
List<Checkin> |
getCheckins(String objectId,
int offset,
int limit)
Retrieves a list of checkins for the specified object.
|
List<Page> |
search(String query,
double latitude,
double longitude,
long distance)
Searches for places near a given coordinate.
|
List<Checkin> getCheckins()
Checkins for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_checkins" or "friends_checkins" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Checkin> getCheckins(int offset, int limit)
offset - the offset into the list of checkinslimit - the maximum number of checkins to returnCheckins for the user, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_checkins" or "friends_checkins" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Checkin> getCheckins(String objectId)
objectId - either a Facebook user ID or page IDCheckins, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_checkins" or "friends_checkins" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Checkin> getCheckins(String objectId, int offset, int limit)
objectId - either a Facebook user ID or page IDoffset - the offset into the list of checkinslimit - the maximum number of checkins to returnCheckins, or an empty list if not available.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "user_checkins" or "friends_checkins" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Checkin getCheckin(String checkinId)
checkinId - the checkin IDCheckinApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String checkin(String placeId, double latitude, double longitude)
placeId - the ID of the place to check into.latitude - the latitude of the place.longitude - the longitude of the place.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_checkins" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.String checkin(String placeId, double latitude, double longitude, String message, String... tags)
placeId - the ID of the place to check into.latitude - the latitude of the place.longitude - the longitude of the place.message - a message to post along with the checkin.tags - a varargs list of user IDs to tag on the checkin.ApiException - if there is an error while communicating with Facebook.InsufficientPermissionException - if the user has not granted "publish_checkins" permission.MissingAuthorizationException - if FacebookTemplate was not created with an access token.List<Page> search(String query, double latitude, double longitude, long distance)
query - the search query (e.g., "Burritos")latitude - the latitude of the point to search nearlongitude - the longitude of the point to search neardistance - the radius to search within (in feet)Pages matching the searchApiException - if there is an error while communicating with Facebook.MissingAuthorizationException - if FacebookTemplate was not created with an access token.Copyright © 2011-2013 Seam Framework. All Rights Reserved.