com.google.code.facebookapi
Class FacebookRestClient

java.lang.Object
  extended by com.google.code.facebookapi.FacebookRestClient
All Implemented Interfaces:
IFacebookRestClient<org.w3c.dom.Document>

Deprecated. this is provided for legacy support only. Please use FacebookXmlRestClient instead if you want to use the Facebook Platform XML API.

@Deprecated
public class FacebookRestClient
extends java.lang.Object
implements IFacebookRestClient<org.w3c.dom.Document>

A FacebookRestClient that uses the XML result format. This means results from calls to the Facebook API are returned as XML and transformed into instances of Document. Allocate an instance of this class to make Facebook API requests.


Field Summary
protected  java.lang.String _apiKey
          Deprecated.  
protected  boolean _isDesktop
          Deprecated.  
protected  int _readTimeout
          Deprecated.  
protected  java.lang.String _secret
          Deprecated.  
protected  java.net.URL _serverUrl
          Deprecated.  
protected  int _timeout
          Deprecated.  
protected  java.io.File _uploadFile
          Deprecated.  
protected  boolean batchMode
          Deprecated.  
protected  java.lang.Boolean cacheAppAdded
          Deprecated.  
protected  org.w3c.dom.Document cacheFriendsList
          Deprecated.  
protected  java.lang.Long cacheSessionExpires
          Deprecated.  
protected  java.lang.String cacheSessionKey
          Deprecated.  
protected  java.lang.String cacheSessionSecret
          Deprecated.  
protected  java.lang.Long cacheUserId
          Deprecated.  
protected static java.lang.String CRLF
          Deprecated.  
static java.lang.String ERROR_TAG
          Deprecated. Flag indicating an erroneous response
static java.lang.String FB_SERVER
          Deprecated. Facebook API server, part 1
static java.lang.String HTTPS_SERVER_ADDR
          Deprecated. Facebook API server, part 2b
static java.net.URL HTTPS_SERVER_URL
          Deprecated. Facebook API server, part 3b
protected static javax.xml.bind.JAXBContext JAXB_CONTEXT
          Deprecated.  
protected static org.apache.commons.logging.Log log
          Deprecated.  
static java.lang.String MARKETPLACE_STATUS_DEFAULT
          Deprecated.  
static java.lang.String MARKETPLACE_STATUS_NOT_SUCCESS
          Deprecated.  
static java.lang.String MARKETPLACE_STATUS_SUCCESS
          Deprecated.  
protected  boolean namespaceAware
          Deprecated.  
static int NUM_AUTOAPPENDED_PARAMS
          Deprecated. number of params that the client automatically appends to every API call
protected  java.lang.String permissionsApiKey
          Deprecated.  
protected static java.lang.String PREF
          Deprecated.  
protected  java.util.List<com.google.code.facebookapi.BatchQuery> queries
          Deprecated.  
protected  java.lang.String rawResponse
          Deprecated.  
static java.lang.String SERVER_ADDR
          Deprecated. Facebook API server, part 2a
static java.net.URL SERVER_URL
          Deprecated. Facebook API server, part 3a
static java.lang.String TARGET_API_VERSION
          Deprecated. API version to request when making calls to the server
protected static int UPLOAD_BUFFER_SIZE
          Deprecated.  
 
Constructor Summary
FacebookRestClient(java.lang.String apiKey, java.lang.String secret)
          Deprecated. Constructor
FacebookRestClient(java.lang.String apiKey, java.lang.String secret, int connectionTimeout)
          Deprecated. Constructor
FacebookRestClient(java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey)
          Deprecated. Constructor
FacebookRestClient(java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey, int connectionTimeout)
          Deprecated. Constructor
FacebookRestClient(java.lang.String serverAddr, java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey)
          Deprecated. Constructor
FacebookRestClient(java.lang.String serverAddr, java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey, int connectionTimeout)
          Deprecated. Constructor
FacebookRestClient(java.net.URL serverUrl, java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey)
          Deprecated. Constructor
FacebookRestClient(java.net.URL serverUrl, java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey, int connectionTimeout)
          Deprecated. Constructor
FacebookRestClient(java.net.URL serverUrl, java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey, int connectionTimeout, int readTimeout)
          Deprecated. Constructor
 
Method Summary
 java.lang.Long _getExpires()
          Deprecated. 
 java.lang.String _getSessionKey()
          Deprecated. 
 java.lang.Long _getUserId()
          Deprecated. 
 void _setExpires(java.lang.Long _expires)
          Deprecated. 
 void _setSessionKey(java.lang.String key)
          Deprecated. 
 void _setUserId(java.lang.Long id)
          Deprecated. 
static boolean addParam(java.lang.String name, java.lang.CharSequence value, java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> params)
          Deprecated.  
static boolean addParam(java.lang.String name, java.lang.Long value, java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> params)
          Deprecated.  
static boolean addParamIfNotBlank(java.lang.String name, java.lang.CharSequence value, java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> params)
          Deprecated.  
static boolean addParamIfNotBlank(java.lang.String name, java.lang.Long value, java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> params)
          Deprecated.  
 int admin_getAllocation(AllocationType allocationType)
          Deprecated. Get your application's current allocation of the specified type of request (i.e.
 int admin_getAllocation(java.lang.String allocationType)
          Deprecated. Get your application's current allocation of the specified type of request (i.e.
 org.json.JSONObject admin_getAppProperties(java.util.Collection<ApplicationProperty> properties)
          Deprecated. use admin_getAppPropertiesMap() instead
 ApplicationPropertySet admin_getAppPropertiesAsSet(java.util.EnumSet<ApplicationProperty> properties)
          Deprecated. Gets property values previously set for an application on either the Facebook Developer application or the with the admin.setAppProperties call.
 java.lang.String admin_getAppPropertiesAsString(java.util.Collection<ApplicationProperty> properties)
          Deprecated. Retrieve application properties.
 java.util.Map<ApplicationProperty,java.lang.String> admin_getAppPropertiesMap(java.util.Collection<ApplicationProperty> properties)
          Deprecated. Retrieve application properties.
 org.w3c.dom.Document admin_getDailyMetrics(java.util.Set<Metric> metrics, java.util.Date start, java.util.Date end)
          Deprecated. 
 org.w3c.dom.Document admin_getDailyMetrics(java.util.Set<Metric> metrics, long start, long end)
          Deprecated. 
 org.w3c.dom.Document admin_getMetrics(java.util.Set<Metric> metrics, java.util.Date start, java.util.Date end, long period)
          Deprecated. Retrieve metrics for the current application.
 org.w3c.dom.Document admin_getMetrics(java.util.Set<Metric> metrics, long start, long end, long period)
          Deprecated. Retrieve the daily metrics for the current application.
 int admin_getNotificationAllocation()
          Deprecated. 
 int admin_getRequestAllocation()
          Deprecated. 
 boolean admin_setAppProperties(ApplicationPropertySet properties)
          Deprecated. Sets several property values for an application.
 boolean admin_setAppProperties(java.util.Map<ApplicationProperty,java.lang.String> properties)
          Deprecated. Set application properties.
 org.w3c.dom.Document application_getPublicInfo(java.lang.Long applicationId, java.lang.String applicationKey, java.lang.String applicationCanvas)
          Deprecated. Gets the public information about the specified application.
 org.w3c.dom.Document application_getPublicInfoByApiKey(java.lang.String applicationKey)
          Deprecated. Gets the public information about the specified application, by API key.
 org.w3c.dom.Document application_getPublicInfoByCanvasName(java.lang.String applicationCanvas)
          Deprecated. Gets the public information about the specified application, by canvas-page name.
 org.w3c.dom.Document application_getPublicInfoById(java.lang.Long applicationId)
          Deprecated. Gets the public information about the specified application, by application id.
 java.lang.String auth_createToken()
          Deprecated. Call this function and store the result, using it to generate the appropriate login url and then to retrieve the session information.
 boolean auth_expireSession()
          Deprecated. Expires the curently active session.
 java.lang.String auth_getSession(java.lang.String authToken)
          Deprecated. Call this function to retrieve the session information after your user has logged in.
 long auth_getUserId(java.lang.String authToken)
          Deprecated. 
 java.lang.String auth_promoteSession()
          Deprecated. Generate a key for the current session that can be used to authenticate client-side components.
 boolean auth_revokeAuthorization()
          Deprecated. If this method is called for the logged in user, then no further API calls can be made on that user's behalf until the user decides to authorize the application again.
 org.w3c.dom.Document batch_run(java.lang.String methods, boolean serial)
          Deprecated. Executes a batch of queries.
 void beginBatch()
          Deprecated. Starts a batch of queries.
 void beginPermissionsMode(java.lang.String apiKey)
          Deprecated. Begins permissions mode, and allows the current application to begin making requests on behalf of the application associated with the specified API key.
protected  org.w3c.dom.Document callMethod(IFacebookMethod method, java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> paramPairs)
          Deprecated. Call the specified method, with the given parameters, and return a DOM tree with the results.
protected  org.w3c.dom.Document callMethod(IFacebookMethod method, Pair<java.lang.String,java.lang.CharSequence>... paramPairs)
          Deprecated. Call the specified method, with the given parameters, and return a DOM tree with the results.
 org.w3c.dom.Document data_getCookies()
          Deprecated. Get all cookies for the currently logged-in user.
 org.w3c.dom.Document data_getCookies(java.lang.Long userId)
          Deprecated. Get all cookies for the specified user.
 org.w3c.dom.Document data_getCookies(java.lang.Long userId, java.lang.CharSequence name)
          Deprecated. Get a specific cookie for the specified user.
 org.w3c.dom.Document data_getCookies(java.lang.String name)
          Deprecated. Get a specific cookie for the currently logged-in user.
 java.lang.String data_getUserPreference(java.lang.Integer prefId)
          Deprecated. Lookup a single preference value for the current user.
 java.util.Map<java.lang.Integer,java.lang.String> data_getUserPreferences()
          Deprecated. Get a map containing all preference values set for the current user.
 boolean data_setCookie(java.lang.Long userId, java.lang.CharSequence name, java.lang.CharSequence value)
          Deprecated. Set a cookie for the specified user.
 boolean data_setCookie(java.lang.Long userId, java.lang.CharSequence name, java.lang.CharSequence value, java.lang.CharSequence path)
          Deprecated. Set a cookie for the specified user, with the specified path.
 boolean data_setCookie(java.lang.Long userId, java.lang.CharSequence name, java.lang.CharSequence value, java.lang.Long expires)
          Deprecated. Set a cookie for the specified user, with the specified expiration date.
 boolean data_setCookie(java.lang.Long userId, java.lang.CharSequence name, java.lang.CharSequence value, java.lang.Long expires, java.lang.CharSequence path)
          Deprecated. Set a cookie for the specified user, with the specified expiration date and path.
 boolean data_setCookie(java.lang.String name, java.lang.String value)
          Deprecated. Set a cookie for the current user.
 boolean data_setCookie(java.lang.String name, java.lang.String value, java.lang.Long expires)
          Deprecated. Set a cookie for the current user, with the specified expiration date.
 boolean data_setCookie(java.lang.String name, java.lang.String value, java.lang.Long expires, java.lang.String path)
          Deprecated. Set a cookie for the current user, with the specified expiration date and path.
 boolean data_setCookie(java.lang.String name, java.lang.String value, java.lang.String path)
          Deprecated. Set a cookie for the current user, under the specified path.
 void data_setUserPreference(java.lang.Integer prefId, java.lang.String value)
          Deprecated. Set a user-preference value.
 void data_setUserPreferences(java.util.Map<java.lang.Integer,java.lang.String> values, boolean replace)
          Deprecated. Set multiple user-preferences values.
protected static java.lang.CharSequence delimit(java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>> entries, java.lang.String delimiter, java.lang.String equals, boolean doEncode)
          Deprecated.  
 void endPermissionsMode()
          Deprecated. Terminates permissions mode.
 org.w3c.dom.Document events_get(java.lang.Long userId, java.util.Collection<java.lang.Long> eventIds, java.lang.Long startTime, java.lang.Long endTime)
          Deprecated. Returns all visible events according to the filters specified.
 org.w3c.dom.Document events_getMembers(java.lang.Number eventId)
          Deprecated. Retrieves the membership list of an event
 java.util.List<? extends java.lang.Object> executeBatch(boolean serial)
          Deprecated. Executes a batch of queries.
static boolean extractBoolean(org.w3c.dom.Node doc)
          Deprecated.  
static int extractInt(org.w3c.dom.Node doc)
          Deprecated. Extracts an Integer from a document that consists of an Integer only.
protected  java.lang.Long extractLong(org.w3c.dom.Document doc)
          Deprecated.  
