|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.code.facebookapi.BaseAdapter
com.google.code.facebookapi.SpecificReturnTypeAdapter<java.lang.Object>
com.google.code.facebookapi.FacebookJaxbRestClientBase
com.google.code.facebookapi.FacebookJaxbRestClient
public class FacebookJaxbRestClient
| Field Summary |
|---|
| Fields inherited from class com.google.code.facebookapi.FacebookJaxbRestClientBase |
|---|
JAXB_CONTEXT, log |
| Fields inherited from class com.google.code.facebookapi.BaseAdapter |
|---|
client, responseFormat |
| Fields inherited from interface com.google.code.facebookapi.IFacebookRestClient |
|---|
ERROR_TAG, TARGET_API_VERSION |
| Constructor Summary | |
|---|---|
FacebookJaxbRestClient(ExtensibleClient client)
|
|
FacebookJaxbRestClient(java.lang.String apiKey,
java.lang.String secret)
|
|
FacebookJaxbRestClient(java.lang.String apiKey,
java.lang.String secret,
java.lang.String sessionKey)
|
|
FacebookJaxbRestClient(java.lang.String apiKey,
java.lang.String secret,
java.lang.String sessionKey,
boolean sessionSecret)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
admin_getDailyMetrics(java.util.Set<Metric> metrics,
java.util.Date start,
java.util.Date end)
Deprecated. |
java.lang.Object |
admin_getDailyMetrics(java.util.Set<Metric> metrics,
long start,
long end)
Deprecated. |
AdminGetMetricsResponse |
admin_getMetrics(java.util.Set<Metric> metrics,
java.util.Date start,
java.util.Date end,
long period)
Retrieve metrics for the current application. |
AdminGetMetricsResponse |
admin_getMetrics(java.util.Set<Metric> metrics,
long start,
long end,
long period)
Retrieve the daily metrics for the current application. |
AppInfo |
application_getPublicInfo(java.lang.Long applicationId,
java.lang.String applicationKey,
java.lang.String applicationCanvas)
Gets the public information about the specified application. |
AppInfo |
application_getPublicInfoByApiKey(java.lang.String applicationKey)
Gets the public information about the specified application, by API key. |
AppInfo |
application_getPublicInfoByCanvasName(java.lang.String applicationCanvas)
Gets the public information about the specified application, by canvas-page name. |
AppInfo |
application_getPublicInfoById(java.lang.Long applicationId)
Gets the public information about the specified application, by application id. |
BatchRunResponse |
batch_run(java.lang.String methods,
boolean serial)
Executes a batch of queries. |
ConnectRegisterUsersResponse |
connect_registerUsers(java.util.Collection<java.util.Map<java.lang.String,java.lang.String>> accounts)
This method is used to create an association between an external user account and a Facebook user account. |
ConnectUnregisterUsersResponse |
connect_unregisterUsers(java.util.Collection<java.lang.String> email_hashes)
This method allows a site to unregister a previously registered account (using connect.registerUsers). |
DashboardMultiAddNewsResponse |
dashboard_multiAddNews(java.util.Collection<java.lang.Long> userIds,
java.util.Collection<DashboardNewsItem> newsItems)
Non-imageUrl method signature form. |
DashboardMultiAddNewsResponse |
dashboard_multiAddNews(java.util.Collection<java.lang.Long> userIds,
java.util.Collection<DashboardNewsItem> newsItems,
java.lang.String imageUrl)
Adds all of the supplied news items to each of the users specified. |
DashboardMultiClearNewsResponse |
dashboard_multiClearNews(java.util.Collection<java.lang.Long> userIds)
Clears all of the news items associated to the specified users. |
DashboardMultiClearNewsResponse |
dashboard_multiClearNews(java.util.Map<java.lang.Long,java.util.Collection<java.lang.Long>> userIdToNewsIdsMap)
Removes the referenced news items against each of the users specified. |
AssociationInfo |
data_getAssociationDefinition(java.lang.String associationName)
|
DataGetAssociationDefinitionsResponse |
data_getAssociationDefinitions()
|
DataGetCookiesResponse |
data_getCookies()
Get all cookies for the currently logged-in user. |
DataGetCookiesResponse |
data_getCookies(java.lang.Long userId)
Get all cookies for the specified user. |
DataGetCookiesResponse |
data_getCookies(java.lang.Long userId,
java.lang.CharSequence name)
Get a specific cookie for the specified user. |
DataGetCookiesResponse |
data_getCookies(java.lang.String name)
Get a specific cookie for the currently logged-in user. |
java.lang.Object |
data_getObject(long objectId)
|
java.lang.String |
data_getObjectProperty(long objectId,
java.lang.String propertyName)
|
DataGetObjectsResponse |
data_getObjects(java.util.Collection<java.lang.Long> objectIds)
|
DataGetObjectTypeResponse |
data_getObjectType(java.lang.String objectType)
|
DataGetObjectTypesResponse |
data_getObjectTypes()
|
java.lang.Object |
data_getUserPreferences()
Get a map containing all preference values set for the current user. |
EventsGetResponse |
events_get(java.lang.Long userId,
java.util.Collection<java.lang.Long> eventIds,
java.lang.Long startTime,
java.lang.Long endTime)
Returns all visible events according to the filters specified. |
EventsGetResponse |
events_get(java.lang.Long userId,
java.util.Collection<java.lang.Long> eventIds,
java.lang.Long startTime,
java.lang.Long endTime,
java.lang.String rsvp_status)
Returns all visible events according to the filters specified. |
EventMembers |
events_getMembers(java.lang.Long eventId)
Retrieves the membership list of an event |
FbmlGetCustomTagsResponse |
fbml_getCustomTags(java.lang.String appId)
Returns the custom tag definitions for tags that were previously defined using fbml.registerCustomTags. |
java.lang.Object |
feed_getRegisteredTemplateBundleByID(java.lang.Long id)
Deprecated. |
java.lang.Object |
feed_getRegisteredTemplateBundles()
Deprecated. |
java.lang.Object |
fql_query(java.lang.CharSequence query)
Retrieves the results of a Facebook Query Language query |
FriendsAreFriendsResponse |
friends_areFriends(java.util.Collection<java.lang.Long> userIds1,
java.util.Collection<java.lang.Long> userIds2)
Retrieves whether pairs of users are friends. |
FriendsAreFriendsResponse |
friends_areFriends(long userId1,
long userId2)
Retrieves whether two users are friends. |
FriendsGetResponse |
friends_get()
Retrieves the friends of the currently logged in user. |
FriendsGetResponse |
friends_get(java.lang.Long uid)
Retrieves the friends uid. |
FriendsGetAppUsersResponse |
friends_getAppUsers()
Retrieves the friends of the currently logged in user, who are also users of the calling application. |
FriendsGetListsResponse |
friends_getList(java.lang.Long friendListId)
Retrieves the friends of the currently logged in user that are members of the friends list with ID friendListId. |
FriendsGetListsResponse |
friends_getLists()
Retrieves the friend lists of the currently logged in user. |
FriendsGetMutualFriendsResponse |
friends_getMutualFriends(java.lang.Long targetId)
Returns the Facebook user IDs of the mutual friends between the source user and target user. |
FriendsGetMutualFriendsResponse |
friends_getMutualFriends(java.lang.Long sourceId,
java.lang.Long targetId)
Returns the Facebook user IDs of the mutual friends between the source user and target user. |
GroupsGetResponse |
groups_get(java.lang.Long userId,
java.util.Collection<java.lang.Long> groupIds)
Retrieves the groups associated with a user |
java.lang.Object |
groups_getMembers(java.lang.Number groupId)
Retrieves the membership list of a group |
java.lang.Object |
notifications_get()
Deprecated. |
PagesGetInfoResponse |
pages_getInfo(java.util.Collection<java.lang.Long> pageIds,
java.util.Collection<PageProfileField> fields)
Retrieves the requested profile fields for the Facebook Pages with the given pageIds. |
PagesGetInfoResponse |
pages_getInfo(java.util.Collection<java.lang.Long> pageIds,
java.util.Set<java.lang.CharSequence> fields)
Retrieves the requested profile fields for the Facebook Pages with the given pageIds. |
PagesGetInfoResponse |
pages_getInfo(java.lang.Long userId,
java.util.Collection<PageProfileField> fields)
Retrieves the requested profile fields for the Facebook Pages of the user with the given userId. |
PagesGetInfoResponse |
pages_getInfo(java.lang.Long userId,
java.util.Set<java.lang.CharSequence> fields)
Retrieves the requested profile fields for the Facebook Pages of the user with the given userId. |
java.lang.Object |
payments_getOrders(java.lang.String status,
long startTime,
long endTime)
Returns all orders for the given application |
java.util.List<java.lang.String> |
permissions_checkAvailableApiAccess(java.lang.String apiKey)
Check to see what permissions have been granted to current app by the specified external application. |
java.util.List<java.lang.String> |
permissions_checkGrantedApiAccess(java.lang.String apiKey)
Check to see what permissions have been granted to specified external application by the current application. |
java.util.List<java.lang.Boolean> |
photos_addTags(java.lang.String photoId,
java.util.Collection<PhotoTag> tags)
Adds several tags to a photo. |
java.lang.Object |
photos_addTags(java.lang.String photoId,
java.util.Collection<PhotoTag> tags,
java.lang.Long userId)
Adds several tags to a photo. |
Album |
photos_createAlbum(java.lang.String albumName)
Creates an album. |
Album |
photos_createAlbum(java.lang.String albumName,
java.lang.Long userId)
Creates an album. |
Album |
photos_createAlbum(java.lang.String name,
java.lang.String description,
java.lang.String location)
Creates an album. |
Album |
photos_createAlbum(java.lang.String name,
java.lang.String description,
java.lang.String location,
java.lang.Long userId)
Creates an album. |
PhotosGetResponse |
photos_get(java.util.Collection<java.lang.String> photoIds)
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided). |
PhotosGetResponse |
photos_get(java.lang.Long subjId)
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided). |
PhotosGetResponse |
photos_get(java.lang.Long subjId,
java.util.Collection<java.lang.String> photoIds)
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided). |
PhotosGetResponse |
photos_get(java.lang.Long subjId,
java.lang.String albumId)
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided). |
PhotosGetResponse |
photos_get(java.lang.Long subjId,
java.lang.String albumId,
java.util.Collection<java.lang.String> photoIds)
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided). |
PhotosGetAlbumsResponse |
photos_getAlbums(java.util.Collection<java.lang.String> albumIds)
Retrieves album metadata for a list of album IDs. |
PhotosGetAlbumsResponse |
photos_getAlbums(java.lang.Long userId)
Retrieves album metadata for albums owned by a user. |
PhotosGetAlbumsResponse |
photos_getAlbums(java.lang.Long userId,
java.util.Collection<java.lang.String> albumIds)
Retrieves album metadata. |
PhotosGetResponse |
photos_getByAlbum(java.lang.String albumId)
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided). |
PhotosGetResponse |
photos_getByAlbum(java.lang.String albumId,
java.util.Collection<java.lang.String> photoIds)
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided). |
PhotosGetTagsResponse |
photos_getTags(java.util.Collection<java.lang.String> photoIds)
Retrieves the tags for the given set of photos. |
Photo |
photos_upload(java.io.File photo)
Uploads a photo to Facebook. |
Photo |
photos_upload(java.io.File photo,
java.lang.String caption,
java.lang.String albumId)
Uploads a photo to Facebook. |
Photo |
photos_upload(java.lang.Long userId,
java.io.File photo)
Uploads a photo to Facebook. |
Photo |
photos_upload(java.lang.Long userId,
java.io.File photo,
java.lang.String caption,
java.lang.String albumId)
Uploads a photo to Facebook. |
Photo |
photos_upload(java.lang.Long userId,
java.lang.String caption,
java.lang.String albumId,
java.lang.String fileName,
java.io.InputStream fileStream)
Uploads a photo to Facebook. |
Photo |
photos_uploadToAlbum(java.io.File photo,
java.lang.String albumId)
Uploads a photo to Facebook. |
Photo |
photos_uploadToAlbum(java.lang.Long userId,
java.io.File photo,
java.lang.String albumId)
Uploads a photo to Facebook. |
Photo |
photos_uploadWithCaption(java.io.File photo,
java.lang.String caption)
Uploads a photo to Facebook. |
Photo |
photos_uploadWithCaption(java.lang.Long userId,
java.io.File photo,
java.lang.String caption)
Uploads a photo to Facebook. |
java.lang.Object |
profile_getFBML()
Deprecated. |
java.lang.Object |
profile_getFBML(int type)
Deprecated. |
java.lang.Object |
profile_getFBML(int type,
java.lang.Long userId)
Deprecated. |
java.lang.Object |
profile_getFBML(java.lang.Long userId)
Deprecated. |
java.lang.Object |
profile_getInfo(java.lang.Long userId)
Deprecated. |
java.lang.Object |
profile_getInfoOptions(java.lang.String field)
Deprecated. |
StreamData |
stream_get(java.lang.Long viewerId,
java.util.List<java.lang.Long> sourceIds,
java.util.Date start,
java.util.Date end,
java.lang.Integer limit,
java.lang.String filterKey,
java.util.List<java.lang.String> metadata)
|
StreamGetCommentsResponse |
stream_getComments(java.lang.String postId)
|
StreamGetFiltersResponse |
stream_getFilters(java.lang.Long userId)
|
UsersGetInfoResponse |
users_getInfo(java.lang.Iterable<java.lang.Long> userIds,
java.util.Collection<ProfileField> fields)
Retrieves the requested info fields for the requested set of users. |
UsersGetInfoResponse |
users_getInfo(java.lang.Iterable<java.lang.Long> userIds,
java.util.Set<java.lang.CharSequence> fields)
Retrieves the requested info fields for the requested set of users. |
UsersGetStandardInfoResponse |
users_getStandardInfo(java.util.Collection<java.lang.Long> userIds,
java.util.Collection<ProfileField> fields)
Returns an array of user-specific information for each user identifier passed, limited by the view of the current user. |
UsersGetStandardInfoResponse |
users_getStandardInfo(java.util.Collection<java.lang.Long> userIds,
java.util.Set<java.lang.CharSequence> fields)
Returns an array of user-specific information for each user identifier passed, limited by the view of the current user. |
| Methods inherited from class com.google.code.facebookapi.FacebookJaxbRestClientBase |
|---|
executeBatch, getJaxbContext, getResponsePOJO, getResponsePOJO, initJaxbSupport, parseCallResult, setJaxbContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FacebookJaxbRestClient(ExtensibleClient client)
public FacebookJaxbRestClient(java.lang.String apiKey,
java.lang.String secret)
public FacebookJaxbRestClient(java.lang.String apiKey,
java.lang.String secret,
java.lang.String sessionKey)
public FacebookJaxbRestClient(java.lang.String apiKey,
java.lang.String secret,
java.lang.String sessionKey,
boolean sessionSecret)
| Method Detail |
|---|
@Deprecated
public java.lang.Object profile_getFBML()
throws FacebookException
IFacebookRestClient
FacebookExceptionIFacebookRestClient.profile_getFBML(int, Long)
@Deprecated
public java.lang.Object admin_getDailyMetrics(java.util.Set<Metric> metrics,
java.util.Date start,
java.util.Date end)
throws FacebookException
IFacebookRestClient
metrics - a set specifying the specific metrics to retrievestart - the starting date to retrieve data for (range must not exceed 30 days)end - the ending to to retrive data for (range must not exceed 30 days)
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getDailyMetrics
public DataGetCookiesResponse data_getCookies()
throws FacebookException
IFacebookRestClient
FacebookException
@Deprecated
public java.lang.Object feed_getRegisteredTemplateBundleByID(java.lang.Long id)
throws FacebookException
IFacebookRestClient
id - the id to retrieve.
FacebookException
public FriendsGetResponse friends_get()
throws FacebookException
IFacebookRestClient
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Friends.get
public FriendsGetResponse friends_get(java.lang.Long uid)
throws FacebookException
IFacebookRestClient
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Friends.get
public Album photos_createAlbum(java.lang.String name,
java.lang.String description,
java.lang.String location,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
name - The album name.description - The album description (optional).location - The album location (optional).userId - the id of the user creating the album.
FacebookException
public AdminGetMetricsResponse admin_getMetrics(java.util.Set<Metric> metrics,
java.util.Date start,
java.util.Date end,
long period)
throws FacebookException
IFacebookRestClient
metrics - a set specifying the specific metrics to retrievestart - the starting date to retrieve data for (range must not exceed 30 days)end - the ending to to retrive data for (range must not exceed 30 days)period - a number specifying the desired period to group the metrics by, in seconds, Facebook currently only supports Metric.PERIOD_DAY, Metric.PERIOD_WEEK, and
Metric.PERIOD_MONTH
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getMetrics
public DataGetCookiesResponse data_getCookies(java.lang.Long userId,
java.lang.CharSequence name)
throws FacebookException
IFacebookRestClient
userId - the id of the user to get the cookies for.name - the name of the cookie to retrieve.
FacebookException
public java.util.List<java.lang.Boolean> photos_addTags(java.lang.String photoId,
java.util.Collection<PhotoTag> tags)
throws FacebookException
IFacebookRestClient
photoId - The photo id of the photo to be tagged.tags - A list of PhotoTags.
FacebookException
public java.lang.Object photos_addTags(java.lang.String photoId,
java.util.Collection<PhotoTag> tags,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
photoId - The photo id of the photo to be tagged.tags - A list of PhotoTags.userId - the id of the user adding the tags.
FacebookException
public java.lang.String data_getObjectProperty(long objectId,
java.lang.String propertyName)
throws FacebookException
FacebookException
public java.util.List<java.lang.String> permissions_checkAvailableApiAccess(java.lang.String apiKey)
throws FacebookException
IFacebookRestClient
apiKey - the API key of the application to check for permissions from.
FacebookException
public DashboardMultiAddNewsResponse dashboard_multiAddNews(java.util.Collection<java.lang.Long> userIds,
java.util.Collection<DashboardNewsItem> newsItems,
java.lang.String imageUrl)
throws FacebookException
IFacebookRestClient
userIds - Target users. Each user will be the target of all of the supplied news items.imageUrl - Absolute URL of image used to replace application logo in the dashboard. (optional)
FacebookException
public FriendsGetAppUsersResponse friends_getAppUsers()
throws FacebookException
IFacebookRestClient
FacebookException
public DataGetObjectTypesResponse data_getObjectTypes()
throws FacebookException
FacebookException
public java.lang.Object data_getObject(long objectId)
throws FacebookException
FacebookException
public Photo photos_uploadWithCaption(java.lang.Long userId,
java.io.File photo,
java.lang.String caption)
throws FacebookException
IFacebookRestClient
userId - the id of the user uploading the photophoto - an image filecaption - a description of the image contents
FacebookException
public FbmlGetCustomTagsResponse fbml_getCustomTags(java.lang.String appId)
throws FacebookException
IFacebookRestClient
appId - The ID of the application whose custom tags you want to get. If the ID is the calling application's ID, all the application's custom tags are returned.
Otherwise, only the application's public custom tags are returned. (Default value is the calling application's ID.).
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Fbml.getCustomTags
public UsersGetInfoResponse users_getInfo(java.lang.Iterable<java.lang.Long> userIds,
java.util.Collection<ProfileField> fields)
throws FacebookException
IFacebookRestClient
userIds - a collection of user IDs for which to fetch infofields - a set of ProfileFields
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Users.getInfo
public StreamData stream_get(java.lang.Long viewerId,
java.util.List<java.lang.Long> sourceIds,
java.util.Date start,
java.util.Date end,
java.lang.Integer limit,
java.lang.String filterKey,
java.util.List<java.lang.String> metadata)
throws FacebookException
FacebookException
public DashboardMultiAddNewsResponse dashboard_multiAddNews(java.util.Collection<java.lang.Long> userIds,
java.util.Collection<DashboardNewsItem> newsItems)
throws FacebookException
IFacebookRestClient
FacebookExceptionIFacebookRestClient.dashboard_multiAddNews(Collection, Collection, String)
public java.lang.Object data_getUserPreferences()
throws FacebookException
IFacebookRestClient
FacebookException - if an error happens when executing the API call.
public DataGetObjectTypeResponse data_getObjectType(java.lang.String objectType)
throws FacebookException
FacebookException
public PhotosGetResponse photos_get(java.util.Collection<java.lang.String> photoIds)
throws FacebookException
IFacebookRestClient
photoIds - retrieve from this list of photos (optional)
FacebookException#photos_get(Long, Long, Collection),
Developers Wiki: Photos.get
public java.util.List<java.lang.String> permissions_checkGrantedApiAccess(java.lang.String apiKey)
throws FacebookException
IFacebookRestClient
apiKey - the API key of the application to check permissions for.
FacebookException
public Photo photos_upload(java.io.File photo,
java.lang.String caption,
java.lang.String albumId)
throws FacebookException
IFacebookRestClient
photo - an image filecaption - a description of the image contentsalbumId - the album into which the photo should be uploaded
FacebookException
public Photo photos_upload(java.io.File photo)
throws FacebookException
IFacebookRestClient
photo - an image file
FacebookException
public Photo photos_upload(java.lang.Long userId,
java.io.File photo,
java.lang.String caption,
java.lang.String albumId)
throws FacebookException
IFacebookRestClient
userId - the id of the user uploading the photophoto - an image filecaption - a description of the image contentsalbumId - the album into which the photo should be uploaded
FacebookException
public PagesGetInfoResponse pages_getInfo(java.util.Collection<java.lang.Long> pageIds,
java.util.Set<java.lang.CharSequence> fields)
throws FacebookException
IFacebookRestClientpageIds. Can be called for pages that have added the application without
establishing a session.
pageIds - the page IDsfields - a set of page profile fields
FacebookException
public StreamGetCommentsResponse stream_getComments(java.lang.String postId)
throws FacebookException
FacebookException
public UsersGetStandardInfoResponse users_getStandardInfo(java.util.Collection<java.lang.Long> userIds,
java.util.Collection<ProfileField> fields)
throws FacebookException
IFacebookRestClient
userIds - a collection of user IDs for which to fetch infofields - a set of ProfileFields
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Users.getStandardInfo
public Photo photos_uploadWithCaption(java.io.File photo,
java.lang.String caption)
throws FacebookException
IFacebookRestClient
photo - an image filecaption - a description of the image contents
FacebookException
@Deprecated
public java.lang.Object profile_getFBML(int type,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
type - The type of profile box to retrieve. Specify 1 for the original style (wide and narrow column boxes), 2 for profile_main box. (Default value is 1.)userId - The user whose profile FBML is to be fetched, or the page ID in case of a Page. If not specified, defaults to the session user.
FacebookException
public PhotosGetResponse photos_get(java.lang.Long subjId,
java.lang.String albumId)
throws FacebookException
IFacebookRestClient
subjId - retrieve from photos associated with this user (optional).albumId - retrieve from photos from this album (optional)
FacebookException#photos_get(Long, Long, Collection),
Developers Wiki: Photos.get
public AssociationInfo data_getAssociationDefinition(java.lang.String associationName)
throws FacebookException
FacebookException
public DataGetObjectsResponse data_getObjects(java.util.Collection<java.lang.Long> objectIds)
throws FacebookException
FacebookException
public PhotosGetResponse photos_get(java.lang.Long subjId)
throws FacebookException
IFacebookRestClient
subjId - retrieve from photos associated with this user (optional).
FacebookException#photos_get(Long, Long, Collection),
Developers Wiki: Photos.get
public FriendsGetListsResponse friends_getList(java.lang.Long friendListId)
throws FacebookException
IFacebookRestClientfriendListId.
friendListId - the friend list for which friends should be fetched. if null, all friends will be retrieved.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Friends.get
public AppInfo application_getPublicInfoByApiKey(java.lang.String applicationKey)
throws FacebookException
IFacebookRestClient
applicationKey - the public API key of the application to get the info for.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Application.getPublicInfo
public EventMembers events_getMembers(java.lang.Long eventId)
throws FacebookException
IFacebookRestClient
eventId - The event ID.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Events.getMembers
public java.lang.Object fql_query(java.lang.CharSequence query)
throws FacebookException
IFacebookRestClient
query - : the FQL query statement
FacebookException
public PhotosGetResponse photos_get(java.lang.Long subjId,
java.util.Collection<java.lang.String> photoIds)
throws FacebookException
IFacebookRestClient
subjId - retrieve from photos associated with this user (optional).photoIds - retrieve from this list of photos (optional)
FacebookException#photos_get(Long, Long, Collection),
Developers Wiki: Photos.get
@Deprecated
public java.lang.Object profile_getInfoOptions(java.lang.String field)
throws FacebookException
IFacebookRestClient
field - the field to get the options for.
FacebookException
public java.lang.Object payments_getOrders(java.lang.String status,
long startTime,
long endTime)
throws FacebookException
IFacebookRestClient
status - Return orders with the specified status. Specify one of reserved, settled, or refundedstartTime - Return orders within this time intervalendTime - Return orders within this time interval
FacebookException
public Photo photos_uploadToAlbum(java.lang.Long userId,
java.io.File photo,
java.lang.String albumId)
throws FacebookException
IFacebookRestClient
userId - the id of the user uploading the photophoto - an image filealbumId - the album into which the photo should be uploaded
FacebookException
public EventsGetResponse events_get(java.lang.Long userId,
java.util.Collection<java.lang.Long> eventIds,
java.lang.Long startTime,
java.lang.Long endTime)
throws FacebookException
IFacebookRestClient
userId - Filter by events associated with a user with this uid.eventIds - Filter by this list of event IDs. This is a comma-separated list of event IDs.startTime - Filter with this UTC as lower bound. A missing or zero parameter indicates no lower bound.endTime - Filter with this UTC as upper bound. A missing or zero parameter indicates no upper bound.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Events.get
@Deprecated
public java.lang.Object profile_getFBML(int type)
throws FacebookException
IFacebookRestClient
type - The type of profile box to retrieve. Specify 1 for the original style (wide and narrow column boxes), 2 for profile_main box. (Default value is 1.)
FacebookExceptionIFacebookRestClient.profile_getFBML(int, Long)
@Deprecated
public java.lang.Object profile_getFBML(java.lang.Long userId)
throws FacebookException
IFacebookRestClient
userId - The user whose profile FBML is to be fetched, or the page ID in case of a Page. If not specified, defaults to the session user.
FacebookExceptionIFacebookRestClient.profile_getFBML(int, Long)
public Photo photos_upload(java.lang.Long userId,
java.lang.String caption,
java.lang.String albumId,
java.lang.String fileName,
java.io.InputStream fileStream)
throws FacebookException
IFacebookRestClient
userId - the id of the user uploading the photocaption - a description of the image contentsalbumId - the album into which the photo should be uploaded
FacebookException
public FriendsAreFriendsResponse friends_areFriends(long userId1,
long userId2)
throws FacebookException
IFacebookRestClient
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Friends.areFriends
public PhotosGetTagsResponse photos_getTags(java.util.Collection<java.lang.String> photoIds)
throws FacebookException
IFacebookRestClient
photoIds - The list of photos from which to extract photo tags.
FacebookException
public Photo photos_upload(java.lang.Long userId,
java.io.File photo)
throws FacebookException
IFacebookRestClient
userId - the id of the user uploading the photophoto - an image file
FacebookException
public Album photos_createAlbum(java.lang.String albumName,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
albumName - The list of photos from which to extract photo tags.userId - the id of the user creating the album.
FacebookException
public PhotosGetResponse photos_getByAlbum(java.lang.String albumId)
throws FacebookException
IFacebookRestClient
albumId - retrieve from photos from this album (optional)
FacebookException#photos_get(Integer, Long, Collection),
Developers Wiki: Photos.get
@Deprecated
public java.lang.Object feed_getRegisteredTemplateBundles()
throws FacebookException
IFacebookRestClient
FacebookException
public AppInfo application_getPublicInfo(java.lang.Long applicationId,
java.lang.String applicationKey,
java.lang.String applicationCanvas)
throws FacebookException
IFacebookRestClient
applicationId - the id of the application to get the info for.applicationKey - the public API key of the application to get the info for.applicationCanvas - the canvas-page name of the application to get the info for.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Application.getPublicInfo
public PhotosGetAlbumsResponse photos_getAlbums(java.lang.Long userId,
java.util.Collection<java.lang.String> albumIds)
throws FacebookException
IFacebookRestClient
userId - (optional) the id of the albums' owner (optional)albumIds - (optional) the ids of albums whose metadata is to be retrieved
FacebookException
public FriendsGetMutualFriendsResponse friends_getMutualFriends(java.lang.Long targetId)
throws FacebookException
IFacebookRestClient
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Friends.getMutualFriends
public PagesGetInfoResponse pages_getInfo(java.util.Collection<java.lang.Long> pageIds,
java.util.Collection<PageProfileField> fields)
throws FacebookException
IFacebookRestClientpageIds. Can be called for pages that have added the application without
establishing a session.
pageIds - the page IDsfields - a set of page profile fields
FacebookException
public DashboardMultiClearNewsResponse dashboard_multiClearNews(java.util.Collection<java.lang.Long> userIds)
throws FacebookException
IFacebookRestClient
FacebookException#dashboard_multiClearNews(Map>)
public DataGetAssociationDefinitionsResponse data_getAssociationDefinitions()
throws FacebookException
FacebookException
public java.lang.Object groups_getMembers(java.lang.Number groupId)
throws FacebookException
IFacebookRestClient
groupId - the group id
FacebookException
public ConnectRegisterUsersResponse connect_registerUsers(java.util.Collection<java.util.Map<java.lang.String,java.lang.String>> accounts)
throws FacebookException
IFacebookRestClient
accounts - An array of up to 1,000 arrays, or "maps," where each map represent a connected account. Each map can have the following properties:
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Connect.registerUsers
@Deprecated
public java.lang.Object profile_getInfo(java.lang.Long userId)
throws FacebookException
IFacebookRestClient
userId - the id of the user to get the info section for.
FacebookException
public PhotosGetAlbumsResponse photos_getAlbums(java.util.Collection<java.lang.String> albumIds)
throws FacebookException
IFacebookRestClient
albumIds - the ids of albums whose metadata is to be retrieved
FacebookException
public FriendsAreFriendsResponse friends_areFriends(java.util.Collection<java.lang.Long> userIds1,
java.util.Collection<java.lang.Long> userIds2)
throws FacebookException
IFacebookRestClientuserIds1 is friends with the first user in userIds2, the
second user in userIds1 is friends with the second user in userIds2, etc.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Friends.areFriends
public DataGetCookiesResponse data_getCookies(java.lang.String name)
throws FacebookException
IFacebookRestClient
name - the name of the cookie to retrieve.
FacebookException
@Deprecated
public java.lang.Object admin_getDailyMetrics(java.util.Set<Metric> metrics,
long start,
long end)
throws FacebookException
IFacebookRestClient
metrics - a set specifying the specific metrics to retrievestart - the starting date to retrieve data for (range must not exceed 30 days), the accepted unit of time is milliseconds, NOT secondsend - the ending to to retrive data for (range must not exceed 30 days), the accepted unit of time is milliseconds, NOT seconds
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getDailyMetrics
public FriendsGetMutualFriendsResponse friends_getMutualFriends(java.lang.Long sourceId,
java.lang.Long targetId)
throws FacebookException
IFacebookRestClient
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Friends.getMutualFriends
@Deprecated
public java.lang.Object notifications_get()
throws FacebookException
IFacebookRestClient
FacebookException
public UsersGetStandardInfoResponse users_getStandardInfo(java.util.Collection<java.lang.Long> userIds,
java.util.Set<java.lang.CharSequence> fields)
throws FacebookException
IFacebookRestClient
userIds - a collection of user IDs for which to fetch infofields - a set of strings describing the info fields desired, such as "last_name", "sex"
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Users.getStandardInfo
public DashboardMultiClearNewsResponse dashboard_multiClearNews(java.util.Map<java.lang.Long,java.util.Collection<java.lang.Long>> userIdToNewsIdsMap)
throws FacebookException
IFacebookRestClient
FacebookException
public PagesGetInfoResponse pages_getInfo(java.lang.Long userId,
java.util.Collection<PageProfileField> fields)
throws FacebookException
IFacebookRestClientuserId.
userId - the ID of a user about whose pages to fetch infofields - a set of PageProfileFields
FacebookException
public FriendsGetListsResponse friends_getLists()
throws FacebookException
IFacebookRestClient
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Friends.getLists
public Album photos_createAlbum(java.lang.String name,
java.lang.String description,
java.lang.String location)
throws FacebookException
IFacebookRestClient
name - The album name.description - The album description (optional).location - The album location (optional).
FacebookException
public GroupsGetResponse groups_get(java.lang.Long userId,
java.util.Collection<java.lang.Long> groupIds)
throws FacebookException
IFacebookRestClient
userId - Optional: User associated with groups. A null parameter will default to the session user.groupIds - Optional: group ids to query. A null parameter will get all groups for the user.
FacebookException
public PhotosGetAlbumsResponse photos_getAlbums(java.lang.Long userId)
throws FacebookException
IFacebookRestClient
userId - (optional) the id of the albums' owner (optional)
FacebookException
public AppInfo application_getPublicInfoById(java.lang.Long applicationId)
throws FacebookException
IFacebookRestClient
applicationId - the id of the application to get the info for.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Application.getPublicInfo
public DataGetCookiesResponse data_getCookies(java.lang.Long userId)
throws FacebookException
IFacebookRestClient
userId - the id of the user to get the cookies for.
FacebookException
public PagesGetInfoResponse pages_getInfo(java.lang.Long userId,
java.util.Set<java.lang.CharSequence> fields)
throws FacebookException
IFacebookRestClientuserId.
userId - the ID of a user about whose pages to fetch infofields - a set of page profile fields
FacebookException
public Album photos_createAlbum(java.lang.String albumName)
throws FacebookException
IFacebookRestClient
albumName - The list of photos from which to extract photo tags.
FacebookException
public StreamGetFiltersResponse stream_getFilters(java.lang.Long userId)
throws FacebookException
FacebookException
public ConnectUnregisterUsersResponse connect_unregisterUsers(java.util.Collection<java.lang.String> email_hashes)
throws FacebookException
IFacebookRestClient
email_hashes - An array of email_hashes to unregister.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Connect.unregisterUsers
public AdminGetMetricsResponse admin_getMetrics(java.util.Set<Metric> metrics,
long start,
long end,
long period)
throws FacebookException
IFacebookRestClient
metrics - a set specifying the specific metrics to retrievestart - the starting date to retrieve data for (range must not exceed 30 days), the accepted unit of time is milliseconds, NOT secondsend - the ending to to retrive data for (range must not exceed 30 days), the accepted unit of time is milliseconds, NOT secondsperiod - a number specifying the desired period to group the metrics by, in seconds, Facebook currently only supports Metric.PERIOD_DAY, Metric.PERIOD_WEEK, and
Metric.PERIOD_MONTH
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getMetrics
public EventsGetResponse events_get(java.lang.Long userId,
java.util.Collection<java.lang.Long> eventIds,
java.lang.Long startTime,
java.lang.Long endTime,
java.lang.String rsvp_status)
throws FacebookException
IFacebookRestClient
userId - Filter by events associated with a user with this uid.eventIds - Filter by this list of event IDs. This is a comma-separated list of event IDs.startTime - Filter with this UTC as lower bound. A missing or zero parameter indicates no lower bound.endTime - Filter with this UTC as upper bound. A missing or zero parameter indicates no upper bound.rsvp_status - Filter by this RSVP status. The RSVP status should be one of the following strings: attending, unsure, declined, not_replied
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Events.get
public UsersGetInfoResponse users_getInfo(java.lang.Iterable<java.lang.Long> userIds,
java.util.Set<java.lang.CharSequence> fields)
throws FacebookException
IFacebookRestClient
userIds - a collection of user IDs for which to fetch infofields - a set of strings describing the info fields desired, such as "last_name", "sex"
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Users.getInfo
public Photo photos_uploadToAlbum(java.io.File photo,
java.lang.String albumId)
throws FacebookException
IFacebookRestClient
photo - an image filealbumId - the album into which the photo should be uploaded
FacebookException
public BatchRunResponse batch_run(java.lang.String methods,
boolean serial)
throws FacebookException
IFacebookRestClient
methods - A JSON encoded array of strings. Each element in the array should contain the full parameters for a method, including method name, sig, etc. Currently,
there is a maximum limit of 15 elements in the array.serial - An optional parameter to indicate whether the methods in the method_feed must be executed in order. The default value is false.
FacebookException
public PhotosGetResponse photos_get(java.lang.Long subjId,
java.lang.String albumId,
java.util.Collection<java.lang.String> photoIds)
throws FacebookException
IFacebookRestClient
subjId - retrieve from photos associated with this user (optional).albumId - retrieve from photos from this album (optional)photoIds - retrieve from this list of photos (optional)
FacebookException
public PhotosGetResponse photos_getByAlbum(java.lang.String albumId,
java.util.Collection<java.lang.String> photoIds)
throws FacebookException
IFacebookRestClient
albumId - retrieve from photos from this album (optional)photoIds - retrieve from this list of photos (optional)
FacebookException#photos_get(Integer, Long, Collection),
Developers Wiki: Photos.get
public AppInfo application_getPublicInfoByCanvasName(java.lang.String applicationCanvas)
throws FacebookException
IFacebookRestClient
applicationCanvas - the canvas-page name of the application to get the info for.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Application.getPublicInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||