static java.lang.String extractString(org.w3c.dom.Node d)
          Deprecated. Extracts a String from a T consisting entirely of a String.
 boolean fbml_refreshImgSrc(java.lang.String imageUrl)
          Deprecated. Recaches the image with the specified imageUrl.
 boolean fbml_refreshImgSrc(java.net.URL imageUrl)
          Deprecated. Recaches the image with the specified imageUrl.
 boolean fbml_refreshRefUrl(java.lang.String url)
          Deprecated. Recaches the referenced url.
 boolean fbml_refreshRefUrl(java.net.URL url)
          Deprecated. Recaches the referenced url.
 boolean fbml_setRefHandle(java.lang.String handle, java.lang.String markup)
          Deprecated. Associates the specified FBML markup with the specified handle/id.
 boolean feed_deactivateTemplateBundleByID(java.lang.Long bundleId)
          Deprecated. Deactivates the specified template bundle.
 org.w3c.dom.Document feed_getRegisteredTemplateBundleByID(java.lang.Long id)
          Deprecated. Retrieve a template bundle by id.
 org.w3c.dom.Document feed_getRegisteredTemplateBundles()
          Deprecated. Get a list of all registered template bundles for your application.
 boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate)
          Deprecated. Publishes a Mini-Feed story describing an action taken by the logged-in user, and publishes aggregating News Feed stories to their friends.
 boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate, java.lang.Long pageActorId)
          Deprecated. Publishes a Mini-Feed story describing an action taken by the logged-in user (or, if pageActorId is provided, page), and publishes aggregating News Feed stories to the user's friends/page's fans.
 boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate, java.util.Map<java.lang.String,java.lang.CharSequence> titleData, java.lang.CharSequence bodyTemplate, java.util.Map<java.lang.String,java.lang.CharSequence> bodyData, java.lang.CharSequence bodyGeneral, java.util.Collection<java.lang.Long> targetIds, java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> images, java.lang.Long pageActorId)
          Deprecated. Publishes a Mini-Feed story describing an action taken by the logged-in user (or, if pageActorId is provided, page), and publishes aggregating News Feed stories to the user's friends/page's fans.
 boolean feed_publishTemplatizedAction(java.lang.Integer actorId, java.lang.CharSequence titleTemplate, java.util.Map<java.lang.String,java.lang.CharSequence> titleData, java.lang.CharSequence bodyTemplate, java.util.Map<java.lang.String,java.lang.CharSequence> bodyData, java.lang.CharSequence bodyGeneral, java.util.Collection<java.lang.Long> targetIds, java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> images)
          Deprecated. use the version that treats actorId as a Long. UID's *are not ever to be* expressed as Integers.
 boolean feed_publishTemplatizedAction(java.lang.Long actorId, java.lang.CharSequence titleTemplate)
          Deprecated. Publishes a Mini-Feed story describing an action taken by a user, and publishes aggregating News Feed stories to the friends of that user.
 boolean feed_publishTemplatizedAction(java.lang.Long actorId, java.lang.CharSequence titleTemplate, java.util.Map<java.lang.String,java.lang.CharSequence> titleData, java.lang.CharSequence bodyTemplate, java.util.Map<java.lang.String,java.lang.CharSequence> bodyData, java.lang.CharSequence bodyGeneral, java.util.Collection<java.lang.Long> targetIds, java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> images)
          Deprecated. Publishes a Mini-Feed story describing an action taken by a user, and publishes aggregating News Feed stories to the friends of that user.
 boolean feed_publishTemplatizedAction(java.lang.String titleTemplate, java.lang.String titleData, java.lang.String bodyTemplate, java.lang.String bodyData, java.lang.String bodyGeneral, java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> pictures, java.lang.String targetIds)
          Deprecated. Publishes a templatized action for the current user.
 boolean feed_publishTemplatizedAction(java.lang.String titleTemplate, java.lang.String titleData, java.lang.String bodyTemplate, java.lang.String bodyData, java.lang.String bodyGeneral, java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> pictures, java.lang.String targetIds, java.lang.Long pageId)
          Deprecated.  
 boolean feed_PublishTemplatizedAction(TemplatizedAction action)
          Deprecated. Publishes a templatized action for the current user.
 java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId)
          Deprecated. Publishes a user action to the feed.
 java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId, java.util.Map<java.lang.String,java.lang.String> templateData, java.util.List<IFeedImage> images, java.util.List<java.lang.Long> targetIds, java.lang.String bodyGeneral, int storySize)
          Deprecated. Publishes a user action to the feed.
 java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId, java.util.Map<java.lang.String,java.lang.String> templateData, java.util.List<java.lang.Long> targetIds, java.lang.String bodyGeneral)
          Deprecated. Publishes a user action to the feed.
 java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates)
          Deprecated. Registers a feed template.
 java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates, java.util.Collection<BundleStoryTemplate> shortTemplates, BundleStoryTemplate longTemplate)
          Deprecated. Registers a feed template.
 java.lang.Long feed_registerTemplateBundle(java.lang.String template)
          Deprecated. Registers a feed template.
 java.lang.Long feed_registerTemplateBundle(java.lang.String template, java.lang.String shortTemplate, java.lang.String longTemplate)
          Deprecated.  
 org.w3c.dom.Document fql_query(java.lang.CharSequence query)
          Deprecated. Retrieves the results of a Facebook Query Language query
 org.w3c.dom.Document friends_areFriends(java.util.Collection<java.lang.Long> userIds1, java.util.Collection<java.lang.Long> userIds2)
          Deprecated. Retrieves whether pairs of users are friends.
 org.w3c.dom.Document friends_areFriends(long userId1, long userId2)
          Deprecated. Retrieves the friends of the currently logged in user.
 org.w3c.dom.Document friends_get()
          Deprecated. Retrieves the friends of the currently logged in user.
 org.w3c.dom.Document friends_get(java.lang.Long friendListId)
          Deprecated. Retrieves the friends of the currently logged in user that are members of the friends list with ID friendListId.
 org.w3c.dom.Document friends_getAppUsers()
          Deprecated. Retrieves the friends of the currently logged in user, who are also users of the calling application.
 java.util.List<java.lang.Long> friends_getAsList()
          Deprecated. 
 org.w3c.dom.Document friends_getLists()
          Deprecated. Retrieves the friend lists of the currently logged in user.
 java.lang.Boolean getCacheAppAdded()
          Deprecated.  
 org.w3c.dom.Document getCacheFriendsList()
          Deprecated. Return the object's 'friendsList' property.
 java.lang.Long getCacheSessionExpires()
          Deprecated.  
 java.lang.String getCacheSessionKey()
          Deprecated.  
 java.lang.String getCacheSessionSecret()
          Deprecated.  
 java.lang.Long getCacheUserId()
          Deprecated.  
 java.net.URL getDefaultServerUrl()
          Deprecated.  
 javax.xml.bind.JAXBContext getJaxbContext()
          Deprecated. Get the JAXB context that is being used by the client.
 java.lang.String getRawResponse()
          Deprecated. Returns a string representation for the last API response recieved from Facebook, exactly as sent by the API server.
 java.lang.String getResponseFormat()
          Deprecated. The response format in which results to FacebookMethod calls are returned
 java.lang.Object getResponsePOJO()
          Deprecated. Returns a JAXB object of the type that corresponds to the last API call made on the client.
 org.w3c.dom.Document groups_get(java.lang.Long userId, java.util.Collection<java.lang.Long> groupIds)
          Deprecated. Retrieves the groups associated with a user
 org.w3c.dom.Document groups_getMembers(java.lang.Number groupId)
          Deprecated. Retrieves the membership list of a group
 boolean isDesktop()
          Deprecated. Check to see if the client is running in desktop mode.
 boolean isNamespaceAware()
          Deprecated.  
 java.lang.Boolean liveMessage_send(java.lang.Long recipient, java.lang.String eventName, org.json.JSONObject message)
          Deprecated. Sends a message using the LiveMessage API.
 java.lang.Long marketplace_createListing(boolean showOnProfile, org.json.JSONObject listing)
          Deprecated. Create a new marketplace listing.
 java.lang.Long marketplace_createListing(boolean showOnProfile, MarketListing listing)
          Deprecated. Create a new marketplace listing.
 java.lang.Long marketplace_createListing(boolean showOnProfile, MarketListing listing, java.lang.Long userId)
          Deprecated. Create a new marketplace listing.
 java.lang.Long marketplace_createListing(java.lang.Boolean showOnProfile, MarketplaceListing attrs)
          Deprecated. provided for legacy support only.
 java.lang.Long marketplace_createListing(java.lang.Long listingId, boolean showOnProfile, org.json.JSONObject listing)
          Deprecated. Create a new marketplace listing, or modify an existing one.
 java.lang.Long marketplace_createListing(java.lang.Long listingId, boolean showOnProfile, MarketListing listing)
          Deprecated. Create a new marketplace listing, or modify an existing one.
 java.lang.Long marketplace_createListing(java.lang.Long listingId, boolean showOnProfile, MarketListing listing, java.lang.Long userId)
          Deprecated. Create a new marketplace listing, or modify an existing one.
 java.lang.Long marketplace_createListing(java.lang.Long listingId, boolean showOnProfile, java.lang.String attributes)
          Deprecated. Create a new marketplace listing, or modify an existing one.
 java.lang.Long marketplace_createListing(java.lang.Long listingId, boolean showOnProfile, java.lang.String attributes, java.lang.Long userId)
          Deprecated. Create a new marketplace listing, or modify an existing one.
 java.lang.Long marketplace_editListing(java.lang.Long listingId, java.lang.Boolean showOnProfile, MarketListing attrs)
          Deprecated. Modify a marketplace listing
 java.lang.Long marketplace_editListing(java.lang.Long listingId, java.lang.Boolean showOnProfile, MarketplaceListing attrs)
          Deprecated. provided for legacy support only. Please use the version that takes a MarketListing instead.
 java.util.List<java.lang.String> marketplace_getCategories()
          Deprecated. Return a list of all valid Marketplace categories.
 org.w3c.dom.Document marketplace_getCategoriesObject()
          Deprecated. Return a list of all valid Marketplace categories.
 org.w3c.dom.Document marketplace_getListings(java.util.Collection<java.lang.Long> listingIds, java.util.Collection<java.lang.Long> userIds)
          Deprecated. provided for legacy support only. Use the version that returns a List instead.
 java.util.List<Listing> marketplace_getListings(java.util.List<java.lang.Long> listingIds, java.util.List<java.lang.Long> uids)
          Deprecated. Retrieve listings from the marketplace.
 java.util.List<java.lang.String> marketplace_getSubCategories()
          Deprecated. Return a list of all valid Marketplace subcategories.
 org.w3c.dom.Document marketplace_getSubCategories(java.lang.CharSequence category)
          Deprecated. Get the subcategories available for a category.
 boolean marketplace_removeListing(java.lang.Long listingId)
          Deprecated. Remove a marketplace listing.
 boolean marketplace_removeListing(java.lang.Long listingId, java.lang.CharSequence status)
          Deprecated. provided for legacy support only. Use marketplace_removeListing(Long, MarketListingStatus) instead.
 boolean marketplace_removeListing(java.lang.Long listingId, java.lang.Long userId)
          Deprecated. Remove a marketplace listing.
 boolean marketplace_removeListing(java.lang.Long listingId, MarketListingStatus status)
          Deprecated. Remove a listing from the marketplace by id.
 boolean marketplace_removeListing(java.lang.Long listingId, MarketListingStatus status, java.lang.Long userId)
          Deprecated. Remove a listing from the marketplace by id.
 org.w3c.dom.Document marketplace_search(java.lang.CharSequence category, java.lang.CharSequence subCategory, java.lang.CharSequence query)
          Deprecated. provided for legacy support only. Use the version that returns a List instead.
 java.util.List<Listing> marketplace_search(MarketListingCategory category, MarketListingSubcategory subcategory, java.lang.String searchTerm)
          Deprecated. Search the marketplace listings by category, subcategory, and keyword.
 org.w3c.dom.Document notifications_get()
          Deprecated. Retrieves the outstanding notifications for the session user.
 void notifications_send(java.lang.CharSequence notification)
          Deprecated. Send a notification message to the logged-in user.
 void notifications_send(java.util.Collection<java.lang.Long> recipientIds, java.lang.CharSequence notification)
          Deprecated. Send a notification message to the specified users.
 java.net.URL notifications_send(java.util.Collection<java.lang.Long> recipientIds, java.lang.CharSequence notification, java.lang.CharSequence email)
          Deprecated.  
 void notifications_send(java.util.Collection<java.lang.Long> recipientIds, java.lang.String notification, boolean isAppToUser)
          Deprecated. Sends a notification.
 java.lang.String notifications_sendEmail(java.util.Collection<java.lang.Long> recipientIds, java.lang.CharSequence subject, java.lang.CharSequence fbml)
          Deprecated. provided for legacy support only, please use one of the alternate notifications_sendEmail calls.
 org.w3c.dom.Document notifications_sendEmail(java.util.Collection<java.lang.Long> recipients, java.lang.CharSequence subject, java.lang.CharSequence email, java.lang.CharSequence fbml)
          Deprecated. Send an e-mail to a set of app-users.
 java.lang.String notifications_sendEmailPlain(java.util.Collection<java.lang.Long> recipientIds, java.lang.CharSequence subject, java.lang.CharSequence text)
          Deprecated. provided for legacy support only, please use one of the alternate notifications_sendEmail calls.
 java.lang.String notifications_sendEmailStr(java.util.Collection<java.lang.Long> recipientIds, java.lang.CharSequence subject, java.lang.CharSequence fbml, java.lang.CharSequence text)
          Deprecated. provided for legacy support only, please use one of the alternate notifications_sendEmail calls.
 org.w3c.dom.Document notifications_sendEmailToCurrentUser(java.lang.String subject, java.lang.String email, java.lang.String fbml)
          Deprecated. Send an e-mail to the currently logged-in user.
 org.w3c.dom.Document notifications_sendFbmlEmail(java.util.Collection<java.lang.Long> recipients, java.lang.String subject, java.lang.String fbml)
          Deprecated. Send an e-mail to a set of app-users.
 org.w3c.dom.Document notifications_sendFbmlEmailToCurrentUser(java.lang.String subject, java.lang.String fbml)
          Deprecated. Send an e-mail to the currently logged-in user.
 java.net.URL notifications_sendRequest(java.util.Collection<java.lang.Long> recipientIds, java.lang.CharSequence type, java.lang.CharSequence content, java.net.URL image, boolean isInvite)
          Deprecated. this method has been removed from the Facebook API server
 org.w3c.dom.Document notifications_sendTextEmail(java.util.Collection<java.lang.Long> recipients, java.lang.String subject, java.lang.String email)
          Deprecated. Send an e-mail to a set of app-users.
 org.w3c.dom.Document notifications_sendTextEmailToCurrentUser(java.lang.String subject, java.lang.String email)
          Deprecated. Send an e-mail to the currently logged-in user.
 org.w3c.dom.Document pages_getInfo(java.util.Collection<java.lang.Long> pageIds, java.util.EnumSet<PageProfileField> fields)
          Deprecated. Retrieves the requested profile fields for the Facebook Pages with the given pageIds.
 org.w3c.dom.Document pages_getInfo(java.util.Collection<java.lang.Long> pageIds, java.util.Set<java.lang.CharSequence> fields)
          Deprecated. Retrieves the requested profile fields for the Facebook Pages with the given pageIds.
 org.w3c.dom.Document pages_getInfo(java.lang.Long userId, java.util.EnumSet<PageProfileField> fields)
          Deprecated. Retrieves the requested profile fields for the Facebook Pages of the user with the given userId.
 org.w3c.dom.Document pages_getInfo(java.lang.Long userId, java.util.Set<java.lang.CharSequence> fields)
          Deprecated. Retrieves the requested profile fields for the Facebook Pages of the user with the given userId.
 boolean pages_isAdmin(java.lang.Long pageId)
          Deprecated. Checks whether the logged-in user for this session is an admin of the page with the given pageId.
 boolean pages_isAppAdded(java.lang.Long pageId)
          Deprecated. Checks whether a page has added the application
 boolean pages_isFan(java.lang.Long pageId)
          Deprecated. Checks whether the logged-in user is a fan of the page with the given pageId.
 boolean pages_isFan(java.lang.Long pageId, java.lang.Long userId)
          Deprecated. Checks whether a user is a fan of the page with the given pageId.
 org.w3c.dom.Document permissions_checkAvailableApiAccess(java.lang.String apiKey)
          Deprecated. Check to see what permissions have been granted to current app by the specified external application.
 org.w3c.dom.Document permissions_checkGrantedApiAccess(java.lang.String apiKey)
          Deprecated. Check to see what permissions have been granted to specified external application by the current application.
 boolean permissions_grantApiAccess(java.lang.String apiKey, java.util.Set<FacebookMethod> methods)
          Deprecated. Grant permission to an external app to make API calls on behalf of the current application.
 boolean permissions_grantFullApiAccess(java.lang.String apiKey)
          Deprecated. Grant permission to an external app to make API calls on behalf of the current application.
 boolean permissions_revokeApiAccess(java.lang.String apiKey)
          Deprecated. Revokes the specified application's permission to call API methods on behalf of the current app.
 boolean photos_addTag(java.lang.Long photoId, java.lang.CharSequence tagText, java.lang.Double xPct, java.lang.Double yPct)
          Deprecated. Adds a tag to a photo.
 boolean photos_addTag(java.lang.Long photoId, java.lang.CharSequence tagText, java.lang.Double pct, java.lang.Double pct2, java.lang.Long userId)
          Deprecated. Adds a tag to a photo.
 boolean photos_addTag(java.lang.Long photoId, java.lang.Long taggedUserId, java.lang.Double xPct, java.lang.Double yPct)
          Deprecated. Adds a tag to a photo.
 boolean photos_addTag(java.lang.Long photoId, java.lang.Long taggedUserId, java.lang.Double pct, java.lang.Double pct2, java.lang.Long userId)
          Deprecated. Adds a tag to a photo.
 org.w3c.dom.Document photos_addTags(java.lang.Long photoId, java.util.Collection<PhotoTag> tags)
          Deprecated. Adds several tags to a photo.
 org.w3c.dom.Document photos_addTags(java.lang.Long photoId, java.util.Collection<PhotoTag> tags, java.lang.Long userId)
          Deprecated. Adds several tags to a photo.
 org.w3c.dom.Document photos_createAlbum(java.lang.String albumName)
          Deprecated. Creates an album.
 org.w3c.dom.Document photos_createAlbum(java.lang.String albumName, java.lang.Long userId)
          Deprecated. Creates an album.
 org.w3c.dom.Document photos_createAlbum(java.lang.String name, java.lang.String description, java.lang.String location)
          Deprecated. Creates an album.
 org.w3c.dom.Document photos_createAlbum(java.lang.String name, java.lang.String description, java.lang.String location, java.lang.Long userId)
          Deprecated. Creates an album.
 org.w3c.dom.Document photos_get(java.util.Collection<java.lang.Long> photoIds)
          Deprecated. Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 org.w3c.dom.Document photos_get(java.lang.Long subjId)
          Deprecated. Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 org.w3c.dom.Document photos_get(java.lang.Long albumId, boolean album)
          Deprecated.  
 org.w3c.dom.Document photos_get(java.lang.Long subjId, java.util.Collection<java.lang.Long> photoIds)
          Deprecated. Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 org.w3c.dom.Document photos_get(java.lang.Long albumId, java.util.Collection<java.lang.Long> photoIds, boolean album)
          Deprecated.  
 org.w3c.dom.Document photos_get(java.lang.Long subjId, java.lang.Long albumId)
          Deprecated. Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 org.w3c.dom.Document photos_get(java.lang.Long subjId, java.lang.Long albumId, java.util.Collection<java.lang.Long> photoIds)
          Deprecated. Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 org.w3c.dom.Document photos_getAlbums(java.util.Collection<java.lang.Long> albumIds)
          Deprecated. Retrieves album metadata for a list of album IDs.
 org.w3c.dom.Document photos_getAlbums(java.lang.Long userId)
          Deprecated. Retrieves album metadata for albums owned by a user.
 org.w3c.dom.Document photos_getAlbums(java.lang.Long userId, java.util.Collection<java.lang.Long> albumIds)
          Deprecated. Retrieves album metadata.
 org.w3c.dom.Document photos_getByAlbum(java.lang.Long albumId)
          Deprecated. Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 org.w3c.dom.Document photos_getByAlbum(java.lang.Long albumId, java.util.Collection<java.lang.Long> photoIds)
          Deprecated. Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 org.w3c.dom.Document photos_getTags(java.util.Collection<java.lang.Long> photoIds)
          Deprecated. Retrieves the tags for the given set of photos.
 org.w3c.dom.Document photos_upload(java.io.File photo)
          Deprecated. Uploads a photo to Facebook.
 org.w3c.dom.Document photos_upload(java.io.File photo, java.lang.Long albumId)
          Deprecated. Uploads a photo to Facebook.
 org.w3c.dom.Document photos_upload(java.io.File photo, java.lang.String caption)
          Deprecated. Uploads a photo to Facebook.
 org.w3c.dom.Document photos_upload(java.io.File photo, java.lang.String caption, java.lang.Long albumId)
          Deprecated. Uploads a photo to Facebook.
 org.w3c.dom.Document photos_upload(java.lang.Long userId, java.io.File photo)
          Deprecated. Uploads a photo to Facebook.
 org.w3c.dom.Document photos_upload(java.lang.Long userId, java.io.File photo, java.lang.Long albumId)
          Deprecated. Uploads a photo to Facebook.
 org.w3c.dom.Document photos_upload(java.lang.Long userId, java.io.File photo, java.lang.String caption)
          Deprecated. Uploads a photo to Facebook.
 org.w3c.dom.Document photos_upload(java.lang.Long userId, java.io.File photo, java.lang.String caption, java.lang.Long albumId)
          Deprecated. Uploads a photo to Facebook.
protected  java.io.InputStream postFileRequest(java.lang.String methodName, java.util.Map<java.lang.String,java.lang.String> params)
          Deprecated. Helper function for posting a request that includes raw file data, eg photos_upload(File).
 java.io.InputStream postFileRequest(java.lang.String methodName, java.util.Map<java.lang.String,java.lang.String> params, boolean doEncode)
          Deprecated.  
 void printDom(org.w3c.dom.Node n, java.lang.String prefix)
          Deprecated. Prints out the DOM tree.
 org.w3c.dom.Document profile_getFBML()
          Deprecated. Gets the FBML for the current user's profile box.
 org.w3c.dom.Document profile_getFBML(int type)
          Deprecated. Gets the FBML for the current user's profile boxes.
 org.w3c.dom.Document profile_getFBML(int type, java.lang.Long userId)
          Deprecated. Gets the FBML for the user's profile boxes.
 org.w3c.dom.Document profile_getFBML(java.lang.Long userId)
          Deprecated. Gets the FBML for the user's profile box.
 org.w3c.dom.Document profile_getInfo(java.lang.Long userId)
          Deprecated. Get the specified user's application-info section.
 org.w3c.dom.Document profile_getInfoOptions(java.lang.String field)
          Deprecated. Get the options associated with the specified field for an application info section.
 boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup, java.lang.CharSequence profileActionFbmlMarkup)
          Deprecated. Sets the FBML for the profile box and profile actions for the logged-in user.
 boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup, java.lang.CharSequence profileActionFbmlMarkup, java.lang.CharSequence mobileFbmlMarkup)
          Deprecated. Sets the FBML for the profile box, profile actions, and mobile devices for the current user.
 boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup, java.lang.CharSequence profileActionFbmlMarkup, java.lang.CharSequence mobileFbmlMarkup, java.lang.Long profileId)
          Deprecated. Sets the FBML for the profile box, profile actions, and mobile devices for the user or page profile with ID profileId.
 boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup, java.lang.CharSequence profileActionFbmlMarkup, java.lang.Long profileId)
          Deprecated. Sets the FBML for the profile box and profile actions for the user or page profile with ID profileId.
 boolean profile_setFBML(java.lang.Long userId, java.lang.String profileFbml, java.lang.String actionFbml, java.lang.String mobileFbml)
          Deprecated.  
 boolean profile_setFBML(java.lang.Long userId, java.lang.String profileFbml, java.lang.String actionFbml, java.lang.String mobileFbml, java.lang.String profileMain)
          Deprecated. Sets the FBML for a user's profile, including the content for both the profile box and the profile actions.
 void profile_setInfo(java.lang.Long userId, java.lang.String title, boolean textOnly, java.util.List<ProfileInfoField> fields)
          Deprecated. Configures an application info section that the specified user can install on the Info tab of her profile.
 void profile_setInfoOptions(ProfileInfoField field)
          Deprecated. Specifies the objects for a field for an application info section.
 boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup)
          Deprecated. Sets the FBML for the logged-in user's profile on mobile devices.
 boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup, java.lang.Long profileId)
          Deprecated. Sets the FBML for the user or page profile with ID profileId on mobile devices.
 boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup)
          Deprecated. Sets the FBML for profile actions for the logged-in user.
 boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup, java.lang.Long profileId)
          Deprecated. Sets the FBML for profile actions for the user or page profile with ID profileId.
 boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup)
          Deprecated. Sets the FBML for a profile box on the logged-in user's profile.
 boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup, java.lang.Long profileId)
          Deprecated. Sets the FBML for a profile box on the user or page profile with ID profileId.
 void setCacheAppAdded(java.lang.Boolean value)
          Deprecated.  
 void setCacheFriendsList(java.util.List<java.lang.Long> ids)
          Deprecated. Set/override the list of friends stored in the client.
 void setCacheSession(java.lang.String cacheSessionKey, java.lang.Long cacheUserId, java.lang.Long cacheSessionExpires)
          Deprecated.  
 void setCacheSessionExpires(java.lang.Long cacheSessionExpires)
          Deprecated.  
 void setCacheSessionKey(java.lang.String cacheSessionKey)
          Deprecated.  
 void setCacheSessionSecret(java.lang.String cacheSessionSecret)
          Deprecated.  
 void setCacheUserId(java.lang.Long cacheUserId)
          Deprecated.  
 void setDefaultServerUrl(java.net.URL newUrl)
          Deprecated.  
 void setIsDesktop(boolean isDesktop)
          Deprecated. Enable/disable desktop mode.
 void setJaxbContext(javax.xml.bind.JAXBContext context)
          Deprecated. Set the JAXB context that the client will use.
 void setNamespaceAware(boolean v)
          Deprecated.  
 void setServerUrl(java.lang.String newUrl)
          Deprecated. Override the default Facebook API server used for making requests.
 boolean sms_canSend()
          Deprecated. Check to see if the application is permitted to send SMS messages to the current application user.
 boolean sms_canSend(java.lang.Long userId)
          Deprecated. Check to see if the application is permitted to send SMS messages to the specified user.
 java.lang.Integer sms_send(java.lang.Long userId, java.lang.String message, java.lang.Integer smsSessionId, boolean makeNewSession)
          Deprecated. Send an SMS message to the specified user.
 java.lang.Integer sms_send(java.lang.String message, java.lang.Integer smsSessionId, boolean makeNewSession)
          Deprecated. Send an SMS message to the current application user.
 void sms_sendMessage(java.lang.Long userId, java.lang.CharSequence message)
          Deprecated. Sends a message via SMS to the user identified by userId.
 int sms_sendMessageWithSession(java.lang.Long userId, java.lang.CharSequence message)
          Deprecated. Sends a message via SMS to the user identified by userId, with the expectation that the user will reply.
 void sms_sendResponse(java.lang.Integer userId, java.lang.CharSequence response, java.lang.Integer mobileSessionId)
          Deprecated. Sends a message via SMS to the user identified by userId in response to a user query associated with mobileSessionId.
protected  boolean templatizedFeedHandler(java.lang.Long actorId, FacebookMethod method, java.lang.String titleTemplate, java.lang.String titleData, java.lang.String bodyTemplate, java.lang.String bodyData, java.lang.String bodyGeneral, java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> pictures, java.lang.String targetIds, java.lang.Long pageId)
          Deprecated.  
static org.w3c.dom.Document toFriendsGetResponse(java.util.List<java.lang.Long> ids)
          Deprecated.  
static java.util.List<java.lang.Long> toFriendsList(org.w3c.dom.Document doc)
          Deprecated.  
static java.lang.String toString(java.lang.CharSequence cs)
          Deprecated.  
 boolean users_clearStatus()
          Deprecated. Clears the logged-in user's Facebook status.
 org.w3c.dom.Document users_getInfo(java.util.Collection<java.lang.Long> userIds, java.util.Collection<ProfileField> fields)
          Deprecated. Retrieves the requested info fields for the requested set of users.
 org.w3c.dom.Document users_getInfo(java.util.Collection<java.lang.Long> userIds, java.util.Set<java.lang.CharSequence> fields)
          Deprecated. Retrieves the requested info fields for the requested set of users.
 long users_getLoggedInUser()
          Deprecated. Retrieves the user ID of the user logged in to this API session
 org.w3c.dom.Document users_getStandardInfo(java.util.Collection<java.lang.Long> userIds, java.util.Collection<ProfileField> fields)
          Deprecated. Returns an array of user-specific information for each user identifier passed, limited by the view of the current user.
 org.w3c.dom.Document users_getStandardInfo(java.util.Collection<java.lang.Long> userIds, java.util.Set<java.lang.CharSequence> fields)
          Deprecated. Returns an array of user-specific information for each user identifier passed, limited by the view of the current user.
 boolean users_hasAppPermission(Permission perm)
          Deprecated.  
 boolean users_hasAppPermission(Permission perm, java.lang.Long userId)
          Deprecated. Checks whether the user has opted in to an extended application permission.
 boolean users_isAppAdded()
          Deprecated. 
 boolean users_isAppAdded(java.lang.Long userId)
          Deprecated. 
 boolean users_isAppUser()
          Deprecated.  
 boolean users_isAppUser(java.lang.Long userId)
          Deprecated. Returns whether the user (either the session user or user specified by uid) has authorized the calling application.
 boolean users_setStatus(java.lang.String status)
          Deprecated. Sets the logged-in user's Facebook status.
 boolean users_setStatus(java.lang.String newStatus, boolean clear)
          Deprecated. Set the user's profile status message.
 boolean users_setStatus(java.lang.String newStatus, boolean clear, boolean statusIncludesVerb)
          Deprecated. Set the user's profile status message.
 boolean users_setStatus(java.lang.String newStatus, boolean clear, boolean statusIncludesVerb, java.lang.Long userId)
          Deprecated. Set the user's profile status message.
 boolean users_setStatus(java.lang.String newStatus, boolean clear, java.lang.Long userId)
          Deprecated. Set the user's profile status message.
 boolean users_setStatus(java.lang.String status, java.lang.Long userId)
          Deprecated. Sets the spedified user's Facebook status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Deprecated. 

TARGET_API_VERSION

public static final java.lang.String TARGET_API_VERSION
Deprecated. 
API version to request when making calls to the server

See Also:
Constant Field Values

ERROR_TAG

public static final java.lang.String ERROR_TAG
Deprecated. 
Flag indicating an erroneous response

See Also:
Constant Field Values

FB_SERVER

public static final java.lang.String FB_SERVER
Deprecated. 
Facebook API server, part 1

See Also:
Constant Field Values

SERVER_ADDR

public static final java.lang.String SERVER_ADDR
Deprecated. 
Facebook API server, part 2a

See Also:
Constant Field Values

HTTPS_SERVER_ADDR

public static final java.lang.String HTTPS_SERVER_ADDR
Deprecated. 
Facebook API server, part 2b

See Also:
Constant Field Values

SERVER_URL

public static java.net.URL SERVER_URL
Deprecated. 
Facebook API server, part 3a


HTTPS_SERVER_URL

public static java.net.URL HTTPS_SERVER_URL
Deprecated. 
Facebook API server, part 3b


JAXB_CONTEXT

protected static javax.xml.bind.JAXBContext JAXB_CONTEXT
Deprecated. 

_secret

protected final java.lang.String _secret
Deprecated. 

_apiKey

protected final java.lang.String _apiKey
Deprecated. 

_serverUrl

protected java.net.URL _serverUrl
Deprecated. 

namespaceAware

protected boolean namespaceAware
Deprecated. 

_timeout

protected int _timeout
Deprecated. 

_readTimeout

protected int _readTimeout
Deprecated. 

_isDesktop

protected boolean _isDesktop
Deprecated. 

cacheSessionKey

protected java.lang.String cacheSessionKey
Deprecated. 

cacheUserId

protected java.lang.Long cacheUserId
Deprecated. 

cacheSessionExpires

protected java.lang.Long cacheSessionExpires
Deprecated. 

cacheSessionSecret

protected java.lang.String cacheSessionSecret
Deprecated. 

rawResponse

protected java.lang.String rawResponse
Deprecated. 

batchMode

protected boolean batchMode
Deprecated. 

queries

protected java.util.List<com.google.code.facebookapi.BatchQuery> queries
Deprecated. 

permissionsApiKey

protected java.lang.String permissionsApiKey
Deprecated. 

cacheFriendsList

protected org.w3c.dom.Document cacheFriendsList
Deprecated. 

cacheAppAdded

protected java.lang.Boolean cacheAppAdded
Deprecated. 

NUM_AUTOAPPENDED_PARAMS

public static final int NUM_AUTOAPPENDED_PARAMS
Deprecated. 
number of params that the client automatically appends to every API call

See Also:
Constant Field Values

_uploadFile

protected java.io.File _uploadFile
Deprecated. 

CRLF

protected static final java.lang.String CRLF
Deprecated. 
See Also:
Constant Field Values

PREF

protected static final java.lang.String PREF
Deprecated. 
See Also:
Constant Field Values

UPLOAD_BUFFER_SIZE

protected static final int UPLOAD_BUFFER_SIZE
Deprecated. 
See Also:
Constant Field Values

MARKETPLACE_STATUS_DEFAULT

public static final java.lang.String MARKETPLACE_STATUS_DEFAULT
Deprecated. 
See Also:
Constant Field Values

MARKETPLACE_STATUS_NOT_SUCCESS

public static final java.lang.String MARKETPLACE_STATUS_NOT_SUCCESS
Deprecated. 
See Also:
Constant Field Values

MARKETPLACE_STATUS_SUCCESS

public static final java.lang.String MARKETPLACE_STATUS_SUCCESS
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

FacebookRestClient

public FacebookRestClient(java.lang.String apiKey,
                          java.lang.String secret)
Deprecated. 
Constructor

Parameters:
apiKey - the developer's API key
secret - the developer's secret key

FacebookRestClient

public FacebookRestClient(java.lang.String apiKey,
                          java.lang.String secret,
                          int connectionTimeout)
Deprecated. 
Constructor

Parameters:
apiKey - the developer's API key
secret - the developer's secret key
connectionTimeout - the connection timeout to apply when making API requests to Facebook, in milliseconds

FacebookRestClient

public FacebookRestClient(java.lang.String apiKey,
                          java.lang.String secret,
                          java.lang.String sessionKey)
Deprecated. 
Constructor

Parameters:
apiKey - the developer's API key
secret - the developer's secret key
sessionKey - the session-id to use

FacebookRestClient

public FacebookRestClient(java.lang.String apiKey,
                          java.lang.String secret,
                          java.lang.String sessionKey,
                          int connectionTimeout)
Deprecated. 
Constructor

Parameters:
apiKey - the developer's API key
secret - the developer's secret key
sessionKey - the session-id to use
connectionTimeout - the connection timeout to apply when making API requests to Facebook, in milliseconds

FacebookRestClient

public FacebookRestClient(java.lang.String serverAddr,
                          java.lang.String apiKey,
                          java.lang.String secret,
                          java.lang.String sessionKey)
                   throws java.net.MalformedURLException
Deprecated. 
Constructor

Parameters:
serverAddr - the URL of the Facebook API server to use, allows overriding of the default API server.
apiKey - the developer's API key
secret - the developer's secret key
sessionKey - the session-id to use
Throws:
java.net.MalformedURLException - if the specified serverAddr is invalid

FacebookRestClient

public FacebookRestClient(java.lang.String serverAddr,
                          java.lang.String apiKey,
                          java.lang.String secret,
                          java.lang.String sessionKey,
                          int connectionTimeout)
                   throws java.net.MalformedURLException
Deprecated. 
Constructor

Parameters:
serverAddr - the URL of the Facebook API server to use, allows overriding of the default API server.
apiKey - the developer's API key
secret - the developer's secret key
sessionKey - the session-id to use
connectionTimeout - the connection timeout to apply when making API requests to Facebook, in milliseconds
Throws:
java.net.MalformedURLException - if the specified serverAddr is invalid

FacebookRestClient

public FacebookRestClient(java.net.URL serverUrl,
                          java.lang.String apiKey,
                          java.lang.String secret,
                          java.lang.String sessionKey)
Deprecated. 
Constructor

Parameters:
serverUrl - the URL of the Facebook API server to use, allows overriding of the default API server.
apiKey - the developer's API key
secret - the developer's secret key
sessionKey - the session-id to use

FacebookRestClient

public FacebookRestClient(java.net.URL serverUrl,
                          java.lang.String apiKey,
                          java.lang.String secret,
                          java.lang.String sessionKey,
                          int connectionTimeout)
Deprecated. 
Constructor

Parameters:
serverUrl - the URL of the Facebook API server to use, allows overriding of the default API server.
apiKey - the developer's API key
secret - the developer's secret key
sessionKey - the session-id to use
connectionTimeout - the connection timeout to apply when making API requests to Facebook, in milliseconds

FacebookRestClient

public FacebookRestClient(java.net.URL serverUrl,
                          java.lang.String apiKey,
                          java.lang.String secret,
                          java.lang.String sessionKey,
                          int connectionTimeout,
                          int readTimeout)
Deprecated. 
Constructor

Parameters:
serverUrl - the URL of the Facebook API server to use, allows overriding of the default API server.
apiKey - the developer's API key
secret - the developer's secret key
sessionKey - the session-id to use
connectionTimeout - the connection timeout to apply when making API requests to Facebook, in milliseconds
readTimeout - the read timeout to apply when making API requests to Facebook, in milliseconds
Method Detail

isNamespaceAware

public boolean isNamespaceAware()
Deprecated. 

setNamespaceAware

public void setNamespaceAware(boolean v)
Deprecated. 

beginPermissionsMode

public void beginPermissionsMode(java.lang.String apiKey)
Deprecated. 
Description copied from interface: IFacebookRestClient
Begins permissions mode, and allows the current application to begin making requests on behalf of the application associated with the specified API key. This method must be invoked prior to making an API request on behalf of another application. When you are done, be sure to call endPermissionsMode().

Specified by:
beginPermissionsMode in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
apiKey - the API key of the application to being making requests for.

endPermissionsMode

public void endPermissionsMode()
Deprecated. 
Description copied from interface: IFacebookRestClient
Terminates permissions mode. After calling this, the current application will be unable to make requests on behalf of another app, until beginPermissionsMode is called again.

Specified by:
endPermissionsMode in interface IFacebookRestClient<org.w3c.dom.Document>

getJaxbContext

public javax.xml.bind.JAXBContext getJaxbContext()
Deprecated. 
Description copied from interface: IFacebookRestClient
Get the JAXB context that is being used by the client.

Specified by:
getJaxbContext in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
the JAXB context object.

setJaxbContext

public void setJaxbContext(javax.xml.bind.JAXBContext context)
Deprecated. 
Description copied from interface: IFacebookRestClient
Set the JAXB context that the client will use.

Specified by:
setJaxbContext in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
context - the context to use.

_getSessionKey

@Deprecated
public java.lang.String _getSessionKey()
Deprecated. 

Return the object's session-key property. This method does not call the Facebook API server.

Returns:
the session-key stored in the API client.

_setSessionKey

@Deprecated
public void _setSessionKey(java.lang.String key)
Deprecated. 

Set/override the session-key used by the client.

Parameters:
key - the new key to use.

_getExpires

@Deprecated
public java.lang.Long _getExpires()
Deprecated. 

Return the object's 'expires' property. This method does not call the Facebook API server.

Returns:
the expiration value stored in the API client.

_setExpires

@Deprecated
public void _setExpires(java.lang.Long _expires)
Deprecated. 

Set/override the session expiration timestamp used by the client.

Parameters:
_expires - the new timestamp to use.

_getUserId

@Deprecated
public java.lang.Long _getUserId()
Deprecated. 

Return the object's user-id property. This method does not call the Facebook API server.

Returns:
the user-id stored in the API client.

_setUserId

@Deprecated
public void _setUserId(java.lang.Long id)
Deprecated. 

Set/override the user-id stored in the client.

Parameters:
id - the new user-id to use.

getCacheSessionSecret

public java.lang.String getCacheSessionSecret()
Deprecated. 
Specified by:
getCacheSessionSecret in interface IFacebookRestClient<org.w3c.dom.Document>

setCacheSessionSecret

public void setCacheSessionSecret(java.lang.String cacheSessionSecret)
Deprecated. 

setCacheSession

public void setCacheSession(java.lang.String cacheSessionKey,
                            java.lang.Long cacheUserId,
                            java.lang.Long cacheSessionExpires)
Deprecated. 
Specified by:
setCacheSession in interface IFacebookRestClient<org.w3c.dom.Document>

getCacheSessionExpires

public java.lang.Long getCacheSessionExpires()
Deprecated. 
Specified by:
getCacheSessionExpires in interface IFacebookRestClient<org.w3c.dom.Document>

setCacheSessionExpires

public void setCacheSessionExpires(java.lang.Long cacheSessionExpires)
Deprecated. 

getCacheSessionKey

public java.lang.String getCacheSessionKey()
Deprecated. 
Specified by:
getCacheSessionKey in interface IFacebookRestClient<org.w3c.dom.Document>

setCacheSessionKey

public void setCacheSessionKey(java.lang.String cacheSessionKey)
Deprecated. 

getCacheUserId

public java.lang.Long getCacheUserId()
Deprecated. 
Specified by:
getCacheUserId in interface IFacebookRestClient<org.w3c.dom.Document>

setCacheUserId

public void setCacheUserId(java.lang.Long cacheUserId)
Deprecated. 

getCacheFriendsList

public org.w3c.dom.Document getCacheFriendsList()
Deprecated. 
Return the object's 'friendsList' property. This method does not call the Facebook API server.

Specified by:
getCacheFriendsList in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
the friends-list stored in the API client.

setCacheFriendsList

public void setCacheFriendsList(java.util.List<java.lang.Long> ids)
Deprecated. 
Set/override the list of friends stored in the client.

Specified by:
setCacheFriendsList in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
friendsList - the new list to use.

toFriendsGetResponse

public static org.w3c.dom.Document toFriendsGetResponse(java.util.List<java.lang.Long> ids)
Deprecated. 

getResponseFormat

public java.lang.String getResponseFormat()
Deprecated. 
The response format in which results to FacebookMethod calls are returned

Returns:
the format: either XML, JSON, or null (API default)

isDesktop

public boolean isDesktop()
Deprecated. 
Check to see if the client is running in desktop mode.

Specified by:
isDesktop in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
true if the client is running in desktop mode false otherwise

setIsDesktop

public void setIsDesktop(boolean isDesktop)
Deprecated. 
Enable/disable desktop mode.

Specified by:
setIsDesktop in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
isDesktop - true to enable desktop application mode false to disable desktop application mode

printDom

public void printDom(org.w3c.dom.Node n,
                     java.lang.String prefix)
Deprecated. 
Prints out the DOM tree.

Parameters:
n - the parent node to start printing from
prefix - string to append to output, should not be null

delimit

protected static java.lang.CharSequence delimit(java.util.Collection<java.util.Map.Entry<java.lang.String,java.lang.String>> entries,
                                                java.lang.String delimiter,
                                                java.lang.String equals,
                                                boolean doEncode)
Deprecated. 

callMethod

protected org.w3c.dom.Document callMethod(IFacebookMethod method,
                                          Pair<java.lang.String,java.lang.CharSequence>... paramPairs)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Call the specified method, with the given parameters, and return a DOM tree with the results.

Parameters:
method - the fieldName of the method
paramPairs - a list of arguments to the method
Throws:
java.lang.Exception - with a description of any errors given to us by the server.
FacebookException
java.io.IOException

beginBatch

public void beginBatch()
Deprecated. 
Starts a batch of queries. Any API calls made after invoking 'beginBatch' will be deferred until the next time you call 'executeBatch', at which time they will be processed as a batch query. All API calls made in the interim will return null as their result.

Specified by:
beginBatch in interface IFacebookRestClient<org.w3c.dom.Document>

executeBatch

public java.util.List<? extends java.lang.Object> executeBatch(boolean serial)
                                                        throws FacebookException,
                                                               java.io.IOException
Deprecated. 
Executes a batch of queries. You define the queries to execute by calling 'beginBatch' and then invoking the desired API methods that you want to execute as part of your batch as normal. Invoking this method will then execute the API calls you made in the interim as a single batch query.

Specified by:
executeBatch in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
serial - set to true, and your batch queries will always execute serially, in the same order in which your specified them. If set to false, the Facebook API server may execute your queries in parallel and/or out of order in order to improve performance.
Returns:
a list containing the results of the batch execution. The list will be ordered such that the first element corresponds to the result of the first query in the batch, and the second element corresponds to the result of the second query, and so on. The types of the objects in the list will match the type normally returned by the API call being invoked (so calling users_getLoggedInUser as part of a batch will place a Long in the list, and calling friends_get will place a Document in the list, etc.). The list may be empty, it will never be null.
Throws:
FacebookException
java.io.IOException

batch_run

public org.w3c.dom.Document batch_run(java.lang.String methods,
                                      boolean serial)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Executes a batch of queries. It is your responsibility to encode the method feed correctly. It is not recommended that you call this method directly. Instead use 'beginBatch' and 'executeBatch', which will take care of the hard parts for you.

Specified by:
batch_run in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
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.
Returns:
a result containing the response to each individual query in the batch.
Throws:
FacebookException
java.io.IOException

callMethod

protected org.w3c.dom.Document callMethod(IFacebookMethod method,
                                          java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> paramPairs)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Call the specified method, with the given parameters, and return a DOM tree with the results.

Parameters:
method - the fieldName of the method
paramPairs - a list of arguments to the method
Throws:
java.lang.Exception - with a description of any errors given to us by the server.
FacebookException
java.io.IOException

getRawResponse

public java.lang.String getRawResponse()
Deprecated. 
Returns a string representation for the last API response recieved from Facebook, exactly as sent by the API server. Note that calling this method consumes the data held in the internal buffer, and thus it may only be called once per API call.

Specified by:
getRawResponse in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a String representation of the last API response sent by Facebook

profile_getFBML

public org.w3c.dom.Document profile_getFBML()
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Gets the FBML for the current user's profile box.

Specified by:
profile_getFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a T containing FBML markup
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.profile_getFBML(int, Long)

profile_getFBML

public org.w3c.dom.Document profile_getFBML(java.lang.Long userId)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Gets the FBML for the user's profile box.

Specified by:
profile_getFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
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.
Returns:
a T containing FBML markup
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.profile_getFBML(int, Long)

profile_getFBML

public org.w3c.dom.Document profile_getFBML(int type)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Gets the FBML for the current user's profile boxes.

Specified by:
profile_getFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
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.)
Returns:
a T containing FBML markup
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.profile_getFBML(int, Long)

profile_getFBML

public org.w3c.dom.Document profile_getFBML(int type,
                                            java.lang.Long userId)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Gets the FBML for the user's profile boxes.

Specified by:
profile_getFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
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.
Returns:
a T containing FBML markup
Throws:
FacebookException
java.io.IOException
See Also:
Profile.getFBML

fbml_refreshRefUrl

public boolean fbml_refreshRefUrl(java.lang.String url)
                           throws FacebookException,
                                  java.io.IOException
Deprecated. 
Recaches the referenced url.

Specified by:
fbml_refreshRefUrl in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
url - string representing the URL to refresh
Returns:
boolean indicating whether the refresh succeeded
Throws:
FacebookException
java.io.IOException

fbml_refreshRefUrl

public boolean fbml_refreshRefUrl(java.net.URL url)
                           throws FacebookException,
                                  java.io.IOException
Deprecated. 
Recaches the referenced url.

Specified by:
fbml_refreshRefUrl in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
url - the URL to refresh
Returns:
boolean indicating whether the refresh succeeded
Throws:
FacebookException
java.io.IOException

fbml_refreshImgSrc

public boolean fbml_refreshImgSrc(java.lang.String imageUrl)
                           throws FacebookException,
                                  java.io.IOException
Deprecated. 
Recaches the image with the specified imageUrl.

Specified by:
fbml_refreshImgSrc in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
imageUrl - String representing the image URL to refresh
Returns:
boolean indicating whether the refresh succeeded
Throws:
FacebookException
java.io.IOException

fbml_refreshImgSrc

public boolean fbml_refreshImgSrc(java.net.URL imageUrl)
                           throws FacebookException,
                                  java.io.IOException
Deprecated. 
Recaches the image with the specified imageUrl.

Specified by:
fbml_refreshImgSrc in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
imageUrl - the image URL to refresh
Returns:
boolean indicating whether the refresh succeeded
Throws:
FacebookException
java.io.IOException

feed_publishTemplatizedAction

public boolean feed_publishTemplatizedAction(java.lang.String titleTemplate,
                                             java.lang.String titleData,
                                             java.lang.String bodyTemplate,
                                             java.lang.String bodyData,
                                             java.lang.String bodyGeneral,
                                             java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> pictures,
                                             java.lang.String targetIds)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Publishes a templatized action for the current user. The action will appear in their minifeed, and may appear in their friends' newsfeeds depending upon a number of different factors. When a template match exists between multiple distinct users (like "Bob recommends Bizou" and "Sally recommends Bizou"), the feed entries may be combined in the newfeed (to something like "Bob and sally recommend Bizou"). This happens automatically, and *only* if the template match between the two feed entries is identical.

Feed entries are not aggregated for a single user (so "Bob recommends Bizou" and "Bob recommends Le Charm" *will not* become "Bob recommends Bizou and Le Charm").

If the user's action involves one or more of their friends, list them in the 'targetIds' parameter. For example, if you have "Bob says hi to Sally and Susie", and Sally's UID is 1, and Susie's UID is 2, then pass a 'targetIds' paramters of "1,2". If you pass this parameter, you can use the "{target}" token in your templates. Probably it also makes it more likely that Sally and Susie will see the feed entry in their newsfeed, relative to any other friends Bob might have. It may be a good idea to always send a list of all the user's friends, and avoid using the "{target}" token, to maximize distribution of the story through the newsfeed.

The only strictly required parameter is 'titleTemplate', which must contain the "{actor}" token somewhere inside of it. All other parameters, options, and tokens are optional, and my be set to null if being omitted.

Not that stories will only be aggregated if *all* templates match and *all* template parameters match, so if two entries have the same templateTitle and titleData, but a different bodyTemplate, they will not aggregate. Probably it's better to use bodyGeneral instead of bodyTemplate, for the extra flexibility it provides.


Note that this method is replacing 'feed_publishActionOfUser', which has been deprecated by Facebook. For specific details, visit http://wiki.developers.facebook.com/index.php/Feed.publishTemplatizedAction

Specified by:
feed_publishTemplatizedAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
titleTemplate - the template for the title of the feed entry, this must contain the "(actor}" token. Any other tokens are optional, i.e. "{actor} recommends {place}".
titleData - JSON-formatted values for any tokens used in titleTemplate, with the exception of "{actor}" and "{target}", which Facebook populates automatically, i.e. "{place: "Bizou"}".
bodyTemplate - the template for the body of the feed entry, works the same as 'titleTemplate', but is not required to contain the "{actor}" token.
bodyData - works the same as titleData
bodyGeneral - non-templatized content for the body, may contain markup, may not contain tokens.
pictures - a list of up to 4 images to display, with optional hyperlinks for each one.
targetIds - a comma-seperated list of the UID's of any friend(s) who are involved in this feed action (if there are any), this specifies the value of the "{target}" token. If you use this token in any of your templates, you must specify a value for this parameter.
Returns:
a Document representing the XML response returned from the Facebook API server.
Throws:
FacebookException - if any number of bad things happen
java.io.IOException

feed_publishTemplatizedAction

public boolean feed_publishTemplatizedAction(java.lang.String titleTemplate,
                                             java.lang.String titleData,
                                             java.lang.String bodyTemplate,
                                             java.lang.String bodyData,
                                             java.lang.String bodyGeneral,
                                             java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> pictures,
                                             java.lang.String targetIds,
                                             java.lang.Long pageId)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Throws:
FacebookException
java.io.IOException

feed_PublishTemplatizedAction

public boolean feed_PublishTemplatizedAction(TemplatizedAction action)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Publishes a templatized action for the current user. The action will appear in their minifeed, and may appear in their friends' newsfeeds depending upon a number of different factors. When a template match exists between multiple distinct users (like "Bob recommends Bizou" and "Sally recommends Bizou"), the feed entries may be combined in the newfeed (to something like "Bob and sally recommend Bizou"). This happens automatically, and *only* if the template match between the two feed entries is identical.

Feed entries are not aggregated for a single user (so "Bob recommends Bizou" and "Bob recommends Le Charm" *will not* become "Bob recommends Bizou and Le Charm").

If the user's action involves one or more of their friends, list them in the 'targetIds' parameter. For example, if you have "Bob says hi to Sally and Susie", and Sally's UID is 1, and Susie's UID is 2, then pass a 'targetIds' paramters of "1,2". If you pass this parameter, you can use the "{target}" token in your templates. Probably it also makes it more likely that Sally and Susie will see the feed entry in their newsfeed, relative to any other friends Bob might have. It may be a good idea to always send a list of all the user's friends, and avoid using the "{target}" token, to maximize distribution of the story through the newsfeed.

The only strictly required parameter is 'titleTemplate', which must contain the "{actor}" token somewhere inside of it. All other parameters, options, and tokens are optional, and my be set to null if being omitted.

Not that stories will only be aggregated if *all* templates match and *all* template parameters match, so if two entries have the same templateTitle and titleData, but a different bodyTemplate, they will not aggregate. Probably it's better to use bodyGeneral instead of bodyTemplate, for the extra flexibility it provides.


Note that this method is replacing 'feed_publishActionOfUser', which has been deprecated by Facebook. For specific details, visit http://wiki.developers.facebook.com/index.php/Feed.publishTemplatizedAction

Specified by:
feed_PublishTemplatizedAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
action - a TemplatizedAction instance that represents the feed data to publish
Returns:
a Document representing the XML response returned from the Facebook API server.
Throws:
FacebookException - if any number of bad things happen
java.io.IOException

templatizedFeedHandler

protected boolean templatizedFeedHandler(java.lang.Long actorId,
                                         FacebookMethod method,
                                         java.lang.String titleTemplate,
                                         java.lang.String titleData,
                                         java.lang.String bodyTemplate,
                                         java.lang.String bodyData,
                                         java.lang.String bodyGeneral,
                                         java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> pictures,
                                         java.lang.String targetIds,
                                         java.lang.Long pageId)
                                  throws FacebookException,
                                         java.io.IOException
Deprecated. 
Throws:
FacebookException
java.io.IOException

events_get

public org.w3c.dom.Document events_get(java.lang.Long userId,
                                       java.util.Collection<java.lang.Long> eventIds,
                                       java.lang.Long startTime,
                                       java.lang.Long endTime)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Returns all visible events according to the filters specified. This may be used to find all events of a user, or to query specific eids.

Specified by:
events_get in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
eventIds - filter by these event ID's (optional)
userId - filter by this user only (optional)
startTime - UTC lower bound (optional)
endTime - UTC upper bound (optional)
Returns:
Document of events
Throws:
FacebookException
java.io.IOException

events_getMembers

public org.w3c.dom.Document events_getMembers(java.lang.Number eventId)
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. 
Retrieves the membership list of an event

Specified by:
events_getMembers in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
eventId - event id
Returns:
Document consisting of four membership lists corresponding to RSVP status, with keys 'attending', 'unsure', 'declined', and 'not_replied'
Throws:
FacebookException
java.io.IOException

friends_areFriends

public org.w3c.dom.Document friends_areFriends(long userId1,
                                               long userId2)
                                        throws FacebookException,
                                               java.io.IOException
Deprecated. 
Retrieves the friends of the currently logged in user.

Specified by:
friends_areFriends in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
array of friends
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.areFriends

friends_areFriends

public org.w3c.dom.Document friends_areFriends(java.util.Collection<java.lang.Long> userIds1,
                                               java.util.Collection<java.lang.Long> userIds2)
                                        throws FacebookException,
                                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieves whether pairs of users are friends. Returns whether the first user in userIds1 is friends with the first user in userIds2, the second user in userIds1 is friends with the second user in userIds2, etc.

Specified by:
friends_areFriends in interface IFacebookRestClient<org.w3c.dom.Document>
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.areFriends

friends_get

public org.w3c.dom.Document friends_get()
                                 throws FacebookException,
                                        java.io.IOException
Deprecated. 
Retrieves the friends of the currently logged in user.

Specified by:
friends_get in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
array of friends
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.get

friends_getAsList

@Deprecated
public java.util.List<java.lang.Long> friends_getAsList()
                                                 throws FacebookException,
                                                        java.io.IOException
Deprecated. 

A wrapper method for friends_get(). When a session is started in a canvas, the Facebook server sends a list of friends as an fb_friends parameter, and it is cached in this instance. This method first checks the cached list, and then calls friends_get() only if necessary.

Returns:
A list of friends uids.
Throws:
java.io.IOException
FacebookException

toFriendsList

public static java.util.List<java.lang.Long> toFriendsList(org.w3c.dom.Document doc)
Deprecated. 

friends_getAppUsers

public org.w3c.dom.Document friends_getAppUsers()
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Retrieves the friends of the currently logged in user, who are also users of the calling application.

Specified by:
friends_getAppUsers in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
array of friends
Throws:
FacebookException
java.io.IOException

users_getStandardInfo

public org.w3c.dom.Document users_getStandardInfo(java.util.Collection<java.lang.Long> userIds,
                                                  java.util.Collection<ProfileField> fields)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Returns an array of user-specific information for each user identifier passed, limited by the view of the current user. The information you can get from this call is limited to: uid, first_name, last_name, name, timezone, birthday, sex, affiliations (regional type only)

Specified by:
users_getStandardInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userIds - a collection of user IDs for which to fetch info
fields - a set of ProfileFields
Returns:
a T consisting of a list of users, with each user element containing the requested fields.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Users.getStandardInfo

users_getStandardInfo

public org.w3c.dom.Document users_getStandardInfo(java.util.Collection<java.lang.Long> userIds,
                                                  java.util.Set<java.lang.CharSequence> fields)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Returns an array of user-specific information for each user identifier passed, limited by the view of the current user. The information you can get from this call is limited to: uid, first_name, last_name, name, timezone, birthday, sex, affiliations (regional type only)

Specified by:
users_getStandardInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userIds - a collection of user IDs for which to fetch info
fields - a set of strings describing the info fields desired, such as "last_name", "sex"
Returns:
a T consisting of a list of users, with each user element containing the requested fields.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Users.getStandardInfo

users_getInfo

public org.w3c.dom.Document users_getInfo(java.util.Collection<java.lang.Long> userIds,
                                          java.util.Collection<ProfileField> fields)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieves the requested info fields for the requested set of users.

Specified by:
users_getInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userIds - a collection of user IDs for which to fetch info
fields - a set of ProfileFields
Returns:
a T consisting of a list of users, with each user element containing the requested fields.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Users.getInfo

users_getInfo

public org.w3c.dom.Document users_getInfo(java.util.Collection<java.lang.Long> userIds,
                                          java.util.Set<java.lang.CharSequence> fields)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieves the requested info fields for the requested set of users.

Specified by:
users_getInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userIds - a collection of user IDs for which to fetch info
fields - a set of strings describing the info fields desired, such as "last_name", "sex"
Returns:
a T consisting of a list of users, with each user element containing the requested fields.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Users.getInfo

users_getLoggedInUser

public long users_getLoggedInUser()
                           throws FacebookException,
                                  java.io.IOException
Deprecated. 
Retrieves the user ID of the user logged in to this API session

Specified by:
users_getLoggedInUser in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
the Facebook user ID of the logged-in user
Throws:
FacebookException
java.io.IOException

users_isAppAdded

@Deprecated
public boolean users_isAppAdded()
                         throws FacebookException,
                                java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Retrieves an indicator of whether the logged-in user has added the application associated with the _apiKey.

Specified by:
users_isAppAdded in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
boolean indicating whether the user has added the app
Throws:
FacebookException
java.io.IOException
See Also:
Users.isAppAdded

getCacheAppAdded

public java.lang.Boolean getCacheAppAdded()
Deprecated. 
Specified by:
getCacheAppAdded in interface IFacebookRestClient<org.w3c.dom.Document>

setCacheAppAdded

public void setCacheAppAdded(java.lang.Boolean value)
Deprecated. 
Specified by:
setCacheAppAdded in interface IFacebookRestClient<org.w3c.dom.Document>

photos_get

public org.w3c.dom.Document photos_get(java.lang.Long subjId,
                                       java.lang.Long albumId,
                                       java.util.Collection<java.lang.Long> photoIds)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).

Specified by:
photos_get in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
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)
Returns:
an Document of photo objects.
Throws:
FacebookException
java.io.IOException

photos_get

public org.w3c.dom.Document photos_get(java.lang.Long albumId,
                                       java.util.Collection<java.lang.Long> photoIds,
                                       boolean album)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Throws:
FacebookException
java.io.IOException

photos_get

public org.w3c.dom.Document photos_get(java.lang.Long subjId,
                                       java.util.Collection<java.lang.Long> photoIds)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).

Specified by:
photos_get in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
subjId - retrieve from photos associated with this user (optional).
photoIds - retrieve from this list of photos (optional)
Returns:
an T of photo objects.
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.photos_get(Long, Long, Collection), Developers Wiki: Photos.get

photos_get

public org.w3c.dom.Document photos_get(java.lang.Long subjId,
                                       java.lang.Long albumId)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).

Specified by:
photos_get in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
subjId - retrieve from photos associated with this user (optional).
albumId - retrieve from photos from this album (optional)
Returns:
an T of photo objects.
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.photos_get(Long, Long, Collection), Developers Wiki: Photos.get

photos_get

public org.w3c.dom.Document photos_get(java.util.Collection<java.lang.Long> photoIds)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).

Specified by:
photos_get in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photoIds - retrieve from this list of photos (optional)
Returns:
an T of photo objects.
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.photos_get(Long, Long, Collection), Developers Wiki: Photos.get

photos_get

public org.w3c.dom.Document photos_get(java.lang.Long albumId,
                                       boolean album)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Throws:
FacebookException
java.io.IOException

photos_get

public org.w3c.dom.Document photos_get(java.lang.Long subjId)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).

Specified by:
photos_get in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
subjId - retrieve from photos associated with this user (optional).
Returns:
an T of photo objects.
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.photos_get(Long, Long, Collection), Developers Wiki: Photos.get

photos_getAlbums

public org.w3c.dom.Document photos_getAlbums(java.lang.Long userId,
                                             java.util.Collection<java.lang.Long> albumIds)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Retrieves album metadata. Pass a user id and/or a list of album ids to specify the albums to be retrieved (at least one must be provided)

Specified by:
photos_getAlbums in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - retrieve metadata for albums created the id of the user whose album you wish (optional).
albumIds - the ids of albums whose metadata is to be retrieved
Returns:
album objects.
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Photos.getAlbums

photos_getAlbums

public org.w3c.dom.Document photos_getAlbums(java.lang.Long userId)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieves album metadata for albums owned by a user.

Specified by:
photos_getAlbums in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - (optional) the id of the albums' owner (optional)
Returns:
album objects
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Photos.getAlbums

photos_getAlbums

public org.w3c.dom.Document photos_getAlbums(java.util.Collection<java.lang.Long> albumIds)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieves album metadata for a list of album IDs.

Specified by:
photos_getAlbums in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
albumIds - the ids of albums whose metadata is to be retrieved
Returns:
album objects
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Photos.getAlbums

photos_getTags

public org.w3c.dom.Document photos_getTags(java.util.Collection<java.lang.Long> photoIds)
                                    throws FacebookException,
                                           java.io.IOException
Deprecated. 
Retrieves the tags for the given set of photos.

Specified by:
photos_getTags in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photoIds - The list of photos from which to extract photo tags.
Returns:
the created album
Throws:
FacebookException
java.io.IOException

photos_createAlbum

public org.w3c.dom.Document photos_createAlbum(java.lang.String albumName)
                                        throws FacebookException,
                                               java.io.IOException
Deprecated. 
Creates an album.

Specified by:
photos_createAlbum in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
albumName - The list of photos from which to extract photo tags.
Returns:
the created album
Throws:
FacebookException
java.io.IOException

photos_createAlbum

public org.w3c.dom.Document photos_createAlbum(java.lang.String name,
                                               java.lang.String description,
                                               java.lang.String location)
                                        throws FacebookException,
                                               java.io.IOException
Deprecated. 
Creates an album.

Specified by:
photos_createAlbum in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
name - The album name.
location - The album location (optional).
description - The album description (optional).
Returns:
an array of photo objects.
Throws:
FacebookException
java.io.IOException

photos_addTags

public org.w3c.dom.Document photos_addTags(java.lang.Long photoId,
                                           java.util.Collection<PhotoTag> tags)
                                    throws FacebookException,
                                           java.io.IOException
Deprecated. 
Adds several tags to a photo.

Specified by:
photos_addTags in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photoId - The photo id of the photo to be tagged.
tags - A list of PhotoTags.
Returns:
a list of booleans indicating whether the tag was successfully added.
Throws:
FacebookException
java.io.IOException

photos_addTag

public boolean photos_addTag(java.lang.Long photoId,
                             java.lang.Long taggedUserId,
                             java.lang.Double xPct,
                             java.lang.Double yPct)
                      throws FacebookException,
                             java.io.IOException
Deprecated. 
Adds a tag to a photo.

Specified by:
photos_addTag in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photoId - The photo id of the photo to be tagged.
xPct - The horizontal position of the tag, as a percentage from 0 to 100, from the left of the photo.
yPct - The vertical position of the tag, as a percentage from 0 to 100, from the top of the photo.
taggedUserId - The list of photos from which to extract photo tags.
Returns:
whether the tag was successfully added.
Throws:
FacebookException
java.io.IOException

photos_addTag

public boolean photos_addTag(java.lang.Long photoId,
                             java.lang.CharSequence tagText,
                             java.lang.Double xPct,
                             java.lang.Double yPct)
                      throws FacebookException,
                             java.io.IOException
Deprecated. 
Adds a tag to a photo.

Specified by:
photos_addTag in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photoId - The photo id of the photo to be tagged.
xPct - The horizontal position of the tag, as a percentage from 0 to 100, from the left of the photo.
yPct - The list of photos from which to extract photo tags.
tagText - The text of the tag.
Returns:
whether the tag was successfully added.
Throws:
FacebookException
java.io.IOException

photos_upload

public org.w3c.dom.Document photos_upload(java.io.File photo)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photo - an image file
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Photos.upload

photos_upload

public org.w3c.dom.Document photos_upload(java.io.File photo,
                                          java.lang.String caption)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photo - an image file
caption - a description of the image contents
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Photos.upload

photos_upload

public org.w3c.dom.Document photos_upload(java.io.File photo,
                                          java.lang.Long albumId)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photo - an image file
albumId - the album into which the photo should be uploaded
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Photos.upload

photos_upload

public org.w3c.dom.Document photos_upload(java.io.File photo,
                                          java.lang.String caption,
                                          java.lang.Long albumId)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photo - an image file
caption - a description of the image contents
albumId - the album into which the photo should be uploaded
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Photos.upload

groups_get

public org.w3c.dom.Document groups_get(java.lang.Long userId,
                                       java.util.Collection<java.lang.Long> groupIds)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 
Retrieves the groups associated with a user

Specified by:
groups_get in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
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.
Returns:
array of groups
Throws:
FacebookException
java.io.IOException

groups_getMembers

public org.w3c.dom.Document groups_getMembers(java.lang.Number groupId)
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. 
Retrieves the membership list of a group

Specified by:
groups_getMembers in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
groupId - the group id
Returns:
a Document containing four membership lists of 'members', 'admins', 'officers', and 'not_replied'
Throws:
FacebookException
java.io.IOException

fql_query

public org.w3c.dom.Document fql_query(java.lang.CharSequence query)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Retrieves the results of a Facebook Query Language query

Specified by:
fql_query in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
query - : the FQL query statement
Returns:
varies depending on the FQL query
Throws:
FacebookException
java.io.IOException

notifications_get

public org.w3c.dom.Document notifications_get()
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. 
Retrieves the outstanding notifications for the session user.

Specified by:
notifications_get in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a Document containing notification count pairs for 'messages', 'pokes' and 'shares', a uid list of 'friend_requests', a gid list of 'group_invites', and an eid list of 'event_invites'
Throws:
FacebookException
java.io.IOException

notifications_sendRequest

@Deprecated
public java.net.URL notifications_sendRequest(java.util.Collection<java.lang.Long> recipientIds,
                                                         java.lang.CharSequence type,
                                                         java.lang.CharSequence content,
                                                         java.net.URL image,
                                                         boolean isInvite)
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. this method has been removed from the Facebook API server

Send a request or invitations to the specified users.

Parameters:
recipientIds - the user ids to which the request is to be sent
type - the type of request/invitation - e.g. the word "event" in "1 event invitation."
content - Content of the request/invitation. This should be FBML containing only links and the special tag <fb:req-choice url="" label="" /> to specify the buttons to be included in the request.
image - URL of an image to show beside the request. It will be resized to be 100 pixels wide.
isInvite - whether this is a "request" or an "invite"
Returns:
a URL, possibly null, to which the user should be redirected to finalize the sending of the message
Throws:
FacebookException
java.io.IOException

notifications_send

@Deprecated
public java.net.URL notifications_send(java.util.Collection<java.lang.Long> recipientIds,
                                                  java.lang.CharSequence notification,
                                                  java.lang.CharSequence email)
                                throws FacebookException,
                                       java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Send a notification message to the specified users.

Specified by:
notifications_send in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipientIds - the user ids to which the message is to be sent
notification - the FBML to display on the notifications page
email - the FBML to send to the specified users via email, or null if no email should be sent
Returns:
a URL, possibly null, to which the user should be redirected to finalize the sending of the email
Throws:
FacebookException
java.io.IOException

extractBoolean

public static boolean extractBoolean(org.w3c.dom.Node doc)
Deprecated. 

postFileRequest

protected java.io.InputStream postFileRequest(java.lang.String methodName,
                                              java.util.Map<java.lang.String,java.lang.String> params)
                                       throws java.io.IOException
Deprecated. 
Helper function for posting a request that includes raw file data, eg photos_upload(File).

Parameters:
methodName - the name of the method
params - request parameters (not including the file)
doEncode - whether to UTF8-encode the parameters
Returns:
an InputStream with the request response
Throws:
java.io.IOException
See Also:
photos_upload(File)

postFileRequest

public java.io.InputStream postFileRequest(java.lang.String methodName,
                                           java.util.Map<java.lang.String,java.lang.String> params,
                                           boolean doEncode)
Deprecated. 

auth_createToken

public java.lang.String auth_createToken()
                                  throws FacebookException,
                                         java.io.IOException
Deprecated. 
Call this function and store the result, using it to generate the appropriate login url and then to retrieve the session information.

Specified by:
auth_createToken in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
String the auth_token string
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Auth.createToken

auth_getSession

public java.lang.String auth_getSession(java.lang.String authToken)
                                 throws FacebookException,
                                        java.io.IOException
Deprecated. 
Call this function to retrieve the session information after your user has logged in.

Specified by:
auth_getSession in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
authToken - the token returned by auth_createToken or passed back to your callback_url.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Auth.getSession

getResponsePOJO

public java.lang.Object getResponsePOJO()
Deprecated. 
Returns a JAXB object of the type that corresponds to the last API call made on the client. Each Facebook Platform API call that returns a Document object has a JAXB response object associated with it. The naming convention is generally intuitive. For example, if you invoke the 'user_getInfo' API call, the associated JAXB response object is 'UsersGetInfoResponse'.

An example of how to use this method:

FacebookRestClient client = new FacebookRestClient("apiKey", "secretKey", "sessionId");
client.friends_get();
FriendsGetResponse response = (FriendsGetResponse)client.getResponsePOJO();
List friends = response.getUid();

This is particularly useful in the case of API calls that return a Document object, as working with the JAXB response object is generally much simple than trying to walk/parse the DOM by hand.

This method can be safely called multiple times, though note that it will only return the response-object corresponding to the most recent Facebook Platform API call made.

Note that you must cast the return value of this method to the correct type in order to do anything useful with it.

Specified by:
getResponsePOJO in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a JAXB POJO ("Plain Old Java Object") of the type that corresponds to the last API call made on the client. Note that you must cast this object to its proper type before you will be able to do anything useful with it.

data_getUserPreference

public java.lang.String data_getUserPreference(java.lang.Integer prefId)
                                        throws FacebookException,
                                               java.io.IOException
Deprecated. 
Lookup a single preference value for the current user.

Specified by:
data_getUserPreference in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
prefId - the id of the preference to lookup. This should be an integer value from 0-200.
Returns:
The value of that preference, or null if it is not yet set.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

data_getUserPreferences

public java.util.Map<java.lang.Integer,java.lang.String> data_getUserPreferences()
                                                                          throws FacebookException,
                                                                                 java.io.IOException
Deprecated. 
Get a map containing all preference values set for the current user.

Specified by:
data_getUserPreferences in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a map of preference values, keyed by preference id. The map will contain all preferences that have been set for the current user. If there are no preferences currently set, the map will be empty. The map returned will never be null.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

data_setUserPreference

public void data_setUserPreference(java.lang.Integer prefId,
                                   java.lang.String value)
                            throws FacebookException,
                                   java.io.IOException
Deprecated. 
Set a user-preference value. The value can be any string up to 127 characters in length, while the preference id can only be an integer between 0 and 200. Any preference set applies only to the current user of the application. To clear a user-preference, specify null as the value parameter. The values of "0" and "" will be stored as user-preferences with a literal value of "0" and "" respectively.

Specified by:
data_setUserPreference in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
prefId - the id of the preference to set, an integer between 0 and 200.
value - the value to store, a String of up to 127 characters in length.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

data_setUserPreferences

public void data_setUserPreferences(java.util.Map<java.lang.Integer,java.lang.String> values,
                                    boolean replace)
                             throws FacebookException,
                                    java.io.IOException
Deprecated. 
Set multiple user-preferences values. The values can be strings up to 127 characters in length, while the preference id can only be an integer between 0 and 200. Any preferences set apply only to the current user of the application. To clear a user-preference, specify null as its value in the map. The values of "0" and "" will be stored as user-preferences with a literal value of "0" and "" respectively.

Specified by:
data_setUserPreferences in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
values - the values to store, specified in a map. The keys should be preference-id values from 0-200, and the values should be strings of up to 127 characters in length.
replace - set to true if you want to remove any pre-existing preferences before writing the new ones set to false if you want the new preferences to be merged with any pre-existing preferences
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

sms_canSend

public boolean sms_canSend()
                    throws FacebookException,
                           java.io.IOException
Deprecated. 
Check to see if the application is permitted to send SMS messages to the current application user.

Specified by:
sms_canSend in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
true if the application is presently able to send SMS messages to the current user false otherwise
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

sms_canSend

public boolean sms_canSend(java.lang.Long userId)
                    throws FacebookException,
                           java.io.IOException
Deprecated. 
Check to see if the application is permitted to send SMS messages to the specified user.

Specified by:
sms_canSend in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the UID of the user to check permissions for
Returns:
true if the application is presently able to send SMS messages to the specified user false otherwise
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

sms_send

public java.lang.Integer sms_send(java.lang.String message,
                                  java.lang.Integer smsSessionId,
                                  boolean makeNewSession)
                           throws FacebookException,
                                  java.io.IOException
Deprecated. 
Send an SMS message to the current application user.

Specified by:
sms_send in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
message - the message to send.
smsSessionId - the SMS session id to use, note that that is distinct from the user's facebook session id. It is used to allow applications to keep track of individual SMS conversations/threads for a single user. Specify null if you do not want/need to use a session for the current message.
makeNewSession - set to true to request that Facebook allocate a new SMS session id for this message. The allocated id will be returned as the result of this API call. You should only set this to true if you are passing a null 'smsSessionId' value. Otherwise you already have a SMS session id, and do not need a new one.
Returns:
an integer specifying the value of the session id alocated by Facebook, if one was requested. If a new session id was not requested, this method will return null.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

sms_send

public java.lang.Integer sms_send(java.lang.Long userId,
                                  java.lang.String message,
                                  java.lang.Integer smsSessionId,
                                  boolean makeNewSession)
                           throws FacebookException,
                                  java.io.IOException
Deprecated. 
Send an SMS message to the specified user.

Specified by:
sms_send in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user to send the message to.
message - the message to send.
smsSessionId - the SMS session id to use, note that that is distinct from the user's facebook session id. It is used to allow applications to keep track of individual SMS conversations/threads for a single user. Specify null if you do not want/need to use a session for the current message.
makeNewSession - set to true to request that Facebook allocate a new SMS session id for this message. The allocated id will be returned as the result of this API call. You should only set this to true if you are passing a null 'smsSessionId' value. Otherwise you already have a SMS session id, and do not need a new one.
Returns:
an integer specifying the value of the session id alocated by Facebook, if one was requested. If a new session id was not requested, this method will return null.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

users_setStatus

public boolean users_setStatus(java.lang.String newStatus,
                               boolean clear)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set the user's profile status message. This requires that the user has granted the application the 'status_update' permission, otherwise the call will return an error. You can use 'users_hasAppPermission' to check to see if the user has granted your app the abbility to update their status.

Specified by:
users_setStatus in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
newStatus - the new status message to set.
clear - whether or not to clear the old status message.
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.
See Also:
http://wiki.developers.facebook.com/index.php/Users.setStatus

fbml_setRefHandle

public boolean fbml_setRefHandle(java.lang.String handle,
                                 java.lang.String markup)
                          throws FacebookException,
                                 java.io.IOException
Deprecated. 
Associates the specified FBML markup with the specified handle/id. The markup can then be referenced using the fb:ref FBML tag, to allow a given snippet to be reused easily across multiple users, and also to allow the application to update the fbml for multiple users more easily without having to make a seperate call for each user, by just changing the FBML markup that is associated with the handle/id. This method cannot be called by desktop apps.

Specified by:
fbml_setRefHandle in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
handle - the id to associate the specified markup with. Put this in fb:ref FBML tags to reference your markup.
markup - the FBML markup to store.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_createListing

public java.lang.Long marketplace_createListing(java.lang.Long listingId,
                                                boolean showOnProfile,
                                                java.lang.String attributes)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Create a new marketplace listing, or modify an existing one.

Specified by:
marketplace_createListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the id of the listing to modify, set to 0 (or null) to create a new listing.
showOnProfile - set to true to show the listing on the user's profile (Facebook appears to ignore this setting).
attributes - JSON-encoded attributes for this listing.
Returns:
the id of the listing created (or modified).
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_createListing

public java.lang.Long marketplace_createListing(java.lang.Long listingId,
                                                boolean showOnProfile,
                                                MarketListing listing)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Create a new marketplace listing, or modify an existing one.

Specified by:
marketplace_createListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the id of the listing to modify, set to 0 (or null) to create a new listing.
showOnProfile - set to true to show the listing on the user's profile, set to false to prevent the listing from being shown on the profile.
listing - the listing to publish.
Returns:
the id of the listing created (or modified).
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_createListing

public java.lang.Long marketplace_createListing(boolean showOnProfile,
                                                MarketListing listing)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Create a new marketplace listing.

Specified by:
marketplace_createListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
showOnProfile - set to true to show the listing on the user's profile, set to false to prevent the listing from being shown on the profile.
listing - the listing to publish.
Returns:
the id of the listing created (or modified).
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_createListing

public java.lang.Long marketplace_createListing(java.lang.Long listingId,
                                                boolean showOnProfile,
                                                org.json.JSONObject listing)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Create a new marketplace listing, or modify an existing one.

Parameters:
listingId - the id of the listing to modify, set to 0 (or null) to create a new listing.
showOnProfile - set to true to show the listing on the user's profile, set to false to prevent the listing from being shown on the profile.
listing - the listing to publish.
Returns:
the id of the listing created (or modified).
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_createListing

public java.lang.Long marketplace_createListing(boolean showOnProfile,
                                                org.json.JSONObject listing)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Create a new marketplace listing.

Parameters:
showOnProfile - set to true to show the listing on the user's profile, set to false to prevent the listing from being shown on the profile.
listing - the listing to publish.
Returns:
the id of the listing created (or modified).
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_getCategories

public java.util.List<java.lang.String> marketplace_getCategories()
                                                           throws FacebookException,
                                                                  java.io.IOException
Deprecated. 
Return a list of all valid Marketplace categories.

Specified by:
marketplace_getCategories in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a list of marketplace categories allowed by Facebook.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.
See Also:
Developers Wiki: marketplace.getCategories

marketplace_getCategoriesObject

public org.w3c.dom.Document marketplace_getCategoriesObject()
                                                     throws FacebookException,
                                                            java.io.IOException
Deprecated. 
Return a list of all valid Marketplace categories.

Specified by:
marketplace_getCategoriesObject in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a list of marketplace categories allowed by Facebook.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.
See Also:
Developers Wiki: marketplace.getCategories

marketplace_getSubCategories

public java.util.List<java.lang.String> marketplace_getSubCategories()
                                                              throws FacebookException,
                                                                     java.io.IOException
Deprecated. 
Return a list of all valid Marketplace subcategories.

Specified by:
marketplace_getSubCategories in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a list of marketplace subcategories allowed by Facebook.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_getListings

public java.util.List<Listing> marketplace_getListings(java.util.List<java.lang.Long> listingIds,
                                                       java.util.List<java.lang.Long> uids)
                                                throws FacebookException,
                                                       java.io.IOException
Deprecated. 
Retrieve listings from the marketplace. The listings can be filtered by listing-id or user-id (or both).

Specified by:
marketplace_getListings in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingIds - the ids of listings to filter by, only listings matching the specified ids will be returned.
uids - the ids of users to filter by, only listings submitted by those users will be returned.
Returns:
A list of marketplace listings that meet the specified filter criteria.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_search

public java.util.List<Listing> marketplace_search(MarketListingCategory category,
                                                  MarketListingSubcategory subcategory,
                                                  java.lang.String searchTerm)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 
Search the marketplace listings by category, subcategory, and keyword.

Specified by:
marketplace_search in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
category - the category to search in, optional (unless subcategory is specified).
subcategory - the subcategory to search in, optional.
searchTerm - the keyword to search for, optional.
Returns:
a list of marketplace entries that match the specified search parameters.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_removeListing

public boolean marketplace_removeListing(java.lang.Long listingId,
                                         MarketListingStatus status)
                                  throws FacebookException,
                                         java.io.IOException
Deprecated. 
Remove a listing from the marketplace by id.

Specified by:
marketplace_removeListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the id of the listing to remove.
status - the status to apply when removing the listing. Should be one of MarketListingStatus.SUCCESS or MarketListingStatus.NOT_SUCCESS.
Returns:
true if the listing was successfully removed false otherwise
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

users_clearStatus

public boolean users_clearStatus()
                          throws FacebookException,
                                 java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Clears the logged-in user's Facebook status. Requires the status_update extended permission.

Specified by:
users_clearStatus in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
whether the status was successfully cleared
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission), FacebookExtendedPerm.STATUS_UPDATE, http://wiki.developers.facebook.com/index.php/Users.setStatus

marketplace_editListing

@Deprecated
public java.lang.Long marketplace_editListing(java.lang.Long listingId,
                                                         java.lang.Boolean showOnProfile,
                                                         MarketplaceListing attrs)
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. provided for legacy support only. Please use the version that takes a MarketListing instead.

Modify a marketplace listing

Specified by:
marketplace_editListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - identifies the listing to be modified
showOnProfile - whether the listing can be shown on the user's profile
attrs - the properties of the listing
Returns:
the id of the edited listing
Throws:
FacebookException
java.io.IOException
See Also:
MarketplaceListing, Developers Wiki: marketplace.createListing

marketplace_editListing

public java.lang.Long marketplace_editListing(java.lang.Long listingId,
                                              java.lang.Boolean showOnProfile,
                                              MarketListing attrs)
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. 
Modify a marketplace listing

Specified by:
marketplace_editListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - identifies the listing to be modified
showOnProfile - whether the listing can be shown on the user's profile
attrs - the properties of the listing
Returns:
the id of the edited listing
Throws:
FacebookException
java.io.IOException
See Also:
MarketplaceListing, Developers Wiki: marketplace.createListing

marketplace_createListing

@Deprecated
public java.lang.Long marketplace_createListing(java.lang.Boolean showOnProfile,
                                                           MarketplaceListing attrs)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. provided for legacy support only.

Create a marketplace listing

Specified by:
marketplace_createListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
showOnProfile - whether the listing can be shown on the user's profile
attrs - the properties of the listing
Returns:
the id of the created listing
Throws:
FacebookException
java.io.IOException
See Also:
MarketplaceListing, Developers Wiki: marketplace.createListing

auth_getUserId

@Deprecated
public long auth_getUserId(java.lang.String authToken)
                    throws FacebookException,
                           java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Call this function to get the user ID.

Specified by:
auth_getUserId in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
The ID of the current session's user, or -1 if none.
Throws:
FacebookException
java.io.IOException

feed_publishTemplatizedAction

public boolean feed_publishTemplatizedAction(java.lang.Long actorId,
                                             java.lang.CharSequence titleTemplate)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Publishes a Mini-Feed story describing an action taken by a user, and publishes aggregating News Feed stories to the friends of that user. Stories are identified as being combinable if they have matching templates and substituted values.

Specified by:
feed_publishTemplatizedAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
actorId - deprecated
titleTemplate - markup (up to 60 chars, tags excluded) for the feed story's title section. Must include the token {actor}.
Returns:
whether the action story was successfully published; false in case of a permission error
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

feed_publishTemplatizedAction

public boolean feed_publishTemplatizedAction(java.lang.Long actorId,
                                             java.lang.CharSequence titleTemplate,
                                             java.util.Map<java.lang.String,java.lang.CharSequence> titleData,
                                             java.lang.CharSequence bodyTemplate,
                                             java.util.Map<java.lang.String,java.lang.CharSequence> bodyData,
                                             java.lang.CharSequence bodyGeneral,
                                             java.util.Collection<java.lang.Long> targetIds,
                                             java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> images)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Publishes a Mini-Feed story describing an action taken by a user, and publishes aggregating News Feed stories to the friends of that user. Stories are identified as being combinable if they have matching templates and substituted values.

Specified by:
feed_publishTemplatizedAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
actorId - the user into whose mini-feed the story is being published.
titleTemplate - markup (up to 60 chars, tags excluded) for the feed story's title section. Must include the token {actor}.
titleData - (optional) contains token-substitution mappings for tokens that appear in titleTemplate. Should not contain mappings for the {actor} or {target} tokens. Required if tokens other than {actor} or {target} appear in the titleTemplate.
bodyTemplate - (optional) markup to be displayed in the feed story's body section. can include tokens, of the form {token}, to be substituted using bodyData.
bodyData - (optional) contains token-substitution mappings for tokens that appear in bodyTemplate. Required if the bodyTemplate contains tokens other than {actor} and {target}.
bodyGeneral - (optional) additional body markup that is not aggregated. If multiple instances of this templated story are combined together, the markup in the bodyGeneral of one of their stories may be displayed.
targetIds - The user ids of friends of the actor, used for stories about a direct action between the actor and these targets of his/her action. Required if either the titleTemplate or bodyTemplate includes the token {target}.
images - (optional) additional body markup that is not aggregated. If multiple instances of this templated story are combined together, the markup in the bodyGeneral of one of their stories may be displayed.
Returns:
whether the action story was successfully published; false in case of a permission error
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Feed.publishTemplatizedAction

marketplace_getListings

@Deprecated
public org.w3c.dom.Document marketplace_getListings(java.util.Collection<java.lang.Long> listingIds,
                                                               java.util.Collection<java.lang.Long> userIds)
                                             throws FacebookException,
                                                    java.io.IOException
Deprecated. provided for legacy support only. Use the version that returns a List instead.

Description copied from interface: IFacebookRestClient
Fetch marketplace listings, filtered by listing IDs and/or the posting users' IDs.

Specified by:
marketplace_getListings in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingIds - listing identifiers (required if uids is null/empty)
userIds - posting user identifiers (required if listingIds is null/empty)
Returns:
a T of marketplace listings
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: marketplace.getListings

marketplace_getSubCategories

public org.w3c.dom.Document marketplace_getSubCategories(java.lang.CharSequence category)
                                                  throws FacebookException,
                                                         java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get the subcategories available for a category.

Specified by:
marketplace_getSubCategories in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
category - a category, e.g. "HOUSING"
Returns:
a T listing the marketplace sub-categories
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: marketplace.getSubCategories

marketplace_removeListing

public boolean marketplace_removeListing(java.lang.Long listingId)
                                  throws FacebookException,
                                         java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Remove a marketplace listing. The create_listing extended permission is required.

Specified by:
marketplace_removeListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the listing to be removed
Returns:
boolean indicating whether the listing was removed
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission), FacebookExtendedPerm.MARKETPLACE, Developers Wiki: marketplace.removeListing

marketplace_removeListing

@Deprecated
public boolean marketplace_removeListing(java.lang.Long listingId,
                                                    java.lang.CharSequence status)
                                  throws FacebookException,
                                         java.io.IOException
Deprecated. provided for legacy support only. Use marketplace_removeListing(Long, MarketListingStatus) instead.

Description copied from interface: IFacebookRestClient
Remove a marketplace listing. The create_listing extended permission is required.

Specified by:
marketplace_removeListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the listing to be removed
status - MARKETPLACE_STATUS_DEFAULT, MARKETPLACE_STATUS_SUCCESS, or MARKETPLACE_STATUS_NOT_SUCCESS
Returns:
boolean indicating whether the listing was removed
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission), FacebookExtendedPerm.MARKETPLACE, Developers Wiki: marketplace.removeListing

marketplace_search

@Deprecated
public org.w3c.dom.Document marketplace_search(java.lang.CharSequence category,
                                                          java.lang.CharSequence subCategory,
                                                          java.lang.CharSequence query)
                                        throws FacebookException,
                                               java.io.IOException
Deprecated. provided for legacy support only. Use the version that returns a List instead.

Description copied from interface: IFacebookRestClient
Search for marketplace listings, optionally by category, subcategory, and/or query string.

Specified by:
marketplace_search in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
category - the category of listings desired (optional except if subcategory is provided)
subCategory - the subcategory of listings desired (optional)
query - a query string (optional)
Returns:
a T of marketplace listings
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: marketplace.search

users_hasAppPermission

public boolean users_hasAppPermission(Permission perm)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Specified by:
users_hasAppPermission in interface IFacebookRestClient<org.w3c.dom.Document>
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.users_hasAppPermission(Permission,Long), Users.hasAppPermission

users_hasAppPermission

public boolean users_hasAppPermission(Permission perm,
                                      java.lang.Long userId)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Checks whether the user has opted in to an extended application permission.

Specified by:
users_hasAppPermission in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
perm - String identifier for the extended permission that is being checked for. Must be one of email, offline_access, status_update, photo_upload, create_listing, create_event, rsvp_event, sms.
userId - The user ID of the user whose permissions you are checking. If this parameter is not specified, then it defaults to the session user. Note: This parameter applies only to Web applications and is required by them only if the session_key is not specified. Facebook ignores this parameter if it is passed by a desktop application.
Returns:
true if the user has granted the application the specified permission false otherwise
Throws:
FacebookException
java.io.IOException
See Also:
Users.hasAppPermission

users_setStatus

public boolean users_setStatus(java.lang.String status)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the logged-in user's Facebook status. Requires the status_update extended permission.

Specified by:
users_setStatus in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
whether the status was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission), FacebookExtendedPerm.STATUS_UPDATE, http://wiki.developers.facebook.com/index.php/Users.setStatus

photos_getByAlbum

public org.w3c.dom.Document photos_getByAlbum(java.lang.Long albumId,
                                              java.util.Collection<java.lang.Long> photoIds)
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. 
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).

Specified by:
photos_getByAlbum in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
albumId - retrieve from photos from this album (optional)
photoIds - retrieve from this list of photos (optional)
Returns:
an T of photo objects.
Throws:
FacebookException
java.io.IOException
See Also:
#photos_get(Integer, Long, Collection), Developers Wiki: Photos.get

photos_getByAlbum

public org.w3c.dom.Document photos_getByAlbum(java.lang.Long albumId)
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. 
Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).

Specified by:
photos_getByAlbum in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
albumId - retrieve from photos from this album (optional)
Returns:
an T of photo objects.
Throws:
FacebookException
java.io.IOException
See Also:
#photos_get(Integer, Long, Collection), Developers Wiki: Photos.get

sms_sendResponse

public void sms_sendResponse(java.lang.Integer userId,
                             java.lang.CharSequence response,
                             java.lang.Integer mobileSessionId)
                      throws FacebookException,
                             java.io.IOException
Deprecated. 
Sends a message via SMS to the user identified by userId in response to a user query associated with mobileSessionId.

Parameters:
userId - a user ID
response - the message to be sent via SMS
mobileSessionId - the mobile session
Throws:
FacebookException - in case of error
java.io.IOException
See Also:
FacebookExtendedPerm.SMS, Developers Wiki: Mobile: Application Generated Messages, Developers Wiki: Mobile: Workflow

sms_sendMessage

public void sms_sendMessage(java.lang.Long userId,
                            java.lang.CharSequence message)
                     throws FacebookException,
                            java.io.IOException
Deprecated. 
Sends a message via SMS to the user identified by userId. The SMS extended permission is required for success.

Specified by:
sms_sendMessage in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - a user ID
message - the message to be sent via SMS
Throws:
FacebookException - in case of error
java.io.IOException
See Also:
FacebookExtendedPerm.SMS, Developers Wiki: Mobile: Application Generated Messages, Developers Wiki: Mobile: Workflow

sms_sendMessageWithSession

public int sms_sendMessageWithSession(java.lang.Long userId,
                                      java.lang.CharSequence message)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Sends a message via SMS to the user identified by userId, with the expectation that the user will reply. The SMS extended permission is required for success. The returned mobile session ID can be stored and used in sms_sendResponse(java.lang.Integer, java.lang.CharSequence, java.lang.Integer) when the user replies.

Specified by:
sms_sendMessageWithSession in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - a user ID
message - the message to be sent via SMS
Returns:
a mobile session ID (can be used in sms_sendResponse(java.lang.Integer, java.lang.CharSequence, java.lang.Integer))
Throws:
FacebookException - in case of error, e.g. SMS is not enabled
java.io.IOException
See Also:
FacebookExtendedPerm.SMS, Developers Wiki: Mobile: Application Generated Messages, Developers Wiki: Mobile: Workflow

extractInt

public static int extractInt(org.w3c.dom.Node doc)
Deprecated. 
Extracts an Integer from a document that consists of an Integer only.

Parameters:
doc -
Returns:
the Integer

pages_getInfo

public org.w3c.dom.Document pages_getInfo(java.util.Collection<java.lang.Long> pageIds,
                                          java.util.EnumSet<PageProfileField> fields)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Retrieves the requested profile fields for the Facebook Pages with the given pageIds. Can be called for pages that have added the application without establishing a session.

Specified by:
pages_getInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
pageIds - the page IDs
fields - a set of page profile fields
Returns:
a T consisting of a list of pages, with each page element containing the requested fields.
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Pages.getInfo

pages_getInfo

public org.w3c.dom.Document pages_getInfo(java.util.Collection<java.lang.Long> pageIds,
                                          java.util.Set<java.lang.CharSequence> fields)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Retrieves the requested profile fields for the Facebook Pages with the given pageIds. Can be called for pages that have added the application without establishing a session.

Specified by:
pages_getInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
pageIds - the page IDs
fields - a set of page profile fields
Returns:
a T consisting of a list of pages, with each page element containing the requested fields.
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Pages.getInfo

pages_getInfo

public org.w3c.dom.Document pages_getInfo(java.lang.Long userId,
                                          java.util.EnumSet<PageProfileField> fields)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Retrieves the requested profile fields for the Facebook Pages of the user with the given userId.

Specified by:
pages_getInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the ID of a user about whose pages to fetch info (defaulted to the logged-in user)
fields - a set of PageProfileFields
Returns:
a T consisting of a list of pages, with each page element containing the requested fields.
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Pages.getInfo

pages_getInfo

public org.w3c.dom.Document pages_getInfo(java.lang.Long userId,
                                          java.util.Set<java.lang.CharSequence> fields)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Retrieves the requested profile fields for the Facebook Pages of the user with the given userId.

Specified by:
pages_getInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the ID of a user about whose pages to fetch info (defaulted to the logged-in user)
fields - a set of page profile fields
Returns:
a T consisting of a list of pages, with each page element containing the requested fields.
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Pages.getInfo

pages_isAppAdded

public boolean pages_isAppAdded(java.lang.Long pageId)
                         throws FacebookException,
                                java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Checks whether a page has added the application

Specified by:
pages_isAppAdded in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
pageId - the ID of the page
Returns:
true if the page has added the application
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Pages.isAppAdded

pages_isFan

public boolean pages_isFan(java.lang.Long pageId,
                           java.lang.Long userId)
                    throws FacebookException,
                           java.io.IOException
Deprecated. 
Checks whether a user is a fan of the page with the given pageId.

Specified by:
pages_isFan in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
pageId - the ID of the page
userId - the ID of the user (defaults to the logged-in user if null)
Returns:
true if the user is a fan of the page
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Pages.isFan

pages_isFan

public boolean pages_isFan(java.lang.Long pageId)
                    throws FacebookException,
                           java.io.IOException
Deprecated. 
Checks whether the logged-in user is a fan of the page with the given pageId.

Specified by:
pages_isFan in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
pageId - the ID of the page
Returns:
true if the logged-in user is a fan of the page
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Pages.isFan

pages_isAdmin

public boolean pages_isAdmin(java.lang.Long pageId)
                      throws FacebookException,
                             java.io.IOException
Deprecated. 
Checks whether the logged-in user for this session is an admin of the page with the given pageId.

Specified by:
pages_isAdmin in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
pageId - the ID of the page
Returns:
true if the logged-in user is an admin
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Pages.isAdmin

feed_publishTemplatizedAction

@Deprecated
public boolean feed_publishTemplatizedAction(java.lang.Integer actorId,
                                                        java.lang.CharSequence titleTemplate,
                                                        java.util.Map<java.lang.String,java.lang.CharSequence> titleData,
                                                        java.lang.CharSequence bodyTemplate,
                                                        java.util.Map<java.lang.String,java.lang.CharSequence> bodyData,
                                                        java.lang.CharSequence bodyGeneral,
                                                        java.util.Collection<java.lang.Long> targetIds,
                                                        java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> images)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. use the version that treats actorId as a Long. UID's *are not ever to be* expressed as Integers.

Description copied from interface: IFacebookRestClient
Publishes a Mini-Feed story describing an action taken by a user, and publishes aggregating News Feed stories to the friends of that user. Stories are identified as being combinable if they have matching templates and substituted values.

Specified by:
feed_publishTemplatizedAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
actorId - the user into whose mini-feed the story is being published.
titleTemplate - markup (up to 60 chars, tags excluded) for the feed story's title section. Must include the token {actor}.
titleData - (optional) contains token-substitution mappings for tokens that appear in titleTemplate. Should not contain mappings for the {actor} or {target} tokens. Required if tokens other than {actor} or {target} appear in the titleTemplate.
bodyTemplate - (optional) markup to be displayed in the feed story's body section. can include tokens, of the form {token}, to be substituted using bodyData.
bodyData - (optional) contains token-substitution mappings for tokens that appear in bodyTemplate. Required if the bodyTemplate contains tokens other than {actor} and {target}.
bodyGeneral - (optional) additional body markup that is not aggregated. If multiple instances of this templated story are combined together, the markup in the bodyGeneral of one of their stories may be displayed.
targetIds - The user ids of friends of the actor, used for stories about a direct action between the actor and these targets of his/her action. Required if either the titleTemplate or bodyTemplate includes the token {target}.
images - (optional) additional body markup that is not aggregated. If multiple instances of this templated story are combined together, the markup in the bodyGeneral of one of their stories may be displayed.
Returns:
whether the action story was successfully published; false in case of a permission error
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

notifications_send

public void notifications_send(java.util.Collection<java.lang.Long> recipientIds,
                               java.lang.CharSequence notification)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Send a notification message to the specified users.

Specified by:
notifications_send in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipientIds - the user ids to which the message is to be sent.
notification - the FBML to display on the notifications page.
Throws:
FacebookException
java.io.IOException

notifications_sendEmail

public org.w3c.dom.Document notifications_sendEmail(java.util.Collection<java.lang.Long> recipients,
                                                    java.lang.CharSequence subject,
                                                    java.lang.CharSequence email,
                                                    java.lang.CharSequence fbml)
                                             throws FacebookException,
                                                    java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Send an e-mail to a set of app-users. You can only e-mail users who have already added your application. The e-mail content can be specified as either plaintext or FBML. In either case, only a limited subset of markup is supported (only tags that result in text and links are allowed). You must include at least one of either the fbml or email parameters, but you do not ever need to specify both at once (the other can be null, or ""). If you specify both a text version and a fbml version of your e-mail, the text version will be used.

Specified by:
notifications_sendEmail in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipients - the uid's of the users to send to.
subject - the subject of the email message.
email - a plaintext version of the email to send.
fbml - an FBML version of the email to send, the fbml parameter is a stripped-down set of FBML that allows only tags that result in text, links and linebreaks.
Returns:
a list of user-ids specifying which users were successfully emailed.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

notifications_sendEmailToCurrentUser

public org.w3c.dom.Document notifications_sendEmailToCurrentUser(java.lang.String subject,
                                                                 java.lang.String email,
                                                                 java.lang.String fbml)
                                                          throws FacebookException,
                                                                 java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Send an e-mail to the currently logged-in user. The e-mail content can be specified as either plaintext or FBML. In either case, only a limited subset of markup is supported (only tags that result in text and links are allowed). You must include at least one of either the fbml or email parameters, but you do not ever need to specify both at once (the other can be null, or ""). If you specify both a text version and a fbml version of your e-mail, the text version will be used.

Specified by:
notifications_sendEmailToCurrentUser in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
subject - the subject of the email message.
email - a plaintext version of the email to send.
fbml - an FBML version of the email to send, the fbml parameter is a stripped-down set of FBML that allows only tags that result in text, links and linebreaks.
Returns:
a list of user-ids specifying which users were successfully emailed.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

notifications_sendFbmlEmail

public org.w3c.dom.Document notifications_sendFbmlEmail(java.util.Collection<java.lang.Long> recipients,
                                                        java.lang.String subject,
                                                        java.lang.String fbml)
                                                 throws FacebookException,
                                                        java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Send an e-mail to a set of app-users. You can only e-mail users who have already added your application. The e-mail content can be specified as either plaintext or FBML. In either case, only a limited subset of markup is supported (only tags that result in text and links are allowed).

Specified by:
notifications_sendFbmlEmail in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipients - the uid's of the users to send to.
subject - the subject of the email message.
fbml - the FBML version of the email to send, the fbml parameter is a stripped-down set of FBML that allows only tags that result in text, links and linebreaks.
Returns:
a list of user-ids specifying which users were successfully emailed.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

notifications_sendFbmlEmailToCurrentUser

public org.w3c.dom.Document notifications_sendFbmlEmailToCurrentUser(java.lang.String subject,
                                                                     java.lang.String fbml)
                                                              throws FacebookException,
                                                                     java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Send an e-mail to the currently logged-in user. The e-mail must be specified as fbml, and can contain a limited subset of FBML tags (specifically, only tags that result in text and links).

Specified by:
notifications_sendFbmlEmailToCurrentUser in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
subject - the subject of the email message.
fbml - the FBML version of the email to send, the fbml parameter is a stripped-down set of FBML that allows only tags that result in text, links and linebreaks.
Returns:
a list of user-ids specifying which users were successfully emailed.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

notifications_sendTextEmail

public org.w3c.dom.Document notifications_sendTextEmail(java.util.Collection<java.lang.Long> recipients,
                                                        java.lang.String subject,
                                                        java.lang.String email)
                                                 throws FacebookException,
                                                        java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Send an e-mail to a set of app-users. You can only e-mail users who have already added your application. The e-mail content can be specified as either plaintext or FBML. In either case, only a limited subset of markup is supported (only tags that result in text and links are allowed).

Specified by:
notifications_sendTextEmail in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipients - the uid's of the users to send to.
subject - the subject of the email message.
email - a plaintext version of the email to send.
Returns:
a list of user-ids specifying which users were successfully emailed.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

notifications_sendTextEmailToCurrentUser

public org.w3c.dom.Document notifications_sendTextEmailToCurrentUser(java.lang.String subject,
                                                                     java.lang.String email)
                                                              throws FacebookException,
                                                                     java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Send an e-mail to the currently logged-in user. The e-mail must be specified as plaintext, and can contain a limited subset of HTML tags (specifically, only tags that result in text and links).

Specified by:
notifications_sendTextEmailToCurrentUser in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
subject - the subject of the email message.
email - a plaintext version of the email to send.
Returns:
a list of user-ids specifying which users were successfully emailed.
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

users_setStatus

public boolean users_setStatus(java.lang.String newStatus,
                               boolean clear,
                               boolean statusIncludesVerb)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set the user's profile status message. This requires that the user has granted the application the 'status_update' permission, otherwise the call will return an error. You can use 'users_hasAppPermission' to check to see if the user has granted your app the abbility to update their status

Specified by:
users_setStatus in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
newStatus - the new status message to set.
clear - whether or not to clear the old status message.
statusIncludesVerb - set to true if you do not want the Facebook Platform to automatically prepend "is " to your status message set to false if you want the "is " prepended (default behavior)
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.
See Also:
http://wiki.developers.facebook.com/index.php/Users.setStatus

notifications_send

public void notifications_send(java.lang.CharSequence notification)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Send a notification message to the logged-in user.

Specified by:
notifications_send in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
notification - the FBML to be displayed on the notifications page; only a stripped-down set of FBML tags that result in text and links is allowed
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: notifications.send

notifications_sendEmailStr

@Deprecated
public java.lang.String notifications_sendEmailStr(java.util.Collection<java.lang.Long> recipientIds,
                                                              java.lang.CharSequence subject,
                                                              java.lang.CharSequence fbml,
                                                              java.lang.CharSequence text)
                                            throws FacebookException,
                                                   java.io.IOException
Deprecated. provided for legacy support only, please use one of the alternate notifications_sendEmail calls.

Sends a notification email to the specified users, who must have added your application. You can send five (5) emails to a user per day. Requires a session key for desktop applications, which may only send email to the person whose session it is. This method does not require a session for Web applications. Either fbml or text must be specified.

Specified by:
notifications_sendEmailStr in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipientIds - up to 100 user ids to which the message is to be sent
subject - the subject of the notification email (optional)
fbml - markup to be sent to the specified users via email; only a stripped-down set of FBML tags that result in text, links and linebreaks is allowed
text - the plain text to send to the specified users via email
Returns:
a comma-separated list of the IDs of the users to whom the email was successfully sent
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: notifications.sendEmail

notifications_sendEmail

@Deprecated
public java.lang.String notifications_sendEmail(java.util.Collection<java.lang.Long> recipientIds,
                                                           java.lang.CharSequence subject,
                                                           java.lang.CharSequence fbml)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. provided for legacy support only, please use one of the alternate notifications_sendEmail calls.

Sends a notification email to the specified users, who must have added your application. You can send five (5) emails to a user per day. Requires a session key for desktop applications, which may only send email to the person whose session it is. This method does not require a session for Web applications.

Specified by:
notifications_sendEmail in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipientIds - up to 100 user ids to which the message is to be sent
subject - the subject of the notification email (optional)
fbml - markup to be sent to the specified users via email; only a stripped-down set of FBML that allows only tags that result in text, links and linebreaks is allowed
Returns:
a comma-separated list of the IDs of the users to whom the email was successfully sent
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: notifications.sendEmail

notifications_sendEmailPlain

@Deprecated
public java.lang.String notifications_sendEmailPlain(java.util.Collection<java.lang.Long> recipientIds,
                                                                java.lang.CharSequence subject,
                                                                java.lang.CharSequence text)
                                              throws FacebookException,
                                                     java.io.IOException
Deprecated. provided for legacy support only, please use one of the alternate notifications_sendEmail calls.

Sends a notification email to the specified users, who must have added your application. You can send five (5) emails to a user per day. Requires a session key for desktop applications, which may only send email to the person whose session it is. This method does not require a session for Web applications.

Specified by:
notifications_sendEmailPlain in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipientIds - up to 100 user ids to which the message is to be sent
subject - the subject of the notification email (optional)
text - the plain text to send to the specified users via email
Returns:
a comma-separated list of the IDs of the users to whom the email was successfully sent
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: notifications.sendEmail

extractString

public static java.lang.String extractString(org.w3c.dom.Node d)
Deprecated. 
Extracts a String from a T consisting entirely of a String.

Returns:
the String

admin_setAppProperties

public boolean admin_setAppProperties(java.util.Map<ApplicationProperty,java.lang.String> properties)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set application properties. The properties are used by Facebook to describe the configuration of your application. This method cannot be called by desktop apps.

Specified by:
admin_setAppProperties in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
properties - a Map containing the properties to set.
Returns:
true if the properties are set successfully false otherwise
Throws:
FacebookException
java.io.IOException

admin_getAppProperties

@Deprecated
public org.json.JSONObject admin_getAppProperties(java.util.Collection<ApplicationProperty> properties)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. use admin_getAppPropertiesMap() instead

Description copied from interface: IFacebookRestClient
Retrieve application properties. The properties are used by Facebook to describe the configuration of your application. This method cannot be called by desktop apps.

Specified by:
admin_getAppProperties in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
properties - a collection indicating the properties you are interested in retrieving.
Returns:
a JSONObject that maps ApplicationProperty names to their corresponding values.
Throws:
FacebookException
java.io.IOException

admin_getAppPropertiesMap

public java.util.Map<ApplicationProperty,java.lang.String> admin_getAppPropertiesMap(java.util.Collection<ApplicationProperty> properties)
                                                                              throws FacebookException,
                                                                                     java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieve application properties. The properties are used by Facebook to describe the configuration of your application. This method cannot be called by desktop apps.

Specified by:
admin_getAppPropertiesMap in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
properties - a collection indicating the properties you are interested in retrieving.
Returns:
a mapping of ApplicationProperty's to the corresponding values that are set for those properties. Properties are represented as strings, so properties that are of boolean type will have a value of "true" when true, and "false" when false. The properties returned will never be null, an unset property is represented by an empty string.
Throws:
FacebookException
java.io.IOException

admin_getAppPropertiesAsString

public java.lang.String admin_getAppPropertiesAsString(java.util.Collection<ApplicationProperty> properties)
                                                throws FacebookException,
                                                       java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieve application properties. The properties are used by Facebook to describe the configuration of your application. This method cannot be called by desktop apps.

Specified by:
admin_getAppPropertiesAsString in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
properties - a collection indicating the properties you are interested in retrieving.
Returns:
a JSON-encoded string containing the properties. It is your responsibility to parse the string. Details can be found at http://wiki.developers.facebook.com/index.php/Admin.getAppProperties
Throws:
FacebookException
java.io.IOException

data_getCookies

public org.w3c.dom.Document data_getCookies()
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get all cookies for the currently logged-in user.

Specified by:
data_getCookies in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
all cookies for the current user.
Throws:
FacebookException
java.io.IOException

data_getCookies

public org.w3c.dom.Document data_getCookies(java.lang.Long userId)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get all cookies for the specified user.

Specified by:
data_getCookies in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user to get the cookies for.
Returns:
all cookies for the specified user.
Throws:
FacebookException
java.io.IOException

data_getCookies

public org.w3c.dom.Document data_getCookies(java.lang.String name)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get a specific cookie for the currently logged-in user.

Specified by:
data_getCookies in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
name - the name of the cookie to retrieve.
Returns:
the specified cookie for the current user.
Throws:
FacebookException
java.io.IOException

data_getCookies

public org.w3c.dom.Document data_getCookies(java.lang.Long userId,
                                            java.lang.CharSequence name)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get a specific cookie for the specified user.

Specified by:
data_getCookies in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user to get the cookies for.
name - the name of the cookie to retrieve.
Returns:
the specified cookie for the specified user.
Throws:
FacebookException
java.io.IOException

data_setCookie

public boolean data_setCookie(java.lang.String name,
                              java.lang.String value)
                       throws FacebookException,
                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set a cookie for the current user. It will use the default expiry (never), and the default path ("/").

Specified by:
data_setCookie in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
name - the name of the cookie to set
value - the value of the cookie
Returns:
true if the cookie is set successfully, false otherwise.
Throws:
FacebookException
java.io.IOException

data_setCookie

public boolean data_setCookie(java.lang.String name,
                              java.lang.String value,
                              java.lang.String path)
                       throws FacebookException,
                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set a cookie for the current user, under the specified path. It will use the default expiry (never).

Specified by:
data_setCookie in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
name - the name of the cookie to set
value - the value of the cookie
path - the path relative to the application's callback URL, with which the cookie should be associated. (default is "/")
Returns:
true if the cookie is set successfully, false otherwise.
Throws:
FacebookException
java.io.IOException

data_setCookie

public boolean data_setCookie(java.lang.Long userId,
                              java.lang.CharSequence name,
                              java.lang.CharSequence value)
                       throws FacebookException,
                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set a cookie for the specified user. The cookie will use the default expiry (never) and the default path ("/").

Specified by:
data_setCookie in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user to set the cookie for.
name - the name of the cookie to set
value - the value of the cookie
Returns:
true if the cookie is set successfully, false otherwise.
Throws:
FacebookException
java.io.IOException

data_setCookie

public boolean data_setCookie(java.lang.Long userId,
                              java.lang.CharSequence name,
                              java.lang.CharSequence value,
                              java.lang.CharSequence path)
                       throws FacebookException,
                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set a cookie for the specified user, with the specified path. The cookie will use the default expiry (never).

Specified by:
data_setCookie in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user to set the cookie for.
name - the name of the cookie to set
value - the value of the cookie
path - the path relative to the application's callback URL, with which the cookie should be associated. (default is "/")
Returns:
true if the cookie is set successfully, false otherwise.
Throws:
FacebookException
java.io.IOException

data_setCookie

public boolean data_setCookie(java.lang.String name,
                              java.lang.String value,
                              java.lang.Long expires)
                       throws FacebookException,
                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set a cookie for the current user, with the specified expiration date. It will use the default path ("/").

Specified by:
data_setCookie in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
name - the name of the cookie to set
value - the value of the cookie
expires - the timestamp at which the cookie expires
Returns:
true if the cookie is set successfully, false otherwise.
Throws:
FacebookException
java.io.IOException

data_setCookie

public boolean data_setCookie(java.lang.String name,
                              java.lang.String value,
                              java.lang.Long expires,
                              java.lang.String path)
                       throws FacebookException,
                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set a cookie for the current user, with the specified expiration date and path.

Specified by:
data_setCookie in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
name - the name of the cookie to set
value - the value of the cookie
expires - the timestamp at which the cookie expires
path - the path relative to the application's callback URL, with which the cookie should be associated. (default is "/")
Returns:
true if the cookie is set successfully, false otherwise.
Throws:
FacebookException
java.io.IOException

data_setCookie

public boolean data_setCookie(java.lang.Long userId,
                              java.lang.CharSequence name,
                              java.lang.CharSequence value,
                              java.lang.Long expires)
                       throws FacebookException,
                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set a cookie for the specified user, with the specified expiration date. The cookie will use the default path ("/").

Specified by:
data_setCookie in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user to set the cookie for.
name - the name of the cookie to set
value - the value of the cookie
expires - the timestamp at which the cookie expires
Returns:
true if the cookie is set successfully, false otherwise.
Throws:
FacebookException
java.io.IOException

data_setCookie

public boolean data_setCookie(java.lang.Long userId,
                              java.lang.CharSequence name,
                              java.lang.CharSequence value,
                              java.lang.Long expires,
                              java.lang.CharSequence path)
                       throws FacebookException,
                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set a cookie for the specified user, with the specified expiration date and path.

Specified by:
data_setCookie in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user to set the cookie for.
name - the name of the cookie to set
value - the value of the cookie
expires - the timestamp at which the cookie expires
path - the path relative to the application's callback URL, with which the cookie should be associated. (default is "/")
Returns:
true if the cookie is set successfully, false otherwise.
Throws:
FacebookException
java.io.IOException

feed_publishTemplatizedAction

public boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Publishes a Mini-Feed story describing an action taken by the logged-in user, and publishes aggregating News Feed stories to their friends. Stories are identified as being combinable if they have matching templates and substituted values.

Specified by:
feed_publishTemplatizedAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
titleTemplate - markup (up to 60 chars, tags excluded) for the feed story's title section. Must include the token {actor}.
Returns:
whether the action story was successfully published; false in case of a permission error
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

feed_publishTemplatizedAction

public boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate,
                                             java.lang.Long pageActorId)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Publishes a Mini-Feed story describing an action taken by the logged-in user (or, if pageActorId is provided, page), and publishes aggregating News Feed stories to the user's friends/page's fans. Stories are identified as being combinable if they have matching templates and substituted values.

Specified by:
feed_publishTemplatizedAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
titleTemplate - markup (up to 60 chars, tags excluded) for the feed story's title section. Must include the token {actor}.
pageActorId - (optional) the ID of the page into whose mini-feed the story is being published
Returns:
whether the action story was successfully published; false in case of a permission error
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

feed_publishTemplatizedAction

public boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate,
                                             java.util.Map<java.lang.String,java.lang.CharSequence> titleData,
                                             java.lang.CharSequence bodyTemplate,
                                             java.util.Map<java.lang.String,java.lang.CharSequence> bodyData,
                                             java.lang.CharSequence bodyGeneral,
                                             java.util.Collection<java.lang.Long> targetIds,
                                             java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> images,
                                             java.lang.Long pageActorId)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Publishes a Mini-Feed story describing an action taken by the logged-in user (or, if pageActorId is provided, page), and publishes aggregating News Feed stories to the user's friends/page's fans. Stories are identified as being combinable if they have matching templates and substituted values.

Specified by:
feed_publishTemplatizedAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
titleTemplate - markup (up to 60 chars, tags excluded) for the feed story's title section. Must include the token {actor}.
titleData - (optional) contains token-substitution mappings for tokens that appear in titleTemplate. Should not contain mappings for the {actor} or {target} tokens. Required if tokens other than {actor} or {target} appear in the titleTemplate.
bodyTemplate - (optional) markup to be displayed in the feed story's body section. can include tokens, of the form {token}, to be substituted using bodyData.
bodyData - (optional) contains token-substitution mappings for tokens that appear in bodyTemplate. Required if the bodyTemplate contains tokens other than {actor} and {target}.
bodyGeneral - (optional) additional body markup that is not aggregated. If multiple instances of this templated story are combined together, the markup in the bodyGeneral of one of their stories may be displayed.
targetIds - The user ids of friends of the actor, used for stories about a direct action between the actor and these targets of his/her action. Required if either the titleTemplate or bodyTemplate includes the token {target}.
images - (optional) additional body markup that is not aggregated. If multiple instances of this templated story are combined together, the markup in the bodyGeneral of one of their stories may be displayed.
pageActorId - (optional) the ID of the page into whose mini-feed the story is being published
Returns:
whether the action story was successfully published; false in case of a permission error
Throws:
FacebookException
java.io.IOException
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

profile_setFBML

public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
                               java.lang.CharSequence profileActionFbmlMarkup)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for the profile box and profile actions for the logged-in user. Refer to the FBML documentation for a description of the markup and its role in various contexts.

Specified by:
profile_setFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
profileFbmlMarkup - the FBML for the profile box
profileActionFbmlMarkup - the FBML for the profile actions
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFBML

profile_setFBML

public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
                               java.lang.CharSequence profileActionFbmlMarkup,
                               java.lang.Long profileId)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for the profile box and profile actions for the user or page profile with ID profileId. Refer to the FBML documentation for a description of the markup and its role in various contexts.

Specified by:
profile_setFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
profileFbmlMarkup - the FBML for the profile box
profileActionFbmlMarkup - the FBML for the profile actions
profileId - a page or user ID (null for the logged-in user)
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFBML

profile_setFBML

public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
                               java.lang.CharSequence profileActionFbmlMarkup,
                               java.lang.CharSequence mobileFbmlMarkup)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for the profile box, profile actions, and mobile devices for the current user. Refer to the FBML documentation for a description of the markup and its role in various contexts.

Specified by:
profile_setFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
profileFbmlMarkup - the FBML for the profile box
profileActionFbmlMarkup - the FBML for the profile actions
mobileFbmlMarkup - the FBML for mobile devices
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFBML

profile_setFBML

public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
                               java.lang.CharSequence profileActionFbmlMarkup,
                               java.lang.CharSequence mobileFbmlMarkup,
                               java.lang.Long profileId)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for the profile box, profile actions, and mobile devices for the user or page profile with ID profileId. Refer to the FBML documentation for a description of the markup and its role in various contexts.

Specified by:
profile_setFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
profileFbmlMarkup - the FBML for the profile box
profileActionFbmlMarkup - the FBML for the profile actions
mobileFbmlMarkup - the FBML for mobile devices
profileId - a page or user ID (null for the logged-in user)
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFBML

profile_setMobileFBML

public boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup)
                              throws FacebookException,
                                     java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for the logged-in user's profile on mobile devices.

Specified by:
profile_setMobileFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFBML

profile_setMobileFBML

public boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup,
                                     java.lang.Long profileId)
                              throws FacebookException,
                                     java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for the user or page profile with ID profileId on mobile devices.

Specified by:
profile_setMobileFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
profileId - a page or user ID (null for the logged-in user)
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFBML

profile_setProfileActionFBML

public boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for profile actions for the logged-in user.

Specified by:
profile_setProfileActionFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFBML

profile_setProfileActionFBML

public boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup,
                                            java.lang.Long profileId)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for profile actions for the user or page profile with ID profileId.

Specified by:
profile_setProfileActionFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
profileId - a page or user ID (null for the logged-in user)
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFBML

profile_setProfileFBML

public boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for a profile box on the logged-in user's profile.

Specified by:
profile_setProfileFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFbml

profile_setProfileFBML

public boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup,
                                      java.lang.Long profileId)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for a profile box on the user or page profile with ID profileId.

Specified by:
profile_setProfileFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
profileId - a page or user ID (null for the logged-in user)
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Profile.setFbml

profile_setFBML

public boolean profile_setFBML(java.lang.Long userId,
                               java.lang.String profileFbml,
                               java.lang.String actionFbml,
                               java.lang.String mobileFbml)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Specified by:
profile_setFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.profile_setFBML(Long, String, String, String, String)

profile_setFBML

public boolean profile_setFBML(java.lang.Long userId,
                               java.lang.String profileFbml,
                               java.lang.String actionFbml,
                               java.lang.String mobileFbml,
                               java.lang.String profileMain)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the FBML for a user's profile, including the content for both the profile box and the profile actions.

Specified by:
profile_setFBML in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - The user ID for the user whose profile you are updating, or the page ID in case of a Page. If this parameter is not specified, then it defaults to the session user. Note: This parameter applies only to Web applications and is required by them only if the session_key is not specified. Facebook returns an error if this parameter is passed by a desktop application.
profileFbml - The FBML intended for the application profile box that appears on the Boxes tab on the user's profile.
actionFbml - The FBML intended for the user's profile actions. A profile action is the link under the user's profile picture that allows a user to take an action with your application. Note: This attribute is being deprecated when the new profile design launches in July 2008, as there are no third party profile action links on the new profile.
mobileFbml - The FBML intended for mobile devices.
profileMain - The FBML intended for the narrow profile box on the Wall and Info tabs of the user's profile. Note: This attribute applies only to the new profile design that launched July 2008.
Returns:
a boolean indicating whether the FBML was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Profile.setFBML

friends_get

public org.w3c.dom.Document friends_get(java.lang.Long friendListId)
                                 throws FacebookException,
                                        java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieves the friends of the currently logged in user that are members of the friends list with ID friendListId.

Specified by:
friends_get in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
friendListId - the friend list for which friends should be fetched. if null, all friends will be retrieved.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.get

friends_getLists

public org.w3c.dom.Document friends_getLists()
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieves the friend lists of the currently logged in user.

Specified by:
friends_getLists in interface IFacebookRestClient<org.w3c.dom.Document>
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.getLists

admin_setAppProperties

public boolean admin_setAppProperties(ApplicationPropertySet properties)
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 
Sets several property values for an application. The properties available are analogous to the ones editable via the Facebook Developer application. A session is not required to use this method. This method cannot be called from a desktop app.

Specified by:
admin_setAppProperties in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
properties - an ApplicationPropertySet that is translated into a single JSON String.
Returns:
a boolean indicating whether the properties were successfully set
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.setAppProperties

admin_getAppPropertiesAsSet

public ApplicationPropertySet admin_getAppPropertiesAsSet(java.util.EnumSet<ApplicationProperty> properties)
                                                   throws FacebookException,
                                                          java.io.IOException
Deprecated. 
Gets property values previously set for an application on either the Facebook Developer application or the with the admin.setAppProperties call. A session is not required to use this method.

Specified by:
admin_getAppPropertiesAsSet in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
properties - an enumeration of the properties to get
Returns:
an ApplicationPropertySet
Throws:
FacebookException
java.io.IOException
See Also:
ApplicationProperty, Developers Wiki: Admin.getAppProperties

application_getPublicInfo

public org.w3c.dom.Document application_getPublicInfo(java.lang.Long applicationId,
                                                      java.lang.String applicationKey,
                                                      java.lang.String applicationCanvas)
                                               throws FacebookException,
                                                      java.io.IOException
Deprecated. 
Gets the public information about the specified application. Only one of the 3 parameters needs to be specified.

Specified by:
application_getPublicInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
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.
Returns:
the public information for the specified application
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Application.getPublicInfo

application_getPublicInfoById

public org.w3c.dom.Document application_getPublicInfoById(java.lang.Long applicationId)
                                                   throws FacebookException,
                                                          java.io.IOException
Deprecated. 
Gets the public information about the specified application, by application id.

Specified by:
application_getPublicInfoById in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
applicationId - the id of the application to get the info for.
Returns:
the public information for the specified application
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Application.getPublicInfo

application_getPublicInfoByApiKey

public org.w3c.dom.Document application_getPublicInfoByApiKey(java.lang.String applicationKey)
                                                       throws FacebookException,
                                                              java.io.IOException
Deprecated. 
Gets the public information about the specified application, by API key.

Specified by:
application_getPublicInfoByApiKey in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
applicationKey - the public API key of the application to get the info for.
Returns:
the public information for the specified application
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Application.getPublicInfo

application_getPublicInfoByCanvasName

public org.w3c.dom.Document application_getPublicInfoByCanvasName(java.lang.String applicationCanvas)
                                                           throws FacebookException,
                                                                  java.io.IOException
Deprecated. 
Gets the public information about the specified application, by canvas-page name.

Specified by:
application_getPublicInfoByCanvasName in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
applicationCanvas - the canvas-page name of the application to get the info for.
Returns:
the public information for the specified application
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Application.getPublicInfo

admin_getAllocation

public int admin_getAllocation(java.lang.String allocationType)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get your application's current allocation of the specified type of request (i.e. the number of requests that it is currently allowed to send per user per day).

Specified by:
admin_getAllocation in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
allocationType - the type of request to check the allocation for. Currently: "notifications_per_day" and "requests_per_day", "emails_per_day", "email_disable_message_location"
Returns:
the number of the specified type of requests that the application is permitted to send per user per day.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getAllocation

public int admin_getAllocation(AllocationType allocationType)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get your application's current allocation of the specified type of request (i.e. the number of requests that it is currently allowed to send per user per day).

Specified by:
admin_getAllocation in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
allocationType - the type of request to check the allocation for. Currently: "notifications_per_day" and "requests_per_day", "emails_per_day", "email_disable_message_location"
Returns:
the number of the specified type of requests that the application is permitted to send per user per day.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getNotificationAllocation

@Deprecated
public int admin_getNotificationAllocation()
                                    throws FacebookException,
                                           java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Get your application's current allocation for notifications (i.e. the total number of notifications that it is allowed to send per user, per day).

Specified by:
admin_getNotificationAllocation in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
the number of notifications that the application is permitted to send per user per day.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getRequestAllocation

@Deprecated
public int admin_getRequestAllocation()
                               throws FacebookException,
                                      java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Get your application's current allocation for invites/requests (i.e. the total number of invites/requests that it is allowed to send per user, per day).

Specified by:
admin_getRequestAllocation in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
the number of invites/requests that the application is permitted to send per user per day.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getDailyMetrics

@Deprecated
public org.w3c.dom.Document admin_getDailyMetrics(java.util.Set<Metric> metrics,
                                                             java.util.Date start,
                                                             java.util.Date end)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Retrieve the daily metrics for the current application.

Specified by:
admin_getDailyMetrics in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
metrics - a set specifying the specific metrics to retrieve
start - 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)
Returns:
daily metrics for your app, for each day in the specified range
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getDailyMetrics

admin_getDailyMetrics

@Deprecated
public org.w3c.dom.Document admin_getDailyMetrics(java.util.Set<Metric> metrics,
                                                             long start,
                                                             long end)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Retrieve the daily metrics for the current application.

Specified by:
admin_getDailyMetrics in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
metrics - a set specifying the specific metrics to retrieve
start - the starting date to retrieve data for (range must not exceed 30 days), the accepted unit of time is milliseconds, NOT seconds
end - the ending to to retrive data for (range must not exceed 30 days), the accepted unit of time is milliseconds, NOT seconds
Returns:
daily metrics for your app, for each day in the specified range
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getDailyMetrics

admin_getMetrics

public org.w3c.dom.Document admin_getMetrics(java.util.Set<Metric> metrics,
                                             java.util.Date start,
                                             java.util.Date end,
                                             long period)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieve metrics for the current application.

Specified by:
admin_getMetrics in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
metrics - a set specifying the specific metrics to retrieve
start - 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
Returns:
daily metrics for your app, for each day in the specified range
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getMetrics

admin_getMetrics

public org.w3c.dom.Document admin_getMetrics(java.util.Set<Metric> metrics,
                                             long start,
                                             long end,
                                             long period)
                                      throws FacebookException,
                                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieve the daily metrics for the current application.

Specified by:
admin_getMetrics in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
metrics - a set specifying the specific metrics to retrieve
start - the starting date to retrieve data for (range must not exceed 30 days), the accepted unit of time is milliseconds, NOT seconds
end - the ending to to retrive data for (range must not exceed 30 days), the accepted unit of time is milliseconds, NOT seconds
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
Returns:
daily metrics for your app, for each day in the specified range
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getMetrics

permissions_checkGrantedApiAccess

public org.w3c.dom.Document permissions_checkGrantedApiAccess(java.lang.String apiKey)
                                                       throws FacebookException,
                                                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Check to see what permissions have been granted to specified external application by the current application. For example: Application A grants permission on users.getInfo to Application B, Applicatio A can then call permissions_checkGrantedApiAccess(B) and will recieve "users.getInfo" as a result.

Specified by:
permissions_checkGrantedApiAccess in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
apiKey - the API key of the application to check permissions for.
Returns:
a list of all API methods that the specified application has permission to use.
Throws:
FacebookException
java.io.IOException

permissions_checkAvailableApiAccess

public org.w3c.dom.Document permissions_checkAvailableApiAccess(java.lang.String apiKey)
                                                         throws FacebookException,
                                                                java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Check to see what permissions have been granted to current app by the specified external application. For example: Application A grants permission on users.getInfo to Application B, Applicatio B can then call permissions_checkAvailableApiAccess(A) and will recieve "users.getInfo" as a result.

Specified by:
permissions_checkAvailableApiAccess in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
apiKey - the API key of the application to check for permissions from.
Returns:
a list of all API methods that the specified application has permission to use.
Throws:
FacebookException
java.io.IOException

permissions_grantApiAccess

public boolean permissions_grantApiAccess(java.lang.String apiKey,
                                          java.util.Set<FacebookMethod> methods)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Grant permission to an external app to make API calls on behalf of the current application.

Specified by:
permissions_grantApiAccess in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
apiKey - the API-key of the application to grant permission to.
methods - the API methods to allow the other application to call. If the set is empty or null, permission is granted for all API methods.
Returns:
true if the operation succeeds false otherwise
Throws:
FacebookException
java.io.IOException

permissions_grantFullApiAccess

public boolean permissions_grantFullApiAccess(java.lang.String apiKey)
                                       throws FacebookException,
                                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Grant permission to an external app to make API calls on behalf of the current application. Access is granted to the full set of allowed API methods.

Specified by:
permissions_grantFullApiAccess in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
apiKey - the API-key of the application to grant permission to.
Returns:
true if the operation succeeds false otherwise
Throws:
FacebookException
java.io.IOException

permissions_revokeApiAccess

public boolean permissions_revokeApiAccess(java.lang.String apiKey)
                                    throws FacebookException,
                                           java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Revokes the specified application's permission to call API methods on behalf of the current app.

Specified by:
permissions_revokeApiAccess in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
apiKey - the API key of the application to remove permissions for.
Returns:
true if the operation succeeds false otherwise
Throws:
FacebookException
java.io.IOException

auth_promoteSession

public java.lang.String auth_promoteSession()
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Generate a key for the current session that can be used to authenticate client-side components.

Specified by:
auth_promoteSession in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
the key.
Throws:
FacebookException
java.io.IOException

auth_revokeAuthorization

public boolean auth_revokeAuthorization()
                                 throws FacebookException,
                                        java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
If this method is called for the logged in user, then no further API calls can be made on that user's behalf until the user decides to authorize the application again.

Specified by:
auth_revokeAuthorization in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException
java.io.IOException

auth_expireSession

public boolean auth_expireSession()
                           throws FacebookException,
                                  java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Expires the curently active session.

Specified by:
auth_expireSession in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException
java.io.IOException

marketplace_createListing

public java.lang.Long marketplace_createListing(java.lang.Long listingId,
                                                boolean showOnProfile,
                                                java.lang.String attributes,
                                                java.lang.Long userId)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Create a new marketplace listing, or modify an existing one.

Specified by:
marketplace_createListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the id of the listing to modify, set to 0 (or null) to create a new listing.
showOnProfile - set to true to show the listing on the user's profile (Facebook appears to ignore this setting).
attributes - JSON-encoded attributes for this listing.
userId - the id of the user to create the listing for.
Returns:
the id of the listing created (or modified).
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_createListing

public java.lang.Long marketplace_createListing(java.lang.Long listingId,
                                                boolean showOnProfile,
                                                MarketListing listing,
                                                java.lang.Long userId)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Create a new marketplace listing, or modify an existing one.

Specified by:
marketplace_createListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the id of the listing to modify, set to 0 (or null) to create a new listing.
showOnProfile - set to true to show the listing on the user's profile, set to false to prevent the listing from being shown on the profile.
listing - the listing to publish.
userId - the id of the user to create the listing for.
Returns:
the id of the listing created (or modified).
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_createListing

public java.lang.Long marketplace_createListing(boolean showOnProfile,
                                                MarketListing listing,
                                                java.lang.Long userId)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Create a new marketplace listing.

Specified by:
marketplace_createListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
showOnProfile - set to true to show the listing on the user's profile, set to false to prevent the listing from being shown on the profile.
listing - the listing to publish.
userId - the id of the user to create the listing for.
Returns:
the id of the listing created (or modified).
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

marketplace_removeListing

public boolean marketplace_removeListing(java.lang.Long listingId,
                                         java.lang.Long userId)
                                  throws FacebookException,
                                         java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Remove a marketplace listing. The create_listing extended permission is required.

Specified by:
marketplace_removeListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the listing to be removed
userId - the id of the user removing the listing
Returns:
boolean indicating whether the listing was removed
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission), FacebookExtendedPerm.MARKETPLACE, Developers Wiki: marketplace.removeListing

marketplace_removeListing

public boolean marketplace_removeListing(java.lang.Long listingId,
                                         MarketListingStatus status,
                                         java.lang.Long userId)
                                  throws FacebookException,
                                         java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Remove a listing from the marketplace by id.

Specified by:
marketplace_removeListing in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
listingId - the id of the listing to remove.
status - the status to apply when removing the listing. Should be one of MarketListingStatus.SUCCESS or MarketListingStatus.NOT_SUCCESS.
userId - the id of the user removing the listing.
Returns:
true if the listing was successfully removed false otherwise
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.

photos_addTag

public boolean photos_addTag(java.lang.Long photoId,
                             java.lang.Long taggedUserId,
                             java.lang.Double pct,
                             java.lang.Double pct2,
                             java.lang.Long userId)
                      throws FacebookException,
                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Adds a tag to a photo.

Specified by:
photos_addTag in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photoId - The photo id of the photo to be tagged.
taggedUserId - The list of photos from which to extract photo tags.
pct - The horizontal position of the tag, as a percentage from 0 to 100, from the left of the photo.
pct2 - The vertical position of the tag, as a percentage from 0 to 100, from the top of the photo.
userId - the user tagging the photo.
Returns:
whether the tag was successfully added.
Throws:
FacebookException
java.io.IOException

photos_addTag

public boolean photos_addTag(java.lang.Long photoId,
                             java.lang.CharSequence tagText,
                             java.lang.Double pct,
                             java.lang.Double pct2,
                             java.lang.Long userId)
                      throws FacebookException,
                             java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Adds a tag to a photo.

Specified by:
photos_addTag in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photoId - The photo id of the photo to be tagged.
tagText - The text of the tag.
pct - The horizontal position of the tag, as a percentage from 0 to 100, from the left of the photo.
pct2 - The list of photos from which to extract photo tags.
userId - the user tagging the photo.
Returns:
whether the tag was successfully added.
Throws:
FacebookException
java.io.IOException

photos_createAlbum

public org.w3c.dom.Document photos_createAlbum(java.lang.String albumName,
                                               java.lang.Long userId)
                                        throws FacebookException,
                                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Creates an album.

Specified by:
photos_createAlbum in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
albumName - The list of photos from which to extract photo tags.
userId - the id of the user creating the album.
Returns:
the created album
Throws:
FacebookException
java.io.IOException

photos_createAlbum

public org.w3c.dom.Document photos_createAlbum(java.lang.String name,
                                               java.lang.String description,
                                               java.lang.String location,
                                               java.lang.Long userId)
                                        throws FacebookException,
                                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Creates an album.

Specified by:
photos_createAlbum in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
name - The album name.
description - The album description (optional).
location - The album location (optional).
userId - the id of the user creating the album.
Returns:
an array of photo objects.
Throws:
FacebookException
java.io.IOException

photos_upload

public org.w3c.dom.Document photos_upload(java.lang.Long userId,
                                          java.io.File photo)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user uploading the photo
photo - an image file
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Photos.upload

photos_upload

public org.w3c.dom.Document photos_upload(java.lang.Long userId,
                                          java.io.File photo,
                                          java.lang.String caption)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user uploading the photo
photo - an image file
caption - a description of the image contents
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Photos.upload

photos_upload

public org.w3c.dom.Document photos_upload(java.lang.Long userId,
                                          java.io.File photo,
                                          java.lang.Long albumId)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user uploading the photo
photo - an image file
albumId - the album into which the photo should be uploaded
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Photos.upload

photos_upload

public org.w3c.dom.Document photos_upload(java.lang.Long userId,
                                          java.io.File photo,
                                          java.lang.String caption,
                                          java.lang.Long albumId)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user uploading the photo
photo - an image file
caption - a description of the image contents
albumId - the album into which the photo should be uploaded
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
java.io.IOException
See Also:
Developers wiki: Photos.upload

users_isAppAdded

@Deprecated
public boolean users_isAppAdded(java.lang.Long userId)
                         throws FacebookException,
                                java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Retrieves an indicator of whether the specified user has added the application associated with the _apiKey.

Specified by:
users_isAppAdded in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the if of the user to check for.
Returns:
boolean indicating whether the user has added the app
Throws:
FacebookException
java.io.IOException
See Also:
Users.isAppAdded

users_isAppUser

public boolean users_isAppUser()
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Specified by:
users_isAppUser in interface IFacebookRestClient<org.w3c.dom.Document>
Throws:
FacebookException
java.io.IOException
See Also:
Users.isAppUser, IFacebookRestClient.users_isAppUser(Long)

users_isAppUser

public boolean users_isAppUser(java.lang.Long userId)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Returns whether the user (either the session user or user specified by uid) has authorized the calling application.

Specified by:
users_isAppUser in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - The user ID of the user who may have authorized the application. If this parameter is not specified, then it defaults to the session user. Note: This parameter applies only to Web applications and is required by them only if the session_key is not specified. Facebook ignores this parameter if it is passed by a desktop application.
Throws:
FacebookException
java.io.IOException
See Also:
Users.isAppUser

users_setStatus

public boolean users_setStatus(java.lang.String status,
                               java.lang.Long userId)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sets the spedified user's Facebook status. Requires the status_update extended permission.

Specified by:
users_setStatus in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
whether the status was successfully set
Throws:
FacebookException
java.io.IOException
See Also:
IFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission), FacebookExtendedPerm.STATUS_UPDATE, http://wiki.developers.facebook.com/index.php/Users.setStatus

users_setStatus

public boolean users_setStatus(java.lang.String newStatus,
                               boolean clear,
                               java.lang.Long userId)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set the user's profile status message. This requires that the user has granted the application the 'status_update' permission, otherwise the call will return an error. You can use 'users_hasAppPermission' to check to see if the user has granted your app the abbility to update their status.

Specified by:
users_setStatus in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
newStatus - the new status message to set.
clear - whether or not to clear the old status message.
userId - the id of the user to set the status for.
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.
See Also:
http://wiki.developers.facebook.com/index.php/Users.setStatus

users_setStatus

public boolean users_setStatus(java.lang.String newStatus,
                               boolean clear,
                               boolean statusIncludesVerb,
                               java.lang.Long userId)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Set the user's profile status message. This requires that the user has granted the application the 'status_update' permission, otherwise the call will return an error. You can use 'users_hasAppPermission' to check to see if the user has granted your app the abbility to update their status

Specified by:
users_setStatus in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
newStatus - the new status message to set.
clear - whether or not to clear the old status message.
statusIncludesVerb - set to true if you do not want the Facebook Platform to automatically prepend "is " to your status message set to false if you want the "is " prepended (default behavior)
userId - the id of the user to set the status for.
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException - if an error happens when executing the API call.
java.io.IOException - if a communication/network error happens.
See Also:
http://wiki.developers.facebook.com/index.php/Users.setStatus

feed_getRegisteredTemplateBundleByID

public org.w3c.dom.Document feed_getRegisteredTemplateBundleByID(java.lang.Long id)
                                                          throws FacebookException,
                                                                 java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Retrieve a template bundle by id.

Specified by:
feed_getRegisteredTemplateBundleByID in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
id - the id to retrieve.
Returns:
the specified template bundle definition.
Throws:
FacebookException
java.io.IOException

feed_getRegisteredTemplateBundles

public org.w3c.dom.Document feed_getRegisteredTemplateBundles()
                                                       throws FacebookException,
                                                              java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get a list of all registered template bundles for your application.

Specified by:
feed_getRegisteredTemplateBundles in interface IFacebookRestClient<org.w3c.dom.Document>
Returns:
a list describing all registered feed templates.
Throws:
FacebookException
java.io.IOException

feed_publishUserAction

public java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Publishes a user action to the feed. See: http://wiki.developers.facebook.com/index.php/Feed.publishUserAction

Specified by:
feed_publishUserAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
bundleId - the template bundle-id to use to render the feed.
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException
java.io.IOException

feed_publishUserAction

public java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId,
                                                java.util.Map<java.lang.String,java.lang.String> templateData,
                                                java.util.List<java.lang.Long> targetIds,
                                                java.lang.String bodyGeneral)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Publishes a user action to the feed. See: http://wiki.developers.facebook.com/index.php/Feed.publishUserAction

Specified by:
feed_publishUserAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
bundleId - the template bundle-id to use to render the feed.
templateData - a map of name-value pairs to substitute into the template being rendered.
targetIds - the ids of individuals that are the target of this action.
bodyGeneral - additional markup to include in the feed story.
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException
java.io.IOException

feed_registerTemplateBundle

public java.lang.Long feed_registerTemplateBundle(java.lang.String template)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Registers a feed template. See: http://wiki.developers.facebook.com/index.php/Feed.registerTemplateBundle

Specified by:
feed_registerTemplateBundle in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
template - the template to store
Returns:
the id which Facebook assigns to your template
Throws:
FacebookException
java.io.IOException

feed_registerTemplateBundle

public java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Registers a feed template. See: http://wiki.developers.facebook.com/index.php/Feed.registerTemplateBundle

Specified by:
feed_registerTemplateBundle in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
templates - the templates to store
Returns:
the id which Facebook assigns to your template
Throws:
FacebookException
java.io.IOException

feed_registerTemplateBundle

public java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates,
                                                  java.util.Collection<BundleStoryTemplate> shortTemplates,
                                                  BundleStoryTemplate longTemplate)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Registers a feed template. See: http://wiki.developers.facebook.com/index.php/Feed.registerTemplateBundle

Specified by:
feed_registerTemplateBundle in interface IFacebookRestClient<org.w3c.dom.Document>
longTemplate - the long template to store.
Returns:
the id which Facebook assigns to your template
Throws:
FacebookException
java.io.IOException

feed_registerTemplateBundle

@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.lang.String template,
                                                             java.lang.String shortTemplate,
                                                             java.lang.String longTemplate)
                                           throws FacebookException,
                                                  java.io.IOException
Deprecated. 

Description copied from interface: IFacebookRestClient
Registers a feed template. See: http://wiki.developers.facebook.com/index.php/Feed.registerTemplateBundle

Specified by:
feed_registerTemplateBundle in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
template - the template to store.
shortTemplate - the short template to store.
longTemplate - the long template to store.
Returns:
the id which Facebook assigns to your template
Throws:
FacebookException
java.io.IOException

profile_getInfo

public org.w3c.dom.Document profile_getInfo(java.lang.Long userId)
                                     throws FacebookException,
                                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get the specified user's application-info section.

Specified by:
profile_getInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the id of the user to get the info section for.
Returns:
the user's application-info section.
Throws:
FacebookException
java.io.IOException

profile_getInfoOptions

public org.w3c.dom.Document profile_getInfoOptions(java.lang.String field)
                                            throws FacebookException,
                                                   java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Get the options associated with the specified field for an application info section.

Specified by:
profile_getInfoOptions in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
field - the field to get the options for.
Returns:
the options associated with the specified field for an application info section.
Throws:
FacebookException
java.io.IOException

profile_setInfo

public void profile_setInfo(java.lang.Long userId,
                            java.lang.String title,
                            boolean textOnly,
                            java.util.List<ProfileInfoField> fields)
                     throws FacebookException,
                            java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Configures an application info section that the specified user can install on the Info tab of her profile. See: http://wiki.developers.facebook.com/index.php/Profile.setInfo

Specified by:
profile_setInfo in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
userId - the user to set the info section for.
title - the title to use for the section.
textOnly - set to true if your info fields are text only. set to false for thumbnail mode.
fields - the fields to set.
Throws:
FacebookException
java.io.IOException

profile_setInfoOptions

public void profile_setInfoOptions(ProfileInfoField field)
                            throws FacebookException,
                                   java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Specifies the objects for a field for an application info section. These options populate the typeahead for a thumbnail. See: http://wiki.developers.facebook.com/index.php/Profile.setInfoOptions

Specified by:
profile_setInfoOptions in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
field - the field to set.
Throws:
FacebookException
java.io.IOException

photos_addTags

public org.w3c.dom.Document photos_addTags(java.lang.Long photoId,
                                           java.util.Collection<PhotoTag> tags,
                                           java.lang.Long userId)
                                    throws FacebookException,
                                           java.io.IOException
Deprecated. 
Adds several tags to a photo.

Specified by:
photos_addTags in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
photoId - The photo id of the photo to be tagged.
tags - A list of PhotoTags.
userId - the id of the user adding the tags.
Returns:
a list of booleans indicating whether the tag was successfully added.
Throws:
FacebookException
java.io.IOException

addParam

public static boolean addParam(java.lang.String name,
                               java.lang.Long value,
                               java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> params)
Deprecated. 

addParamIfNotBlank

public static boolean addParamIfNotBlank(java.lang.String name,
                                         java.lang.Long value,
                                         java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> params)
Deprecated. 

addParam

public static boolean addParam(java.lang.String name,
                               java.lang.CharSequence value,
                               java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> params)
Deprecated. 

addParamIfNotBlank

public static boolean addParamIfNotBlank(java.lang.String name,
                                         java.lang.CharSequence value,
                                         java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> params)
Deprecated. 

setServerUrl

public void setServerUrl(java.lang.String newUrl)
Deprecated. 
Description copied from interface: IFacebookRestClient
Override the default Facebook API server used for making requests. Can be used to tell the client to run against the

Specified by:
setServerUrl in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
newUrl - the new URL to use, for example: "http://api.facebook.com/restserver.php"

getDefaultServerUrl

public java.net.URL getDefaultServerUrl()
Deprecated. 
Specified by:
getDefaultServerUrl in interface IFacebookRestClient<org.w3c.dom.Document>

setDefaultServerUrl

public void setDefaultServerUrl(java.net.URL newUrl)
Deprecated. 
Specified by:
setDefaultServerUrl in interface IFacebookRestClient<org.w3c.dom.Document>

extractLong

protected java.lang.Long extractLong(org.w3c.dom.Document doc)
Deprecated. 

liveMessage_send

public java.lang.Boolean liveMessage_send(java.lang.Long recipient,
                                          java.lang.String eventName,
                                          org.json.JSONObject message)
                                   throws FacebookException,
                                          java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sends a message using the LiveMessage API. Note that for the message to be recieved by the recipent, you must set up a FBJS handler function. See http://wiki.developers.facebook.com/index.php/LiveMessage for details.

Specified by:
liveMessage_send in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipient - the id of the user to send the message to.
eventName - the name associated with the FBJS handler you want to recieve your message.
message - the JSON-object to send, the object will be passed to the FBJS handler that you have mapped to 'eventName'. See http://wiki.developers.facebook.com/index.php/LiveMessage for details.
Returns:
true if the message is sent, false otherwise
Throws:
FacebookException
java.io.IOException

feed_deactivateTemplateBundleByID

public boolean feed_deactivateTemplateBundleByID(java.lang.Long bundleId)
                                          throws FacebookException,
                                                 java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Deactivates the specified template bundle.

Specified by:
feed_deactivateTemplateBundleByID in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
bundleId - the id of the bundle to deactivate.
Returns:
true if the call succeeds, false otherwise.
Throws:
FacebookException
java.io.IOException

notifications_send

public void notifications_send(java.util.Collection<java.lang.Long> recipientIds,
                               java.lang.String notification,
                               boolean isAppToUser)
                        throws FacebookException,
                               java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Sends a notification.

Specified by:
notifications_send in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
recipientIds - the ids of the users to send the notification to.
notification - the notification to send.
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Notifications.send

feed_publishUserAction

public java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId,
                                                java.util.Map<java.lang.String,java.lang.String> templateData,
                                                java.util.List<IFeedImage> images,
                                                java.util.List<java.lang.Long> targetIds,
                                                java.lang.String bodyGeneral,
                                                int storySize)
                                         throws FacebookException,
                                                java.io.IOException
Deprecated. 
Description copied from interface: IFacebookRestClient
Publishes a user action to the feed. See: http://wiki.developers.facebook.com/index.php/Feed.publishUserAction

Specified by:
feed_publishUserAction in interface IFacebookRestClient<org.w3c.dom.Document>
Parameters:
bundleId - the template bundle-id to use to render the feed.
templateData - a map of name-value pairs to substitute into the template being rendered.
images - the images to associate with this feed entry
targetIds - the ids of individuals that are the target of this action.
bodyGeneral - additional markup to include in the feed story.
storySize - story size to use. valid values are 1, 2 or 4.
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException
java.io.IOException
See Also:
http://wiki.developers.facebook.com/index.php/Feed.publishUserAction

toString

public static java.lang.String toString(java.lang.CharSequence cs)
Deprecated. 


Copyright © 2008. All Rights Reserved.