com.google.code.facebookapi
Class ExtensibleClient

java.lang.Object
  extended by com.google.code.facebookapi.ExtensibleClient
All Implemented Interfaces:
IFacebookRestClient<java.lang.Object>

public class ExtensibleClient
extends java.lang.Object
implements IFacebookRestClient<java.lang.Object>

Base class for interacting with the Facebook Application Programming Interface (API). Most Facebook API methods map directly to function calls of this class.
For continually updated documentation, please refer to the Developer Wiki.


Field Summary
protected  java.lang.String _apiKey
           
protected  boolean _isDesktop
           
protected  java.lang.String _secret
           
protected  java.net.URL _serverUrl
           
protected  boolean batchMode
           
protected  java.lang.Boolean cacheAppUser
          Deprecated. 
protected  java.lang.Long cacheSessionExpires
           
protected  java.lang.String cacheSessionKey
           
protected  java.lang.Long cacheUserId
           
protected  javax.xml.parsers.DocumentBuilderFactory factory
           
protected static org.apache.commons.logging.Log log
           
protected  java.lang.String permissionsApiKey
           
protected  java.util.List<com.google.code.facebookapi.BatchQuery> queries
           
protected  java.lang.String rawResponse
           
 
Fields inherited from interface com.google.code.facebookapi.IFacebookRestClient
ERROR_TAG, TARGET_API_VERSION
 
Constructor Summary
protected ExtensibleClient(java.lang.String responseFormat, java.lang.String apiKey, java.lang.String secret)
           
protected ExtensibleClient(java.lang.String responseFormat, java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey)
           
protected ExtensibleClient(java.lang.String responseFormat, java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey, boolean sessionSecret)
           
protected ExtensibleClient(java.lang.String responseFormat, java.lang.String apiKey, java.lang.String secret, java.lang.String sessionKey, boolean sessionSecret, CommunicationStrategy communicationStrategy)
           
 
Method Summary
 int admin_getAllocation(AllocationType allocationType)
          Get your application's current allocation of the specified type of request (i.e.
 int admin_getAllocation(AllocationType allocationType, java.lang.Long userId)
          Get your application's current allocation of the specified type of request (i.e.
 int admin_getAllocation(java.lang.String allocationType)
          Get your application's current allocation of the specified type of request (i.e.
 int admin_getAllocation(java.lang.String allocationType, java.lang.Long userId)
          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.Collection<ApplicationProperty> properties)
          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)
          Retrieve application properties.
 java.util.Map<ApplicationProperty,java.lang.String> admin_getAppPropertiesMap(java.util.Collection<ApplicationProperty> properties)
          Retrieve application properties.
 java.lang.Object admin_getDailyMetrics(java.util.Set<Metric> metrics, java.util.Date start, java.util.Date end)
          Deprecated. 
 java.lang.Object admin_getDailyMetrics(java.util.Set<Metric> metrics, long start, long end)
          Deprecated. 
 java.lang.Object admin_getMetrics(java.util.Set<Metric> metrics, java.util.Date start, java.util.Date end, long period)
          Retrieve metrics for the current application.
 java.lang.Object admin_getMetrics(java.util.Set<Metric> metrics, long start, long end, long period)
          Retrieve the daily metrics for the current application.
 int admin_getNotificationAllocation()
          Deprecated. 
 int admin_getRequestAllocation()
          Deprecated. 
 boolean admin_setAppProperties(ApplicationPropertySet properties)
          Sets several property values for an application.
 boolean admin_setAppProperties(java.util.Map<ApplicationProperty,java.lang.String> properties)
          Set application properties.
 java.lang.Object application_getPublicInfo(java.lang.Long applicationId, java.lang.String applicationKey, java.lang.String applicationCanvas)
          Gets the public information about the specified application.
 java.lang.Object application_getPublicInfoByApiKey(java.lang.String applicationKey)
          Gets the public information about the specified application, by API key.
 java.lang.Object application_getPublicInfoByCanvasName(java.lang.String applicationCanvas)
          Gets the public information about the specified application, by canvas-page name.
 java.lang.Object application_getPublicInfoById(java.lang.Long applicationId)
          Gets the public information about the specified application, by application id.
 java.lang.String auth_createToken()
          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()
          Expires the curently active session.
 java.lang.String auth_getSession(java.lang.String authToken)
          Call this function to retrieve the session information after your user has logged in.
 java.lang.String auth_getSession(java.lang.String authToken, boolean generateSessionSecret)
          Call this function to retrieve the session information after your user has logged in.
 java.lang.String auth_promoteSession()
          Generate a key for the current session that can be used to authenticate client-side components.
 boolean auth_revokeAuthorization()
          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.
 boolean auth_revokeExtendedPermission(Permission perm)
           
 boolean auth_revokeExtendedPermission(Permission perm, java.lang.Long userId)
          Revokes the specified extended permission for the selected user.
 java.lang.String batch_run(java.lang.String methods, boolean serial)
          Executes a batch of queries.
 void beginBatch()
          Starts a batch of queries.
 void beginPermissionsMode(java.lang.String apiKey)
          Begins permissions mode, and allows the current application to begin making requests on behalf of the application associated with the specified API key.
protected  java.lang.String callMethod(IFacebookMethod method, java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> paramPairs)
          Call the specified method, with the given parameters, and return a DOM tree with the results.
protected  java.lang.String callMethod(IFacebookMethod method, java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> paramPairs, java.lang.String fileName, java.io.InputStream fileStream)
           
protected  java.lang.String callMethod(IFacebookMethod method, Pair<java.lang.String,java.lang.CharSequence>... paramPairs)
          Call the specified method, with the given parameters, and return a DOM tree with the results.
protected  java.lang.String callMethod(java.lang.String format, IFacebookMethod method, java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> paramPairs, java.lang.String fileName, java.io.InputStream fileStream)
           
 int connect_getUnconnectedFriendsCount()
          This method returns the number of friends of the current user who have accounts on your site, but have not yet connected their accounts.
 java.lang.Object connect_registerUsers(java.util.Collection<java.util.Map<java.lang.String,java.lang.String>> accounts)
          This method is used to create an association between an external user account and a Facebook user account.
 java.lang.Object connect_unregisterUsers(java.util.Collection<java.lang.String> email_hashes)
          This method allows a site to unregister a previously registered account (using connect.registerUsers).
 java.lang.Long dashboard_addGlobalNews(java.util.Collection<DashboardNewsItem> newsItems)
          Non-imageUrl method signature form.
 java.lang.Long dashboard_addGlobalNews(java.util.Collection<DashboardNewsItem> newsItems, java.lang.String imageUrl)
          Submits global news items for all users of the app.
 boolean dashboard_clearGlobalNews()
          Clears all global news items from application.
 boolean dashboard_clearGlobalNews(java.util.Collection<java.lang.Long> newsIds)
          Clears specific global news items from application.
 java.lang.Object dashboard_multiAddNews(java.util.Collection<java.lang.Long> userIds, java.util.Collection<DashboardNewsItem> newsItems)
          Non-imageUrl method signature form.
 java.lang.Object dashboard_multiAddNews(java.util.Collection<java.lang.Long> userIds, java.util.Collection<DashboardNewsItem> newsItems, java.lang.String imageUrl)
          Adds all of the supplied news items to each of the users specified.
 java.lang.Object dashboard_multiClearNews(java.util.Collection<java.lang.Long> userIds)
          Clears all of the news items associated to the specified users.
 java.lang.Object dashboard_multiClearNews(java.util.Map<java.lang.Long,java.util.Collection<java.lang.Long>> userIdToNewsIdMap)
          Removes the referenced news items against each of the users specified.
 java.util.Set<java.lang.Long> dashboard_multiIncrementCount(java.util.Collection<java.lang.Long> userIds)
          Increments the dashboard bookmark counter by one for the given set of users.
 java.lang.Long dashboard_publishActivity(DashboardActivityItem activityItem)
          Non-imageUrl method signature form.
 java.lang.Long dashboard_publishActivity(DashboardActivityItem activityItem, java.lang.String imageUrl)
          Submits activity for a given user as it will appear in the dashboard section, 'what your friends are doing'.
 long data_createObject(java.lang.String objectType, java.util.Map<java.lang.String,java.lang.String> properties)
          Create object in Data Store
 void data_createObjectType(java.lang.String name)
          An object type is like a "table" in SQL terminology, or a "class" in object-oriented programming concepts.
 void data_defineAssociation(java.lang.String associationName, AssociationType associationType, AssociationInfo associationInfo1, AssociationInfo associationInfo2, java.lang.String inverseName)
           
 void data_defineObjectProperty(java.lang.String objectType, java.lang.String propertyName, PropertyType propertyType)
           
 void data_deleteObject(long objectId)
          Delete object in Data Store
 void data_deleteObjects(java.util.Collection<java.lang.Long> objectIds)
          Delete multiple objects in Data Store WARNING: This method seems to fail when it comes across the first object that it can't find.
 void data_dropObjectType(java.lang.String objectType)
          Remove a previously defined object type.
 long data_getAssociatedObjectCount(java.lang.String associationName, long objectId)
          Returns count of object ids that are associated with specified object.
 java.lang.Object data_getAssociationDefinition(java.lang.String name)
           
 java.lang.Object data_getAssociationDefinitions()
           
 java.lang.Object data_getCookies()
          Get all cookies for the currently logged-in user.
 java.lang.Object data_getCookies(java.lang.Long userId)
          Get all cookies for the specified user.
 java.lang.Object data_getCookies(java.lang.Long userId, java.lang.CharSequence name)
          Get a specific cookie for the specified user.
 java.lang.Object data_getCookies(java.lang.String name)
          Get a specific cookie for the currently logged-in user.
 java.lang.Object data_getObject(long objectId)
           
 java.lang.Object data_getObjectProperty(long objectId, java.lang.String propertyName)
           
 java.lang.Object data_getObjects(java.util.Collection<java.lang.Long> objectIds)
           
 java.lang.Object data_getObjectType(java.lang.String objectType)
           
 java.lang.Object data_getObjectTypes()
           
 java.lang.String data_getUserPreference(int prefId)
          Lookup a single preference value for the current user.
 java.lang.Object data_getUserPreferences()
          Get a map containing all preference values set for the current user.
 void data_removeAssociatedObjects(java.lang.String associationName, long objectId)
          The name of this function may be misleading, but it actually removes associations between any other objects and a specified object.
 void data_removeAssociation(java.lang.String associationName, long object1Id, long object2Id)
          Removes an association between two object identifiers.
 void data_renameAssociation(java.lang.String name, java.lang.String newName, java.lang.String newAlias1, java.lang.String newAlias2)
          Rename a previously defined association.
 void data_renameObjectProperty(java.lang.String objectType, java.lang.String propertyName, java.lang.String newPropertyName)
           
 void data_renameObjectType(java.lang.String objectType, java.lang.String newName)
           
 void data_setAssociation(java.lang.String associationName, long object1Id, long object2Id, java.lang.String data, java.util.Date associationTime)
          Create an association between two objects
 boolean data_setCookie(java.lang.Long userId, java.lang.CharSequence name, java.lang.CharSequence value)
          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)
          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)
          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)
          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)
          Set a cookie for the current user.
 boolean data_setCookie(java.lang.String name, java.lang.String value, java.lang.Long expires)
          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)
          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)
          Set a cookie for the current user, under the specified path.
 void data_setObjectProperty(long objectId, java.lang.String propertyName, java.lang.String value)
           
 void data_setUserPreference(int prefId, java.lang.String value)
          Set a user-preference value.
 void data_setUserPreferences(java.util.Map<java.lang.Integer,java.lang.String> values, boolean replace)
          Set multiple user-preferences values.
 void data_undefineAssociation(java.lang.String name)
          Remove a previously defined association.
 void data_undefineObjectProperty(java.lang.String objectType, java.lang.String propertyName)
           
 void data_updateObject(long objectId, java.util.Map<java.lang.String,java.lang.String> properties, boolean replace)
          Update properties of an existing object in Data Store
protected  java.lang.String encodeMethods(java.util.List<com.google.code.facebookapi.BatchQuery> queryList)
           
 void endPermissionsMode()
          Terminates permissions mode.
 boolean events_cancel(java.lang.Long eid, java.lang.String cancel_message)
          Cancels an event.
 java.lang.Long events_create(java.util.Map<java.lang.String,java.lang.String> event_info)
          Creates an event on behalf of the user if the application has an active session key for that user; otherwise it creates an event on behalf of the application.
 boolean events_edit(java.lang.Long eid, java.util.Map<java.lang.String,java.lang.String> event_info)
          Edits the details of an existing event.
 java.lang.Object events_get(java.lang.Long userId, java.util.Collection<java.lang.Long> eventIds, java.lang.Long startTime, java.lang.Long endTime)
          Returns all visible events according to the filters specified.
 java.lang.Object events_get(java.lang.Long userId, java.util.Collection<java.lang.Long> eventIds, java.lang.Long startTime, java.lang.Long endTime, java.lang.String rsvp_status)
          Returns all visible events according to the filters specified.
 java.lang.Object events_getMembers(java.lang.Long eventId)
          Retrieves the membership list of an event
 boolean events_rsvp(java.lang.Long eid, java.lang.String rsvp_status)
          Sets a user's RSVP status for an event.
 java.util.List<java.lang.String> executeBatch(boolean serial)
          Returns a list of String raw responses which will be further broken down by the adapters into the actual individual responses.
protected  boolean extractBoolean(java.lang.String result)
          Extracts a Boolean from a result that consists of a Boolean only.
protected  boolean extractBoolean10(java.lang.String result)
           
protected  int extractInt(java.lang.String result)
          Extracts an Long from a result that consists of an Long only.
protected  long extractLong(java.lang.String result)
          Extracts an Long from a result that consists of a Long only.
protected  java.lang.String extractString(java.lang.String result)
          Extracts a String from a T consisting entirely of a String.
 void fbml_deleteCustomTags(java.util.Collection<java.lang.String> names)
          Deletes one or more custom tags you previously registered for the calling application with fbml.registerCustomTags.
 java.lang.Object fbml_getCustomTags(java.lang.String appId)
          Returns the custom tag definitions for tags that were previously defined using fbml.registerCustomTags.
 boolean fbml_refreshImgSrc(java.lang.String imageUrl)
          Recaches the image with the specified imageUrl.
 boolean fbml_refreshImgSrc(java.net.URL imageUrl)
          Recaches the image with the specified imageUrl.
 boolean fbml_refreshRefUrl(java.lang.String url)
          Recaches the referenced url.
 boolean fbml_refreshRefUrl(java.net.URL url)
          Recaches the referenced url.
 void fbml_registerCustomTags(java.util.Collection<org.json.JSONObject> tags)
          Registers custom tags you can include in your that applications' FBML markup.
 boolean fbml_setRefHandle(java.lang.String handle, java.lang.String fbmlMarkup)
          Associates a "handle" with FBML markup so that the handle can be used within the fb:ref FBML tag.
 boolean feed_deactivateTemplateBundleByID(java.lang.Long bundleId)
          Deprecated. 
 java.lang.Object feed_getRegisteredTemplateBundleByID(java.lang.Long id)
          Deprecated. 
 java.lang.Object feed_getRegisteredTemplateBundles()
          Deprecated. 
 boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate)
          Deprecated. 
 boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate, java.lang.Long pageActorId)
          Deprecated. 
 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. 
 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 takes a Long for the actorId paramter.
 boolean feed_publishTemplatizedAction(java.lang.Long actorId, java.lang.CharSequence titleTemplate)
          Deprecated. 
 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. 
 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. 
 boolean feed_PublishTemplatizedAction(TemplatizedAction action)
          Deprecated. 
 java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId)
          Deprecated. 
 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. 
 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. 
 java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates)
          Deprecated. 
 java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates, java.util.Collection<BundleStoryTemplate> shortTemplates, BundleStoryTemplate longTemplate)
          Deprecated. 
 java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates, java.util.Collection<BundleStoryTemplate> shortTemplates, BundleStoryTemplate longTemplate, java.util.List<BundleActionLink> actionLinks)
          Deprecated. 
 java.lang.Long feed_registerTemplateBundle(java.lang.String template)
          Deprecated. 
 java.lang.Long feed_registerTemplateBundle(java.lang.String template, java.lang.String shortTemplate, java.lang.String longTemplate)
          Deprecated. 
 java.lang.Object fql_query(java.lang.CharSequence query)
          Retrieves the results of a Facebook Query Language query
 java.lang.Object friends_areFriends(java.util.Collection<java.lang.Long> userIds1, java.util.Collection<java.lang.Long> userIds2)
          Retrieves whether pairs of users are friends.
 java.lang.Object friends_areFriends(long userId1, long userId2)
          Retrieves whether two users are friends.
 java.lang.Object friends_get()
          Retrieves the friends of the currently logged in user.
 java.lang.Object friends_get(java.lang.Long uid)
          Retrieves the friends uid.
 java.lang.Object friends_getAppUsers()
          Retrieves the friends of the currently logged in user, who are also users of the calling application.
 java.lang.Object friends_getList(java.lang.Long friendListId)
          Retrieves the friends of the currently logged in user that are members of the friends list with ID friendListId.
 java.lang.Object friends_getLists()
          Retrieves the friend lists of the currently logged in user.
 java.lang.Object friends_getMutualFriends(java.lang.Long targetId)
          Returns the Facebook user IDs of the mutual friends between the source user and target user.
 java.lang.Object friends_getMutualFriends(java.lang.Long sourceId, java.lang.Long targetId)
          Returns the Facebook user IDs of the mutual friends between the source user and target user.
 java.lang.String getApiKey()
           
 java.lang.Boolean getCacheAppUser()
          Deprecated. 
 java.lang.Long getCacheSessionExpires()
           
 java.lang.String getCacheSessionKey()
           
 java.lang.Long getCacheUserId()
           
 CommunicationStrategy getCommunicationStrategy()
           
 int getConnectTimeout()
          Deprecated. 
 java.util.List<com.google.code.facebookapi.BatchQuery> getQueries()
           
 java.lang.String getRawResponse()
          Returns a string representation for the last API response recieved from Facebook, exactly as sent by the API server.
 int getReadTimeout()
          Deprecated. 
 java.lang.String getResponseFormat()
          The response format in which results to FacebookMethod calls are returned
 java.lang.String getSecret()
           
 java.net.URL getServerUrl()
           
 java.lang.Object groups_get(java.lang.Long userId, java.util.Collection<java.lang.Long> groupIds)
          Retrieves the groups associated with a user
 java.lang.Object groups_getMembers(java.lang.Number groupId)
          Retrieves the membership list of a group
protected  void handleFeedImages(java.util.List<Pair<java.lang.String,java.lang.CharSequence>> params, java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> images)
          Adds image parameters
 int intl_uploadNativeStrings(java.util.Map<java.lang.String,java.lang.String> native_strings)
          Lets you insert text strings in their native language into the Facebook Translations database so they can be translated.
 boolean isBatchMode()
           
 boolean isDesktop()
          Check to see if the client is running in desktop-app mode
 java.lang.Long links_post(java.lang.Long userId, java.lang.String url, java.lang.String comment)
          Posts a link to the specified user's Wall.
 java.lang.Boolean liveMessage_send(java.lang.Long recipient, java.lang.String eventName, org.json.JSONObject message)
          Sends a message using the LiveMessage API.
 java.lang.Object notifications_get()
          Deprecated. 
 java.util.Collection<java.lang.String> notifications_send(java.lang.CharSequence notification)
          Deprecated. 
 java.util.Collection<java.lang.String> notifications_send(java.util.Collection<java.lang.Long> recipientIds, java.lang.CharSequence notification)
          Deprecated. 
 java.net.URL notifications_send(java.util.Collection<java.lang.Long> recipientIds, java.lang.CharSequence notification, java.lang.CharSequence email)
          Deprecated. 
 java.util.Collection<java.lang.String> notifications_send(java.util.Collection<java.lang.Long> recipientIds, java.lang.String notification, boolean isAppToUser)
          Deprecated. 
 java.lang.String notifications_sendEmail(java.util.Collection<java.lang.Long> recipients, java.lang.CharSequence subject, java.lang.CharSequence fbml)
          Deprecated. 
 java.util.Collection<java.lang.String> notifications_sendEmail(java.util.Collection<java.lang.Long> recipients, java.lang.CharSequence subject, java.lang.CharSequence text, java.lang.CharSequence fbml)
          Send an e-mail to a set of app-users.
 java.lang.String notifications_sendEmailPlain(java.util.Collection<java.lang.Long> recipients, java.lang.CharSequence subject, java.lang.CharSequence text)
          Deprecated. 
 java.lang.String notifications_sendEmailStr(java.util.Collection<java.lang.Long> recipients, java.lang.CharSequence subject, java.lang.CharSequence fbml, java.lang.CharSequence text)
          Deprecated. 
 java.util.Collection<java.lang.String> notifications_sendEmailToCurrentUser(java.lang.String subject, java.lang.String email, java.lang.String fbml)
          Send an e-mail to the currently logged-in user.
 java.util.Collection<java.lang.String> notifications_sendFbmlEmail(java.util.Collection<java.lang.Long> recipients, java.lang.String subject, java.lang.String fbml)
          Send an e-mail to a set of app-users.
 java.util.Collection<java.lang.String> notifications_sendFbmlEmailToCurrentUser(java.lang.String subject, java.lang.String fbml)
          Send an e-mail to the currently logged-in user.
 java.util.Collection<java.lang.String> notifications_sendTextEmail(java.util.Collection<java.lang.Long> recipients, java.lang.String subject, java.lang.String email)
          Send an e-mail to a set of app-users.
 java.util.Collection<java.lang.String> notifications_sendTextEmailToCurrentUser(java.lang.String subject, java.lang.String email)
          Send an e-mail to the currently logged-in user.
 java.lang.Object pages_getInfo(java.util.Collection<java.lang.Long> pageIds, java.util.Collection<PageProfileField> fields)
          Retrieves the requested profile fields for the Facebook Pages with the given pageIds.
 java.lang.Object pages_getInfo(java.util.Collection<java.lang.Long> pageIds, java.util.Set<java.lang.CharSequence> fields)
          Retrieves the requested profile fields for the Facebook Pages with the given pageIds.
 java.lang.Object pages_getInfo(java.lang.Long userId, java.util.Collection<PageProfileField> fields)
          Retrieves the requested profile fields for the Facebook Pages of the user with the given userId.
 java.lang.Object pages_getInfo(java.lang.Long userId, java.util.Set<java.lang.CharSequence> fields)
          Retrieves the requested profile fields for the Facebook Pages of the user with the given userId.
 boolean pages_isAdmin(java.lang.Long pageId)
          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)
          Checks whether a page has added the application
 boolean pages_isFan(java.lang.Long pageId)
          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)
          Checks whether a user is a fan of the page with the given pageId.
protected static java.util.Map<ApplicationProperty,java.lang.String> parseAppProperties(java.lang.String json)
           
 java.lang.Object payments_getOrders(java.lang.String status, long startTime, long endTime)
          Returns all orders for the given application
 java.lang.Object permissions_checkAvailableApiAccess(java.lang.String apiKey)
          Check to see what permissions have been granted to current app by the specified external application.
 java.lang.Object permissions_checkGrantedApiAccess(java.lang.String apiKey)
          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)
          Grant permission to an external app to make API calls on behalf of the current application.
 boolean permissions_grantFullApiAccess(java.lang.String apiKey)
          Grant permission to an external app to make API calls on behalf of the current application.
 boolean permissions_revokeApiAccess(java.lang.String apiKey)
          Revokes the specified application's permission to call API methods on behalf of the current app.
 boolean photos_addTag(java.lang.String photoId, java.lang.CharSequence tagText, java.lang.Double xPct, java.lang.Double yPct)
          Adds a tag to a photo.
 boolean photos_addTag(java.lang.String photoId, java.lang.CharSequence tagText, java.lang.Double pct, java.lang.Double pct2, java.lang.Long userId)
          Adds a tag to a photo.
 boolean photos_addTag(java.lang.String photoId, java.lang.Long taggedUserId, java.lang.Double xPct, java.lang.Double yPct)
          Adds a tag to a photo.
 boolean photos_addTag(java.lang.String photoId, java.lang.Long taggedUserId, java.lang.Double pct, java.lang.Double pct2, java.lang.Long userId)
          Adds a tag to a photo.
 java.lang.Object photos_addTags(java.lang.String photoId, java.util.Collection<PhotoTag> tags)
          Adds several tags to a photo.
 java.lang.Object photos_addTags(java.lang.String photoId, java.util.Collection<PhotoTag> tags, java.lang.Long userId)
          Adds several tags to a photo.
 java.lang.Object photos_createAlbum(java.lang.String albumName)
          Creates an album.
 java.lang.Object photos_createAlbum(java.lang.String albumName, java.lang.Long userId)
          Creates an album.
 java.lang.Object photos_createAlbum(java.lang.String name, java.lang.String description, java.lang.String location)
          Creates an album.
 java.lang.Object photos_createAlbum(java.lang.String name, java.lang.String description, java.lang.String location, java.lang.Long userId)
          Creates an album.
 java.lang.Object photos_get(java.util.Collection<java.lang.String> photoIds)
          Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 java.lang.Object photos_get(java.lang.Long subjId)
          Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 java.lang.Object photos_get(java.lang.Long subjId, java.util.Collection<java.lang.String> photoIds)
          Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 java.lang.Object photos_get(java.lang.Long subjId, java.lang.String albumId)
          Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 java.lang.Object photos_get(java.lang.Long subjId, java.lang.String albumId, java.util.Collection<java.lang.String> photoIds)
          Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 java.lang.Object photos_getAlbums(java.util.Collection<java.lang.String> albumIds)
          Retrieves album metadata for a list of album IDs.
 java.lang.Object photos_getAlbums(java.lang.Long userId)
          Retrieves album metadata for albums owned by a user.
 java.lang.Object photos_getAlbums(java.lang.Long userId, java.util.Collection<java.lang.String> albumIds)
          Retrieves album metadata.
 java.lang.Object photos_getByAlbum(java.lang.String albumId)
          Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 java.lang.Object photos_getByAlbum(java.lang.String albumId, java.util.Collection<java.lang.String> photoIds)
          Used to retrieve photo objects using the search parameters (one or more of the parameters must be provided).
 java.lang.Object photos_getTags(java.util.Collection<java.lang.String> photoIds)
          Retrieves the tags for the given set of photos.
 java.lang.Object photos_upload(java.io.File photo)
          Uploads a photo to Facebook.
 java.lang.Object photos_upload(java.io.File photo, java.lang.String caption, java.lang.String albumId)
          Uploads a photo to Facebook.
 java.lang.Object photos_upload(java.lang.Long userId, java.io.File photo)
          Uploads a photo to Facebook.
 java.lang.Object photos_upload(java.lang.Long userId, java.io.File photo, java.lang.String caption, java.lang.String albumId)
          Uploads a photo to Facebook.
 java.lang.Object photos_upload(java.lang.Long userId, java.lang.String caption, java.lang.String albumId, java.lang.String fileName, java.io.InputStream fileStream)
          Uploads a photo to Facebook.
 java.lang.Object photos_uploadToAlbum(java.io.File photo, java.lang.String albumId)
          Uploads a photo to Facebook.
 java.lang.Object photos_uploadToAlbum(java.lang.Long userId, java.io.File photo, java.lang.String albumId)
          Uploads a photo to Facebook.
 java.lang.Object photos_uploadWithCaption(java.io.File photo, java.lang.String caption)
          Uploads a photo to Facebook.
 java.lang.Object photos_uploadWithCaption(java.lang.Long userId, java.io.File photo, java.lang.String caption)
          Uploads a photo to Facebook.
protected  java.lang.String postFileRequest(IFacebookMethod method, java.util.SortedMap<java.lang.String,java.lang.String> params, java.lang.String fileName, java.io.InputStream fileStream)
          Helper function for posting a request that includes raw file data, eg photos_upload(java.io.File).
 java.lang.Object profile_getFBML()
          Deprecated. 
 java.lang.Object profile_getFBML(int type)
          Deprecated. 
 java.lang.Object profile_getFBML(int type, java.lang.Long userId)
          Deprecated. 
 java.lang.Object profile_getFBML(java.lang.Long userId)
          Deprecated. 
 java.lang.Object profile_getInfo(java.lang.Long userId)
          Deprecated. 
 java.lang.Object profile_getInfoOptions(java.lang.String field)
          Deprecated. 
 boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup, java.lang.CharSequence profileActionFbmlMarkup)
          Deprecated. 
 boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup, java.lang.CharSequence profileActionFbmlMarkup, java.lang.CharSequence mobileFbmlMarkup)
          Deprecated. 
 boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup, java.lang.CharSequence profileActionFbmlMarkup, java.lang.CharSequence mobileFbmlMarkup, java.lang.Long profileId)
          Deprecated. 
 boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup, java.lang.CharSequence profileActionFbmlMarkup, java.lang.Long profileId)
          Deprecated. 
 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. 
 void profile_setInfo(java.lang.Long userId, java.lang.String title, boolean textOnly, java.util.List<ProfileInfoField> fields)
          Deprecated. 
 void profile_setInfoOptions(ProfileInfoField field)
          Deprecated. 
 boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup)
          Deprecated. 
 boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup, java.lang.Long profileId)
          Deprecated. 
 boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup)
          Deprecated. 
 boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup, java.lang.Long profileId)
          Deprecated. 
 boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup)
          Deprecated. 
 boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup, java.lang.Long profileId)
          Deprecated. 
 void setCacheAppUser(java.lang.Boolean cacheAppUser)
          Deprecated. 
 void setCacheSession(java.lang.String cacheSessionKey, java.lang.Long cacheUserId, java.lang.Long cacheSessionExpires)
           
 void setCacheSessionExpires(java.lang.Long cacheSessionExpires)
           
 void setCacheSessionKey(java.lang.String cacheSessionKey)
           
 void setCacheUserId(java.lang.Long cacheUserId)
           
 void setCommunicationStrategy(CommunicationStrategy communicationStrategy)
           
 void setConnectTimeout(int connectTimeout)
          Deprecated. 
 void setReadTimeout(int readTimeout)
          Deprecated. 
 void setServerUrl(java.lang.String url)
           
 void setServerUrl(java.net.URL url)
          Override the default Facebook API server used for making requests.
 boolean sms_canSend()
          Check to see if the application is permitted to send SMS messages to the current application user.
 boolean sms_canSend(java.lang.Long userId)
          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)
          Send an SMS message to the specified user.
 java.lang.Integer sms_send(java.lang.String message, java.lang.Integer smsSessionId, boolean makeNewSession)
          Send an SMS message to the current application user.
 void sms_sendMessage(java.lang.Long userId, java.lang.CharSequence message)
          Sends a message via SMS to the user identified by userId.
 int sms_sendMessageWithSession(java.lang.Long userId, java.lang.CharSequence message)
          Sends a message via SMS to the user identified by userId, with the expectation that the user will reply.
 java.lang.String stream_addComment(java.lang.String postId, java.lang.String comment, java.lang.Long userId)
           
 boolean stream_addLike(java.lang.String postId, java.lang.Long userId)
           
 java.lang.Object stream_get(java.lang.Long viewerId, java.util.List<java.lang.Long> sourceIds, java.util.Date start, java.util.Date end, java.lang.Integer limit, java.lang.String filterKey, java.util.List<java.lang.String> metadata)
           
 java.lang.Object stream_getComments(java.lang.String postId)
           
 java.lang.Object stream_getFilters(java.lang.Long userId)
           
 java.lang.String stream_publish(java.lang.String message, Attachment attachment, java.util.Collection<BundleActionLink> actionLinks, java.lang.Long targetId, java.lang.Long userId)
           
 boolean stream_remove(java.lang.String postId, java.lang.Long userId)
           
 boolean stream_removeComment(java.lang.String commentId, java.lang.Long userId)
           
 boolean stream_removeLike(java.lang.String postId, java.lang.Long userId)
           
protected  boolean templatizedFeedHandler(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<?,java.net.URL>> pictures, java.lang.String targetIds, java.lang.Long pageId)
          Deprecated. 
protected static java.lang.String toString(java.lang.CharSequence cs)
           
 boolean users_clearStatus()
          Clears the logged-in user's Facebook status.
 java.lang.Object users_getInfo(java.lang.Iterable<java.lang.Long> userIds, java.util.Collection<ProfileField> fields)
          Retrieves the requested info fields for the requested set of users.
 java.lang.Object users_getInfo(java.lang.Iterable<java.lang.Long> userIds, java.util.Set<java.lang.CharSequence> fields)
          Retrieves the requested info fields for the requested set of users.
 long users_getLoggedInUser()
          Retrieves the user ID of the user logged in to this API session
 java.lang.Object users_getStandardInfo(java.util.Collection<java.lang.Long> userIds, java.util.Collection<ProfileField> fields)
          Returns an array of user-specific information for each user identifier passed, limited by the view of the current user.
 java.lang.Object users_getStandardInfo(java.util.Collection<java.lang.Long> userIds, java.util.Set<java.lang.CharSequence> fields)
          Returns an array of user-specific information for each user identifier passed, limited by the view of the current user.
 boolean users_hasAppPermission(Permission perm)
           
 boolean users_hasAppPermission(Permission perm, java.lang.Long userId)
          Checks whether the user has opted in to an extended application permission.
 boolean users_isAppUser()
           
 boolean users_isAppUser(java.lang.Long userId)
          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)
          Sets the logged-in user's Facebook status.
 boolean users_setStatus(java.lang.String newStatus, boolean clear)
          Set the user's profile status message.
 boolean users_setStatus(java.lang.String newStatus, boolean clear, boolean statusIncludesVerb)
          Set the user's profile status message.
 boolean users_setStatus(java.lang.String newStatus, boolean clear, boolean statusIncludesVerb, java.lang.Long userId)
          Set the user's profile status message.
 boolean users_setStatus(java.lang.String newStatus, boolean clear, java.lang.Long userId)
          Set the user's profile status message.
 boolean users_setStatus(java.lang.String status, java.lang.Long userId)
          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

factory

protected javax.xml.parsers.DocumentBuilderFactory factory

_serverUrl

protected java.net.URL _serverUrl

_apiKey

protected final java.lang.String _apiKey

_secret

protected java.lang.String _secret

_isDesktop

protected boolean _isDesktop

cacheSessionKey

protected java.lang.String cacheSessionKey

cacheUserId

protected java.lang.Long cacheUserId

cacheSessionExpires

protected java.lang.Long cacheSessionExpires

rawResponse

protected java.lang.String rawResponse

batchMode

protected boolean batchMode

queries

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

permissionsApiKey

protected java.lang.String permissionsApiKey

cacheAppUser

@Deprecated
protected java.lang.Boolean cacheAppUser
Deprecated. 
Constructor Detail

ExtensibleClient

protected ExtensibleClient(java.lang.String responseFormat,
                           java.lang.String apiKey,
                           java.lang.String secret)

ExtensibleClient

protected ExtensibleClient(java.lang.String responseFormat,
                           java.lang.String apiKey,
                           java.lang.String secret,
                           java.lang.String sessionKey)

ExtensibleClient

protected ExtensibleClient(java.lang.String responseFormat,
                           java.lang.String apiKey,
                           java.lang.String secret,
                           java.lang.String sessionKey,
                           boolean sessionSecret)

ExtensibleClient

protected ExtensibleClient(java.lang.String responseFormat,
                           java.lang.String apiKey,
                           java.lang.String secret,
                           java.lang.String sessionKey,
                           boolean sessionSecret,
                           CommunicationStrategy communicationStrategy)
Method Detail

isBatchMode

public boolean isBatchMode()

getQueries

public java.util.List<com.google.code.facebookapi.BatchQuery> getQueries()

getServerUrl

public java.net.URL getServerUrl()
Specified by:
getServerUrl in interface IFacebookRestClient<java.lang.Object>

setServerUrl

public void setServerUrl(java.net.URL url)
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<java.lang.Object>
Parameters:
url - the new URL to use, for example: "http://api.facebook.com/restserver.php"

setServerUrl

public void setServerUrl(java.lang.String url)
Specified by:
setServerUrl in interface IFacebookRestClient<java.lang.Object>

getConnectTimeout

@Deprecated
public int getConnectTimeout()
Deprecated. 

Specified by:
getConnectTimeout in interface IFacebookRestClient<java.lang.Object>

setConnectTimeout

@Deprecated
public void setConnectTimeout(int connectTimeout)
Deprecated. 

Specified by:
setConnectTimeout in interface IFacebookRestClient<java.lang.Object>

getReadTimeout

@Deprecated
public int getReadTimeout()
Deprecated. 

Specified by:
getReadTimeout in interface IFacebookRestClient<java.lang.Object>

setReadTimeout

@Deprecated
public void setReadTimeout(int readTimeout)
Deprecated. 

Specified by:
setReadTimeout in interface IFacebookRestClient<java.lang.Object>

getCommunicationStrategy

public CommunicationStrategy getCommunicationStrategy()

setCommunicationStrategy

public void setCommunicationStrategy(CommunicationStrategy communicationStrategy)

getResponseFormat

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

Specified by:
getResponseFormat in interface IFacebookRestClient<java.lang.Object>
Returns:
the format: either XML, JSON, or null (API default)

getApiKey

public java.lang.String getApiKey()
Specified by:
getApiKey in interface IFacebookRestClient<java.lang.Object>

getSecret

public java.lang.String getSecret()
Specified by:
getSecret in interface IFacebookRestClient<java.lang.Object>

beginPermissionsMode

public void beginPermissionsMode(java.lang.String apiKey)
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<java.lang.Object>
Parameters:
apiKey - the API key of the application to being making requests for.

endPermissionsMode

public void endPermissionsMode()
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<java.lang.Object>

getCacheAppUser

@Deprecated
public java.lang.Boolean getCacheAppUser()
Deprecated. 

Specified by:
getCacheAppUser in interface IFacebookRestClient<java.lang.Object>

setCacheAppUser

@Deprecated
public void setCacheAppUser(java.lang.Boolean cacheAppUser)
Deprecated. 

Specified by:
setCacheAppUser in interface IFacebookRestClient<java.lang.Object>

setCacheSession

public void setCacheSession(java.lang.String cacheSessionKey,
                            java.lang.Long cacheUserId,
                            java.lang.Long cacheSessionExpires)
Specified by:
setCacheSession in interface IFacebookRestClient<java.lang.Object>

getCacheSessionExpires

public java.lang.Long getCacheSessionExpires()
Specified by:
getCacheSessionExpires in interface IFacebookRestClient<java.lang.Object>

setCacheSessionExpires

public void setCacheSessionExpires(java.lang.Long cacheSessionExpires)

getCacheSessionKey

public java.lang.String getCacheSessionKey()
Specified by:
getCacheSessionKey in interface IFacebookRestClient<java.lang.Object>

setCacheSessionKey

public void setCacheSessionKey(java.lang.String cacheSessionKey)

getCacheUserId

public java.lang.Long getCacheUserId()
Specified by:
getCacheUserId in interface IFacebookRestClient<java.lang.Object>

setCacheUserId

public void setCacheUserId(java.lang.Long cacheUserId)

friends_areFriends

public java.lang.Object friends_areFriends(long userId1,
                                           long userId2)
                                    throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves whether two users are friends.

Specified by:
friends_areFriends in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.areFriends

friends_areFriends

public java.lang.Object friends_areFriends(java.util.Collection<java.lang.Long> userIds1,
                                           java.util.Collection<java.lang.Long> userIds2)
                                    throws FacebookException
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<java.lang.Object>
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.areFriends

fbml_refreshRefUrl

public boolean fbml_refreshRefUrl(java.lang.String url)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Recaches the referenced url.

Specified by:
fbml_refreshRefUrl in interface IFacebookRestClient<java.lang.Object>
Parameters:
url - string representing the URL to refresh
Returns:
boolean indicating whether the refresh succeeded
Throws:
FacebookException

handleFeedImages

protected void handleFeedImages(java.util.List<Pair<java.lang.String,java.lang.CharSequence>> params,
                                java.util.Collection<? extends IPair<? extends java.lang.Object,java.net.URL>> images)
Adds image parameters

Parameters:
params -
images -

auth_getSession

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

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

auth_getSession

public java.lang.String auth_getSession(java.lang.String authToken,
                                        boolean generateSessionSecret)
                                 throws FacebookException
Description copied from interface: IFacebookRestClient
Call this function to retrieve the session information after your user has logged in. Settings generateSessionSecret to true results in a temporary "session" secret being generated by Facebook which you can pass to a desktop client to be used in place of the real application secret. This prevents the need to reveal your application secret to users.

Specified by:
auth_getSession in interface IFacebookRestClient<java.lang.Object>
Parameters:
authToken - the token returned by auth_createToken or passed back to your callback_url.
generateSessionSecret - Create a temporary session secret intended for use by desktop clients
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Auth.getSession

feed_publishTemplatizedAction

@Deprecated
public boolean feed_publishTemplatizedAction(java.lang.Long actorId,
                                                        java.lang.CharSequence titleTemplate)
                                      throws FacebookException
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<java.lang.Object>
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
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

feed_publishTemplatizedAction

@Deprecated
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
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. Stories are identified as being combinable if they have matching templates and substituted values.

Specified by:
feed_publishTemplatizedAction in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers Wiki: Feed.publishTemplatizedAction

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
Deprecated. Use the version that takes a Long for the actorId paramter.

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<java.lang.Object>
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
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

groups_getMembers

public java.lang.Object groups_getMembers(java.lang.Number groupId)
                                   throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the membership list of a group

Specified by:
groups_getMembers in interface IFacebookRestClient<java.lang.Object>
Parameters:
groupId - the group id
Returns:
a T containing four membership lists of 'members', 'admins', 'officers', and 'not_replied'
Throws:
FacebookException

friends_getAppUsers

public java.lang.Object friends_getAppUsers()
                                     throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the friends of the currently logged in user, who are also users of the calling application.

Specified by:
friends_getAppUsers in interface IFacebookRestClient<java.lang.Object>
Returns:
array of friends
Throws:
FacebookException

fql_query

public java.lang.Object fql_query(java.lang.CharSequence query)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the results of a Facebook Query Language query

Specified by:
fql_query in interface IFacebookRestClient<java.lang.Object>
Parameters:
query - : the FQL query statement
Returns:
varies depending on the FQL query
Throws:
FacebookException

groups_get

public java.lang.Object groups_get(java.lang.Long userId,
                                   java.util.Collection<java.lang.Long> groupIds)
                            throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the groups associated with a user

Specified by:
groups_get in interface IFacebookRestClient<java.lang.Object>
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

callMethod

protected java.lang.String callMethod(IFacebookMethod method,
                                      Pair<java.lang.String,java.lang.CharSequence>... paramPairs)
                               throws FacebookException
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

callMethod

protected java.lang.String callMethod(IFacebookMethod method,
                                      java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> paramPairs)
                               throws FacebookException
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

callMethod

protected java.lang.String callMethod(IFacebookMethod method,
                                      java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> paramPairs,
                                      java.lang.String fileName,
                                      java.io.InputStream fileStream)
                               throws FacebookException
Throws:
FacebookException

callMethod

protected java.lang.String callMethod(java.lang.String format,
                                      IFacebookMethod method,
                                      java.util.Collection<Pair<java.lang.String,java.lang.CharSequence>> paramPairs,
                                      java.lang.String fileName,
                                      java.io.InputStream fileStream)
                               throws FacebookException
Throws:
FacebookException

postFileRequest

protected java.lang.String postFileRequest(IFacebookMethod method,
                                           java.util.SortedMap<java.lang.String,java.lang.String> params,
                                           java.lang.String fileName,
                                           java.io.InputStream fileStream)
                                    throws java.io.IOException
Helper function for posting a request that includes raw file data, eg photos_upload(java.io.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(java.io.File)

fbml_refreshRefUrl

public boolean fbml_refreshRefUrl(java.net.URL url)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Recaches the referenced url.

Specified by:
fbml_refreshRefUrl in interface IFacebookRestClient<java.lang.Object>
Parameters:
url - the URL to refresh
Returns:
boolean indicating whether the refresh succeeded
Throws:
FacebookException

users_getStandardInfo

public java.lang.Object users_getStandardInfo(java.util.Collection<java.lang.Long> userIds,
                                              java.util.Collection<ProfileField> fields)
                                       throws FacebookException
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<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Users.getStandardInfo

users_getStandardInfo

public java.lang.Object users_getStandardInfo(java.util.Collection<java.lang.Long> userIds,
                                              java.util.Set<java.lang.CharSequence> fields)
                                       throws FacebookException
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<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Users.getStandardInfo

users_getInfo

public java.lang.Object users_getInfo(java.lang.Iterable<java.lang.Long> userIds,
                                      java.util.Collection<ProfileField> fields)
                               throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the requested info fields for the requested set of users.

Specified by:
users_getInfo in interface IFacebookRestClient<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Users.getInfo

users_getInfo

public java.lang.Object users_getInfo(java.lang.Iterable<java.lang.Long> userIds,
                                      java.util.Set<java.lang.CharSequence> fields)
                               throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the requested info fields for the requested set of users.

Specified by:
users_getInfo in interface IFacebookRestClient<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Users.getInfo

users_getLoggedInUser

public long users_getLoggedInUser()
                           throws FacebookException
Retrieves the user ID of the user logged in to this API session

Specified by:
users_getLoggedInUser in interface IFacebookRestClient<java.lang.Object>
Returns:
the Facebook user ID of the logged-in user
Throws:
FacebookException

isDesktop

public boolean isDesktop()
Description copied from interface: IFacebookRestClient
Check to see if the client is running in desktop-app mode

Specified by:
isDesktop in interface IFacebookRestClient<java.lang.Object>
Returns:
true if the app is running in desktop mode. false otherwise

users_isAppUser

public boolean users_isAppUser()
                        throws FacebookException
Specified by:
users_isAppUser in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
Users.isAppUser, IFacebookRestClient.users_isAppUser(Long)

users_isAppUser

public boolean users_isAppUser(java.lang.Long userId)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
Users.isAppUser

users_setStatus

public boolean users_setStatus(java.lang.String status)
                        throws FacebookException
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<java.lang.Object>
Returns:
whether the status was successfully set
Throws:
FacebookException
See Also:
IFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission), FacebookExtendedPerm.STATUS_UPDATE, http://wiki.developers.facebook.com/index.php/Users.setStatus

users_clearStatus

public boolean users_clearStatus()
                          throws FacebookException
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<java.lang.Object>
Returns:
whether the status was successfully cleared
Throws:
FacebookException
See Also:
IFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission), FacebookExtendedPerm.STATUS_UPDATE, http://wiki.developers.facebook.com/index.php/Users.setStatus

fbml_refreshImgSrc

public boolean fbml_refreshImgSrc(java.lang.String imageUrl)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Recaches the image with the specified imageUrl.

Specified by:
fbml_refreshImgSrc in interface IFacebookRestClient<java.lang.Object>
Parameters:
imageUrl - String representing the image URL to refresh
Returns:
boolean indicating whether the refresh succeeded
Throws:
FacebookException

fbml_refreshImgSrc

public boolean fbml_refreshImgSrc(java.net.URL imageUrl)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Recaches the image with the specified imageUrl.

Specified by:
fbml_refreshImgSrc in interface IFacebookRestClient<java.lang.Object>
Parameters:
imageUrl - the image URL to refresh
Returns:
boolean indicating whether the refresh succeeded
Throws:
FacebookException

friends_get

public java.lang.Object friends_get()
                             throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the friends of the currently logged in user.

Specified by:
friends_get in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.get

friends_get

public java.lang.Object friends_get(java.lang.Long uid)
                             throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the friends uid.

Specified by:
friends_get in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.get

friends_getMutualFriends

public java.lang.Object friends_getMutualFriends(java.lang.Long targetId)
                                          throws FacebookException
Description copied from interface: IFacebookRestClient
Returns the Facebook user IDs of the mutual friends between the source user and target user. For the source user, you can either specify the source's user ID (the source_id) or use the session key of the logged-in user, but not specify both.

Specified by:
friends_getMutualFriends in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.getMutualFriends

friends_getMutualFriends

public java.lang.Object friends_getMutualFriends(java.lang.Long sourceId,
                                                 java.lang.Long targetId)
                                          throws FacebookException
Description copied from interface: IFacebookRestClient
Returns the Facebook user IDs of the mutual friends between the source user and target user. For the source user, you can either specify the source's user ID (the source_id) or use the session key of the logged-in user, but not specify both.

Specified by:
friends_getMutualFriends in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.getMutualFriends

auth_createToken

public java.lang.String auth_createToken()
                                  throws FacebookException
Description copied from interface: IFacebookRestClient
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<java.lang.Object>
Returns:
an authentication token
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Auth.createToken

getRawResponse

public java.lang.String getRawResponse()
Description copied from interface: IFacebookRestClient
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<java.lang.Object>
Returns:
a String representation of the last API response sent by Facebook

feed_PublishTemplatizedAction

@Deprecated
public boolean feed_PublishTemplatizedAction(TemplatizedAction action)
                                      throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
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<java.lang.Object>
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

feed_publishTemplatizedAction

@Deprecated
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
Deprecated. 

Description copied from interface: IFacebookRestClient
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<java.lang.Object>
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

templatizedFeedHandler

@Deprecated
protected boolean templatizedFeedHandler(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<?,java.net.URL>> pictures,
                                                    java.lang.String targetIds,
                                                    java.lang.Long pageId)
                                  throws FacebookException
Deprecated. 

Throws:
FacebookException

users_hasAppPermission

public boolean users_hasAppPermission(Permission perm)
                               throws FacebookException
Specified by:
users_hasAppPermission in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
IFacebookRestClient.users_hasAppPermission(Permission,Long), Users.hasAppPermission

users_hasAppPermission

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

Specified by:
users_hasAppPermission in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Users.hasAppPermission

users_setStatus

public boolean users_setStatus(java.lang.String newStatus,
                               boolean clear)
                        throws FacebookException
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<java.lang.Object>
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.
See Also:
http://wiki.developers.facebook.com/index.php/Users.setStatus

pages_getInfo

public java.lang.Object pages_getInfo(java.util.Collection<java.lang.Long> pageIds,
                                      java.util.Collection<PageProfileField> fields)
                               throws FacebookException
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<java.lang.Object>
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
See Also:
Developers Wiki: Pages.getInfo

pages_getInfo

public java.lang.Object pages_getInfo(java.util.Collection<java.lang.Long> pageIds,
                                      java.util.Set<java.lang.CharSequence> fields)
                               throws FacebookException
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<java.lang.Object>
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
See Also:
Developers Wiki: Pages.getInfo

pages_getInfo

public java.lang.Object pages_getInfo(java.lang.Long userId,
                                      java.util.Collection<PageProfileField> fields)
                               throws FacebookException
Retrieves the requested profile fields for the Facebook Pages of the user with the given userId.

Specified by:
pages_getInfo in interface IFacebookRestClient<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Pages.getInfo

pages_getInfo

public java.lang.Object pages_getInfo(java.lang.Long userId,
                                      java.util.Set<java.lang.CharSequence> fields)
                               throws FacebookException
Retrieves the requested profile fields for the Facebook Pages of the user with the given userId.

Specified by:
pages_getInfo in interface IFacebookRestClient<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Pages.getInfo

pages_isAppAdded

public boolean pages_isAppAdded(java.lang.Long pageId)
                         throws FacebookException
Checks whether a page has added the application

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

pages_isFan

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

Specified by:
pages_isFan in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers Wiki: Pages.isFan

pages_isFan

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

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

pages_isAdmin

public boolean pages_isAdmin(java.lang.Long pageId)
                      throws FacebookException
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<java.lang.Object>
Parameters:
pageId - the ID of the page
Returns:
true if the logged-in user is an admin
Throws:
FacebookException
See Also:
Developers Wiki: Pages.isAdmin

fbml_setRefHandle

public boolean fbml_setRefHandle(java.lang.String handle,
                                 java.lang.String fbmlMarkup)
                          throws FacebookException
Associates a "handle" with FBML markup so that the handle can be used within the fb:ref FBML tag. A handle is unique within an application and allows an application to publish identical FBML to many user profiles and do subsequent updates without having to republish FBML for each user.

Specified by:
fbml_setRefHandle in interface IFacebookRestClient<java.lang.Object>
Parameters:
handle - - a string, unique within the application, that
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 - if an error happens when executing the API call.
See Also:
Developers Wiki: Fbml.setRefHandle

users_setStatus

public boolean users_setStatus(java.lang.String newStatus,
                               boolean clear,
                               boolean statusIncludesVerb)
                        throws FacebookException
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<java.lang.Object>
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.
See Also:
http://wiki.developers.facebook.com/index.php/Users.setStatus

data_getCookies

public java.lang.Object data_getCookies()
                                 throws FacebookException
Description copied from interface: IFacebookRestClient
Get all cookies for the currently logged-in user.

Specified by:
data_getCookies in interface IFacebookRestClient<java.lang.Object>
Returns:
all cookies for the current user.
Throws:
FacebookException

data_getCookies

public java.lang.Object data_getCookies(java.lang.Long userId)
                                 throws FacebookException
Description copied from interface: IFacebookRestClient
Get all cookies for the specified user.

Specified by:
data_getCookies in interface IFacebookRestClient<java.lang.Object>
Parameters:
userId - the id of the user to get the cookies for.
Returns:
all cookies for the specified user.
Throws:
FacebookException

data_getCookies

public java.lang.Object data_getCookies(java.lang.String name)
                                 throws FacebookException
Description copied from interface: IFacebookRestClient
Get a specific cookie for the currently logged-in user.

Specified by:
data_getCookies in interface IFacebookRestClient<java.lang.Object>
Parameters:
name - the name of the cookie to retrieve.
Returns:
the specified cookie for the current user.
Throws:
FacebookException

data_getCookies

public java.lang.Object data_getCookies(java.lang.Long userId,
                                        java.lang.CharSequence name)
                                 throws FacebookException
Description copied from interface: IFacebookRestClient
Get a specific cookie for the specified user.

Specified by:
data_getCookies in interface IFacebookRestClient<java.lang.Object>
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

data_setCookie

public boolean data_setCookie(java.lang.String name,
                              java.lang.String value)
                       throws FacebookException
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<java.lang.Object>
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

data_setCookie

public boolean data_setCookie(java.lang.String name,
                              java.lang.String value,
                              java.lang.String path)
                       throws FacebookException
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<java.lang.Object>
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

data_setCookie

public boolean data_setCookie(java.lang.Long userId,
                              java.lang.CharSequence name,
                              java.lang.CharSequence value)
                       throws FacebookException
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<java.lang.Object>
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

data_setCookie

public boolean data_setCookie(java.lang.Long userId,
                              java.lang.CharSequence name,
                              java.lang.CharSequence value,
                              java.lang.CharSequence path)
                       throws FacebookException
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<java.lang.Object>
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

data_setCookie

public boolean data_setCookie(java.lang.String name,
                              java.lang.String value,
                              java.lang.Long expires)
                       throws FacebookException
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<java.lang.Object>
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

data_setCookie

public boolean data_setCookie(java.lang.String name,
                              java.lang.String value,
                              java.lang.Long expires,
                              java.lang.String path)
                       throws FacebookException
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<java.lang.Object>
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

data_setCookie

public boolean data_setCookie(java.lang.Long userId,
                              java.lang.CharSequence name,
                              java.lang.CharSequence value,
                              java.lang.Long expires)
                       throws FacebookException
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<java.lang.Object>
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

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
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<java.lang.Object>
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

data_getUserPreference

public java.lang.String data_getUserPreference(int prefId)
                                        throws FacebookException
Description copied from interface: IFacebookRestClient
Lookup a single preference value for the current user.

Specified by:
data_getUserPreference in interface IFacebookRestClient<java.lang.Object>
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.

data_getUserPreferences

public java.lang.Object data_getUserPreferences()
                                         throws FacebookException
Description copied from interface: IFacebookRestClient
Get a map containing all preference values set for the current user.

Specified by:
data_getUserPreferences in interface IFacebookRestClient<java.lang.Object>
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.

data_setUserPreference

public void data_setUserPreference(int prefId,
                                   java.lang.String value)
                            throws FacebookException
Description copied from interface: IFacebookRestClient
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<java.lang.Object>
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.

data_setUserPreferences

public void data_setUserPreferences(java.util.Map<java.lang.Integer,java.lang.String> values,
                                    boolean replace)
                             throws FacebookException
Description copied from interface: IFacebookRestClient
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<java.lang.Object>
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.

data_createObject

public long data_createObject(java.lang.String objectType,
                              java.util.Map<java.lang.String,java.lang.String> properties)
                       throws FacebookException
Description copied from interface: IFacebookRestClient
Create object in Data Store

Specified by:
data_createObject in interface IFacebookRestClient<java.lang.Object>
Parameters:
objectType - Specifies which type of new object to create.
properties - Optional - Name-value pairs of properties this new object has
Returns:
64-bit integer: Numeric identifier (fbid) of newly created object.
Throws:
FacebookException
See Also:
Developers Wiki: Data.createObject

data_updateObject

public void data_updateObject(long objectId,
                              java.util.Map<java.lang.String,java.lang.String> properties,
                              boolean replace)
                       throws FacebookException
Description copied from interface: IFacebookRestClient
Update properties of an existing object in Data Store

Specified by:
data_updateObject in interface IFacebookRestClient<java.lang.Object>
Parameters:
objectId - Numeric identifier (fbid) of the object to modify.
properties - Name-value pairs of new properties.
replace - True if replace all existing properties; false to merge into existing ones.
Throws:
FacebookException
See Also:
Developers Wiki: Data.updateObject

data_deleteObject

public void data_deleteObject(long objectId)
                       throws FacebookException
Description copied from interface: IFacebookRestClient
Delete object in Data Store

Specified by:
data_deleteObject in interface IFacebookRestClient<java.lang.Object>
Parameters:
objectId - Numeric identifier (fbid) of the object to delete.
Throws:
FacebookException
See Also:
IFacebookRestClient.data_deleteObjects(java.util.Collection), Developers Wiki: Data.deleteObject

data_deleteObjects

public void data_deleteObjects(java.util.Collection<java.lang.Long> objectIds)
                        throws FacebookException
Description copied from interface: IFacebookRestClient
Delete multiple objects in Data Store WARNING: This method seems to fail when it comes across the first object that it can't find. It may be more reliable to iterate through your list of objects to delete and call deleteObject individually (although, of course, less efficient).

Specified by:
data_deleteObjects in interface IFacebookRestClient<java.lang.Object>
Parameters:
objectIds - A list of 64-bit integers that are numeric identifiers (fbids) of objects to delete.
Throws:
FacebookException
See Also:
IFacebookRestClient.data_deleteObject(long), Developers Wiki: Data.deleteObjects

data_getObject

public java.lang.Object data_getObject(long objectId)
                                throws FacebookException
Specified by:
data_getObject in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_getObjects

public java.lang.Object data_getObjects(java.util.Collection<java.lang.Long> objectIds)
                                 throws FacebookException
Specified by:
data_getObjects in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_getObjectProperty

public java.lang.Object data_getObjectProperty(long objectId,
                                               java.lang.String propertyName)
                                        throws FacebookException
Specified by:
data_getObjectProperty in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_setObjectProperty

public void data_setObjectProperty(long objectId,
                                   java.lang.String propertyName,
                                   java.lang.String value)
                            throws FacebookException
Specified by:
data_setObjectProperty in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_createObjectType

public void data_createObjectType(java.lang.String name)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
An object type is like a "table" in SQL terminology, or a "class" in object-oriented programming concepts. Each object type has a unique human-readable "name" that will be used to identify itself throughout the API. Each object type also has a list of properties that one has to define individually. Each property is like a "column" in an SQL table, or a "data member" in an object class.

Specified by:
data_createObjectType in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
Developers Wiki: Data.createObjectType

data_dropObjectType

public void data_dropObjectType(java.lang.String objectType)
                         throws FacebookException
Description copied from interface: IFacebookRestClient
Remove a previously defined object type. This will also delete ALL objects of this type. This deletion is NOT reversible.

Specified by:
data_dropObjectType in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
Developers Wiki: Data.dropObjectType

data_renameObjectType

public void data_renameObjectType(java.lang.String objectType,
                                  java.lang.String newName)
                           throws FacebookException
Specified by:
data_renameObjectType in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_defineObjectProperty

public void data_defineObjectProperty(java.lang.String objectType,
                                      java.lang.String propertyName,
                                      PropertyType propertyType)
                               throws FacebookException
Specified by:
data_defineObjectProperty in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_undefineObjectProperty

public void data_undefineObjectProperty(java.lang.String objectType,
                                        java.lang.String propertyName)
                                 throws FacebookException
Specified by:
data_undefineObjectProperty in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_renameObjectProperty

public void data_renameObjectProperty(java.lang.String objectType,
                                      java.lang.String propertyName,
                                      java.lang.String newPropertyName)
                               throws FacebookException
Specified by:
data_renameObjectProperty in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_getObjectTypes

public java.lang.Object data_getObjectTypes()
                                     throws FacebookException
Specified by:
data_getObjectTypes in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_getObjectType

public java.lang.Object data_getObjectType(java.lang.String objectType)
                                    throws FacebookException
Specified by:
data_getObjectType in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_defineAssociation

public void data_defineAssociation(java.lang.String associationName,
                                   AssociationType associationType,
                                   AssociationInfo associationInfo1,
                                   AssociationInfo associationInfo2,
                                   java.lang.String inverseName)
                            throws FacebookException
Specified by:
data_defineAssociation in interface IFacebookRestClient<java.lang.Object>
Parameters:
associationName - Name of forward association to create. This name needs to be unique among all object types and associations defined for this application. This name also needs to be a valid identifier, which is no longer than 32 characters, starting with a letter (a-z) and consisting of only small letters (a-z), numbers (0-9) and/or underscores.
inverseName - Optional - name of backward association, if it is two-way asymmetric. This name needs to be unique among all object types and associations defined for this application. This name also needs to be a valid identifier, which is no longer than 32 characters, starting with a letter (a-z) and consisting of only small letters (a-z), numbers (0-9) and/or underscores.
Throws:
FacebookException
See Also:
Developers Wiki: Data.defineAssociation

data_undefineAssociation

public void data_undefineAssociation(java.lang.String name)
                              throws FacebookException
Description copied from interface: IFacebookRestClient
Remove a previously defined association. This will also delete this type of associations established between objects. This deletion is not reversible.

Specified by:
data_undefineAssociation in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
Developers Wiki: Data.undefineAssociation

data_renameAssociation

public void data_renameAssociation(java.lang.String name,
                                   java.lang.String newName,
                                   java.lang.String newAlias1,
                                   java.lang.String newAlias2)
                            throws FacebookException
Description copied from interface: IFacebookRestClient
Rename a previously defined association. Note that, any renaming here only affects one direction. To change names and aliases for another direction, rename with the name of that direction of association.

Specified by:
data_renameAssociation in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
Developers Wiki: Data.renameAssociation

data_getAssociationDefinition

public java.lang.Object data_getAssociationDefinition(java.lang.String name)
                                               throws FacebookException
Specified by:
data_getAssociationDefinition in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_getAssociationDefinitions

public java.lang.Object data_getAssociationDefinitions()
                                                throws FacebookException
Specified by:
data_getAssociationDefinitions in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

data_setAssociation

public void data_setAssociation(java.lang.String associationName,
                                long object1Id,
                                long object2Id,
                                java.lang.String data,
                                java.util.Date associationTime)
                         throws FacebookException
Description copied from interface: IFacebookRestClient
Create an association between two objects

Specified by:
data_setAssociation in interface IFacebookRestClient<java.lang.Object>
Parameters:
associationName - Name of the association to set.
object1Id - Object identifier 1.
object2Id - Object identifier 2.
data - Optional (can be null) - An arbitrary data (max. 255 characters) to store with this association.
associationTime - Optional (can be null) - Default to association creation time. A timestamp to store with this association. This timestamp is represented as number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). )
Throws:
FacebookException
See Also:
Developers Wiki: Data.setAssociation

data_removeAssociation

public void data_removeAssociation(java.lang.String associationName,
                                   long object1Id,
                                   long object2Id)
                            throws FacebookException
Description copied from interface: IFacebookRestClient
Removes an association between two object identifiers. Note that, the order of these two identifiers matters, unless this is a symmetric two-way association.

Specified by:
data_removeAssociation in interface IFacebookRestClient<java.lang.Object>
Parameters:
associationName - Name of the association.
object1Id - Object identifier 1.
object2Id - Object identifier 2.
Throws:
FacebookException
See Also:
Developers Wiki: Data.removeAssociation

data_removeAssociatedObjects

public void data_removeAssociatedObjects(java.lang.String associationName,
                                         long objectId)
                                  throws FacebookException
Description copied from interface: IFacebookRestClient
The name of this function may be misleading, but it actually removes associations between any other objects and a specified object. Those other associated objects will NOT be removed or deleted. Only the associations will be broken and deleted.

Specified by:
data_removeAssociatedObjects in interface IFacebookRestClient<java.lang.Object>
Parameters:
associationName - Name of the association.
objectId - Object identifier.
Throws:
FacebookException
See Also:
Developers Wiki: Data.removeAssociatedObjects

data_getAssociatedObjectCount

public long data_getAssociatedObjectCount(java.lang.String associationName,
                                          long objectId)
                                   throws FacebookException
Description copied from interface: IFacebookRestClient
Returns count of object ids that are associated with specified object. This function takes constant time to return the count, regardless how many objects are associated.

Specified by:
data_getAssociatedObjectCount in interface IFacebookRestClient<java.lang.Object>
Parameters:
associationName - Name of the association.
objectId - Object identifier.
Returns:
int64 object count
Throws:
FacebookException
See Also:
Developers Wiki: Data.getAssociatedObjectCount

admin_setAppProperties

public boolean admin_setAppProperties(java.util.Map<ApplicationProperty,java.lang.String> properties)
                               throws FacebookException
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<java.lang.Object>
Parameters:
properties - a Map containing the properties to set.
Returns:
true if the properties are set successfully false otherwise
Throws:
FacebookException

admin_getAppProperties

@Deprecated
public org.json.JSONObject admin_getAppProperties(java.util.Collection<ApplicationProperty> properties)
                                           throws FacebookException
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<java.lang.Object>
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

admin_getAppPropertiesMap

public java.util.Map<ApplicationProperty,java.lang.String> admin_getAppPropertiesMap(java.util.Collection<ApplicationProperty> properties)
                                                                              throws FacebookException
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<java.lang.Object>
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

parseAppProperties

protected static java.util.Map<ApplicationProperty,java.lang.String> parseAppProperties(java.lang.String json)

feed_publishTemplatizedAction

@Deprecated
public boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate)
                                      throws FacebookException
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<java.lang.Object>
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
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

feed_publishTemplatizedAction

@Deprecated
public boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate,
                                                        java.lang.Long pageActorId)
                                      throws FacebookException
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<java.lang.Object>
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
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

feed_publishTemplatizedAction

@Deprecated
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
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<java.lang.Object>
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
See Also:
Developers Wiki: Feed.publishTemplatizedAction, Developers Resources: Feed Preview Console

friends_getList

public java.lang.Object friends_getList(java.lang.Long friendListId)
                                 throws FacebookException
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_getList in interface IFacebookRestClient<java.lang.Object>
Parameters:
friendListId - the friend list for which friends should be fetched. if null, all friends will be retrieved.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.get

friends_getLists

public java.lang.Object friends_getLists()
                                  throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the friend lists of the currently logged in user.

Specified by:
friends_getLists in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Friends.getLists

admin_setAppProperties

public boolean admin_setAppProperties(ApplicationPropertySet properties)
                               throws FacebookException
Description copied from interface: IFacebookRestClient
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 by desktop apps.

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

admin_getAppPropertiesAsSet

public ApplicationPropertySet admin_getAppPropertiesAsSet(java.util.Collection<ApplicationProperty> properties)
                                                   throws FacebookException
Description copied from interface: IFacebookRestClient
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. This method cannot be called by desktop apps.

Specified by:
admin_getAppPropertiesAsSet in interface IFacebookRestClient<java.lang.Object>
Parameters:
properties - an enumeration of the properties to get
Returns:
an ApplicationPropertySet
Throws:
FacebookException
See Also:
ApplicationProperty, http://wiki.developers.facebook.com/index.php/Admin.getAppProperties

beginBatch

public void beginBatch()
Description copied from interface: IFacebookRestClient
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<java.lang.Object>

encodeMethods

protected java.lang.String encodeMethods(java.util.List<com.google.code.facebookapi.BatchQuery> queryList)
                                  throws FacebookException
Throws:
FacebookException

batch_run

public java.lang.String batch_run(java.lang.String methods,
                                  boolean serial)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
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<java.lang.Object>
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

application_getPublicInfo

public java.lang.Object application_getPublicInfo(java.lang.Long applicationId,
                                                  java.lang.String applicationKey,
                                                  java.lang.String applicationCanvas)
                                           throws FacebookException
Description copied from interface: IFacebookRestClient
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<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Application.getPublicInfo

application_getPublicInfoById

public java.lang.Object application_getPublicInfoById(java.lang.Long applicationId)
                                               throws FacebookException
Description copied from interface: IFacebookRestClient
Gets the public information about the specified application, by application id.

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

application_getPublicInfoByApiKey

public java.lang.Object application_getPublicInfoByApiKey(java.lang.String applicationKey)
                                                   throws FacebookException
Description copied from interface: IFacebookRestClient
Gets the public information about the specified application, by API key.

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

application_getPublicInfoByCanvasName

public java.lang.Object application_getPublicInfoByCanvasName(java.lang.String applicationCanvas)
                                                       throws FacebookException
Description copied from interface: IFacebookRestClient
Gets the public information about the specified application, by canvas-page name.

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

admin_getAllocation

public int admin_getAllocation(java.lang.String allocationType)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getAllocation

public int admin_getAllocation(java.lang.String allocationType,
                               java.lang.Long userId)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getAllocation

public int admin_getAllocation(AllocationType allocationType)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getAllocation

public int admin_getAllocation(AllocationType allocationType,
                               java.lang.Long userId)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getNotificationAllocation

@Deprecated
public int admin_getNotificationAllocation()
                                    throws FacebookException
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<java.lang.Object>
Returns:
the number of notifications that the application is permitted to send per user per day.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getRequestAllocation

@Deprecated
public int admin_getRequestAllocation()
                               throws FacebookException
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<java.lang.Object>
Returns:
the number of invites/requests that the application is permitted to send per user per day.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

admin_getDailyMetrics

@Deprecated
public java.lang.Object admin_getDailyMetrics(java.util.Set<Metric> metrics,
                                                         java.util.Date start,
                                                         java.util.Date end)
                                       throws FacebookException
Deprecated. 

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

Specified by:
admin_getDailyMetrics in interface IFacebookRestClient<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getDailyMetrics

admin_getDailyMetrics

@Deprecated
public java.lang.Object admin_getDailyMetrics(java.util.Set<Metric> metrics,
                                                         long start,
                                                         long end)
                                       throws FacebookException
Deprecated. 

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

Specified by:
admin_getDailyMetrics in interface IFacebookRestClient<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getDailyMetrics

permissions_checkGrantedApiAccess

public java.lang.Object permissions_checkGrantedApiAccess(java.lang.String apiKey)
                                                   throws FacebookException
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<java.lang.Object>
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

permissions_checkAvailableApiAccess

public java.lang.Object permissions_checkAvailableApiAccess(java.lang.String apiKey)
                                                     throws FacebookException
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<java.lang.Object>
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

permissions_grantApiAccess

public boolean permissions_grantApiAccess(java.lang.String apiKey,
                                          java.util.Set<FacebookMethod> methods)
                                   throws FacebookException
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<java.lang.Object>
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

permissions_grantFullApiAccess

public boolean permissions_grantFullApiAccess(java.lang.String apiKey)
                                       throws FacebookException
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<java.lang.Object>
Parameters:
apiKey - the API-key of the application to grant permission to.
Returns:
true if the operation succeeds false otherwise
Throws:
FacebookException

permissions_revokeApiAccess

public boolean permissions_revokeApiAccess(java.lang.String apiKey)
                                    throws FacebookException
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<java.lang.Object>
Parameters:
apiKey - the API key of the application to remove permissions for.
Returns:
true if the operation succeeds false otherwise
Throws:
FacebookException

auth_promoteSession

public java.lang.String auth_promoteSession()
                                     throws FacebookException
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<java.lang.Object>
Returns:
the key.
Throws:
FacebookException

auth_revokeAuthorization

public boolean auth_revokeAuthorization()
                                 throws FacebookException
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<java.lang.Object>
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException

auth_revokeExtendedPermission

public boolean auth_revokeExtendedPermission(Permission perm)
                                      throws FacebookException
Specified by:
auth_revokeExtendedPermission in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
IFacebookRestClient.auth_revokeExtendedPermission(Permission, Long), http://wiki.developers.facebook.com/index.php/Auth.revokeExtendedPermission

auth_revokeExtendedPermission

public boolean auth_revokeExtendedPermission(Permission perm,
                                             java.lang.Long userId)
                                      throws FacebookException
Description copied from interface: IFacebookRestClient
Revokes the specified extended permission for the selected user. If no user is specified, then the user of the current session is used.

Specified by:
auth_revokeExtendedPermission in interface IFacebookRestClient<java.lang.Object>
Parameters:
perm - The extended permission to revoke.
userId - The user ID of the user whose extended permission you want to revoke. If you don't specify this parameter, then you must have a valid session for the current user, and that session's user will have the specified permission revoked.
Returns:
This method returns true upon success.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Auth.revokeExtendedPermission

auth_expireSession

public boolean auth_expireSession()
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Expires the curently active session.

Specified by:
auth_expireSession in interface IFacebookRestClient<java.lang.Object>
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException

users_setStatus

public boolean users_setStatus(java.lang.String status,
                               java.lang.Long userId)
                        throws FacebookException
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<java.lang.Object>
Returns:
whether the status was successfully set
Throws:
FacebookException
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
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<java.lang.Object>
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.
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
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<java.lang.Object>
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.
See Also:
http://wiki.developers.facebook.com/index.php/Users.setStatus

feed_getRegisteredTemplateBundleByID

@Deprecated
public java.lang.Object feed_getRegisteredTemplateBundleByID(java.lang.Long id)
                                                      throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Retrieve a template bundle by id.

Specified by:
feed_getRegisteredTemplateBundleByID in interface IFacebookRestClient<java.lang.Object>
Parameters:
id - the id to retrieve.
Returns:
the specified template bundle definition.
Throws:
FacebookException

feed_getRegisteredTemplateBundles

@Deprecated
public java.lang.Object feed_getRegisteredTemplateBundles()
                                                   throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Get a list of all registered template bundles for your application.

Specified by:
feed_getRegisteredTemplateBundles in interface IFacebookRestClient<java.lang.Object>
Returns:
a list describing all registered feed templates.
Throws:
FacebookException

feed_publishUserAction

@Deprecated
public java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId)
                                         throws FacebookException
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<java.lang.Object>
Parameters:
bundleId - the template bundle-id to use to render the feed.
Returns:
true if the call succeeds false otherwise
Throws:
FacebookException

feed_publishUserAction

@Deprecated
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
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<java.lang.Object>
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

feed_registerTemplateBundle

@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.lang.String template)
                                           throws FacebookException
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<java.lang.Object>
Parameters:
template - the template to store
Returns:
the id which Facebook assigns to your template
Throws:
FacebookException

feed_registerTemplateBundle

@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates)
                                           throws FacebookException
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<java.lang.Object>
Parameters:
templates - the templates to store
Returns:
the id which Facebook assigns to your template
Throws:
FacebookException

feed_registerTemplateBundle

@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates,
                                                             java.util.Collection<BundleStoryTemplate> shortTemplates,
                                                             BundleStoryTemplate longTemplate)
                                           throws FacebookException
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<java.lang.Object>
longTemplate - the long template to store.
Returns:
the id which Facebook assigns to your template
Throws:
FacebookException

feed_registerTemplateBundle

@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates,
                                                             java.util.Collection<BundleStoryTemplate> shortTemplates,
                                                             BundleStoryTemplate longTemplate,
                                                             java.util.List<BundleActionLink> actionLinks)
                                           throws FacebookException
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<java.lang.Object>
longTemplate - the long template to store.
actionLinks - the action links to store
Returns:
the id which Facebook assigns to your template
Throws:
FacebookException

feed_registerTemplateBundle

@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.lang.String template,
                                                             java.lang.String shortTemplate,
                                                             java.lang.String longTemplate)
                                           throws FacebookException
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<java.lang.Object>
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

profile_getFBML

@Deprecated
public java.lang.Object profile_getFBML()
                                 throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Gets the FBML for the current user's profile box.

Specified by:
profile_getFBML in interface IFacebookRestClient<java.lang.Object>
Returns:
a T containing FBML markup
Throws:
FacebookException
See Also:
IFacebookRestClient.profile_getFBML(int, Long)

profile_getFBML

@Deprecated
public java.lang.Object profile_getFBML(java.lang.Long userId)
                                 throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Gets the FBML for the user's profile box.

Specified by:
profile_getFBML in interface IFacebookRestClient<java.lang.Object>
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
See Also:
IFacebookRestClient.profile_getFBML(int, Long)

profile_getFBML

@Deprecated
public java.lang.Object profile_getFBML(int type)
                                 throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Gets the FBML for the current user's profile boxes.

Specified by:
profile_getFBML in interface IFacebookRestClient<java.lang.Object>
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
See Also:
IFacebookRestClient.profile_getFBML(int, Long)

profile_getFBML

@Deprecated
public java.lang.Object profile_getFBML(int type,
                                                   java.lang.Long userId)
                                 throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Gets the FBML for the user's profile boxes.

Specified by:
profile_getFBML in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Profile.getFBML

profile_getInfo

@Deprecated
public java.lang.Object profile_getInfo(java.lang.Long userId)
                                 throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Get the specified user's application-info section.

Specified by:
profile_getInfo in interface IFacebookRestClient<java.lang.Object>
Parameters:
userId - the id of the user to get the info section for.
Returns:
the user's application-info section.
Throws:
FacebookException

profile_getInfoOptions

@Deprecated
public java.lang.Object profile_getInfoOptions(java.lang.String field)
                                        throws FacebookException
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<java.lang.Object>
Parameters:
field - the field to get the options for.
Returns:
the options associated with the specified field for an application info section.
Throws:
FacebookException

profile_setInfo

@Deprecated
public void profile_setInfo(java.lang.Long userId,
                                       java.lang.String title,
                                       boolean textOnly,
                                       java.util.List<ProfileInfoField> fields)
                     throws FacebookException
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<java.lang.Object>
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

profile_setInfoOptions

@Deprecated
public void profile_setInfoOptions(ProfileInfoField field)
                            throws FacebookException
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<java.lang.Object>
Parameters:
field - the field to set.
Throws:
FacebookException

profile_setFBML

@Deprecated
public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
                                          java.lang.CharSequence profileActionFbmlMarkup)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFBML

profile_setFBML

@Deprecated
public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
                                          java.lang.CharSequence profileActionFbmlMarkup,
                                          java.lang.Long profileId)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFBML

profile_setFBML

@Deprecated
public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
                                          java.lang.CharSequence profileActionFbmlMarkup,
                                          java.lang.CharSequence mobileFbmlMarkup)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFBML

profile_setFBML

@Deprecated
public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
                                          java.lang.CharSequence profileActionFbmlMarkup,
                                          java.lang.CharSequence mobileFbmlMarkup,
                                          java.lang.Long profileId)
                        throws FacebookException
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<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFBML

profile_setMobileFBML

@Deprecated
public boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup)
                              throws FacebookException
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<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFBML

profile_setMobileFBML

@Deprecated
public boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup,
                                                java.lang.Long profileId)
                              throws FacebookException
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<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFBML

profile_setProfileActionFBML

@Deprecated
public boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup)
                                     throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Sets the FBML for profile actions for the logged-in user.

Specified by:
profile_setProfileActionFBML in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFBML

profile_setProfileActionFBML

@Deprecated
public boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup,
                                                       java.lang.Long profileId)
                                     throws FacebookException
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<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFBML

profile_setProfileFBML

@Deprecated
public boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup)
                               throws FacebookException
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<java.lang.Object>
Parameters:
fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
Throws:
FacebookException
See Also:
Developers wiki: Profile.setFbml

profile_setProfileFBML

@Deprecated
public boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup,
                                                 java.lang.Long profileId)
                               throws FacebookException
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<java.lang.Object>
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
See Also:
Developers wiki: Profile.setFbml

profile_setFBML

@Deprecated
public boolean profile_setFBML(java.lang.Long userId,
                                          java.lang.String profileFbml,
                                          java.lang.String actionFbml,
                                          java.lang.String mobileFbml)
                        throws FacebookException
Deprecated. 

Specified by:
profile_setFBML in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException
See Also:
IFacebookRestClient.profile_setFBML(Long, String, String, String, String)

profile_setFBML

@Deprecated
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
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<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Profile.setFBML

liveMessage_send

public java.lang.Boolean liveMessage_send(java.lang.Long recipient,
                                          java.lang.String eventName,
                                          org.json.JSONObject message)
                                   throws FacebookException
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<java.lang.Object>
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

links_post

public java.lang.Long links_post(java.lang.Long userId,
                                 java.lang.String url,
                                 java.lang.String comment)
                          throws FacebookException
Description copied from interface: IFacebookRestClient
Posts a link to the specified user's Wall. The user must have previously given the calling application the "share_item" extended permission.

Specified by:
links_post in interface IFacebookRestClient<java.lang.Object>
Parameters:
userId - the user ID
url - the URL to link to
comment - the user-generated comment about the URL
Returns:
the unique ID of the newly posted link entity
Throws:
FacebookException

admin_getMetrics

public java.lang.Object admin_getMetrics(java.util.Set<Metric> metrics,
                                         java.util.Date start,
                                         java.util.Date end,
                                         long period)
                                  throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieve metrics for the current application.

Specified by:
admin_getMetrics in interface IFacebookRestClient<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getMetrics

admin_getMetrics

public java.lang.Object admin_getMetrics(java.util.Set<Metric> metrics,
                                         long start,
                                         long end,
                                         long period)
                                  throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieve the daily metrics for the current application.

Specified by:
admin_getMetrics in interface IFacebookRestClient<java.lang.Object>
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
See Also:
http://wiki.developers.facebook.com/index.php/Admin.getMetrics

feed_deactivateTemplateBundleByID

@Deprecated
public boolean feed_deactivateTemplateBundleByID(java.lang.Long bundleId)
                                          throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Deactivates the specified template bundle.

Specified by:
feed_deactivateTemplateBundleByID in interface IFacebookRestClient<java.lang.Object>
Parameters:
bundleId - the id of the bundle to deactivate.
Returns:
true if the call succeeds, false otherwise.
Throws:
FacebookException

feed_publishUserAction

@Deprecated
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
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<java.lang.Object>
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

stream_get

public java.lang.Object stream_get(java.lang.Long viewerId,
                                   java.util.List<java.lang.Long> sourceIds,
                                   java.util.Date start,
                                   java.util.Date end,
                                   java.lang.Integer limit,
                                   java.lang.String filterKey,
                                   java.util.List<java.lang.String> metadata)
                            throws FacebookException
Specified by:
stream_get in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

stream_publish

public java.lang.String stream_publish(java.lang.String message,
                                       Attachment attachment,
                                       java.util.Collection<BundleActionLink> actionLinks,
                                       java.lang.Long targetId,
                                       java.lang.Long userId)
                                throws FacebookException
Specified by:
stream_publish in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

stream_remove

public boolean stream_remove(java.lang.String postId,
                             java.lang.Long userId)
                      throws FacebookException
Specified by:
stream_remove in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

stream_getComments

public java.lang.Object stream_getComments(java.lang.String postId)
                                    throws FacebookException
Specified by:
stream_getComments in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

stream_addComment

public java.lang.String stream_addComment(java.lang.String postId,
                                          java.lang.String comment,
                                          java.lang.Long userId)
                                   throws FacebookException
Specified by:
stream_addComment in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

stream_removeComment

public boolean stream_removeComment(java.lang.String commentId,
                                    java.lang.Long userId)
                             throws FacebookException
Specified by:
stream_removeComment in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

stream_addLike

public boolean stream_addLike(java.lang.String postId,
                              java.lang.Long userId)
                       throws FacebookException
Specified by:
stream_addLike in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

stream_removeLike

public boolean stream_removeLike(java.lang.String postId,
                                 java.lang.Long userId)
                          throws FacebookException
Specified by:
stream_removeLike in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

stream_getFilters

public java.lang.Object stream_getFilters(java.lang.Long userId)
                                   throws FacebookException
Specified by:
stream_getFilters in interface IFacebookRestClient<java.lang.Object>
Throws:
FacebookException

toString

protected static java.lang.String toString(java.lang.CharSequence cs)

extractBoolean

protected boolean extractBoolean(java.lang.String result)
                          throws FacebookException
Extracts a Boolean from a result that consists of a Boolean only.

Parameters:
result -
Returns:
the Boolean
Throws:
FacebookException

extractBoolean10

protected boolean extractBoolean10(java.lang.String result)
                            throws FacebookException
Throws:
FacebookException

extractInt

protected int extractInt(java.lang.String result)
                  throws FacebookException
Extracts an Long from a result that consists of an Long only.

Parameters:
result -
Returns:
the Long
Throws:
FacebookException

extractLong

protected long extractLong(java.lang.String result)
                    throws FacebookException
Extracts an Long from a result that consists of a Long only.

Parameters:
result -
Returns:
the Long
Throws:
FacebookException

extractString

protected java.lang.String extractString(java.lang.String result)
                                  throws FacebookException
Extracts a String from a T consisting entirely of a String.

Parameters:
result -
Returns:
the String
Throws:
FacebookException

events_get

public java.lang.Object events_get(java.lang.Long userId,
                                   java.util.Collection<java.lang.Long> eventIds,
                                   java.lang.Long startTime,
                                   java.lang.Long endTime)
                            throws FacebookException
Description copied from interface: IFacebookRestClient
Returns all visible events according to the filters specified.

Specified by:
events_get in interface IFacebookRestClient<java.lang.Object>
Parameters:
userId - Filter by events associated with a user with this uid.
eventIds - Filter by this list of event IDs. This is a comma-separated list of event IDs.
startTime - Filter with this UTC as lower bound. A missing or zero parameter indicates no lower bound.
endTime - Filter with this UTC as upper bound. A missing or zero parameter indicates no upper bound.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Events.get

events_get

public java.lang.Object events_get(java.lang.Long userId,
                                   java.util.Collection<java.lang.Long> eventIds,
                                   java.lang.Long startTime,
                                   java.lang.Long endTime,
                                   java.lang.String rsvp_status)
                            throws FacebookException
Description copied from interface: IFacebookRestClient
Returns all visible events according to the filters specified.

Specified by:
events_get in interface IFacebookRestClient<java.lang.Object>
Parameters:
userId - Filter by events associated with a user with this uid.
eventIds - Filter by this list of event IDs. This is a comma-separated list of event IDs.
startTime - Filter with this UTC as lower bound. A missing or zero parameter indicates no lower bound.
endTime - Filter with this UTC as upper bound. A missing or zero parameter indicates no upper bound.
rsvp_status - Filter by this RSVP status. The RSVP status should be one of the following strings: attending, unsure, declined, not_replied
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Events.get

events_getMembers

public java.lang.Object events_getMembers(java.lang.Long eventId)
                                   throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the membership list of an event

Specified by:
events_getMembers in interface IFacebookRestClient<java.lang.Object>
Parameters:
eventId - The event ID.
Returns:
T consisting of four membership lists corresponding to RSVP status, with keys 'attending', 'unsure', 'declined', and 'not_replied'
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Events.getMembers

events_create

public java.lang.Long events_create(java.util.Map<java.lang.String,java.lang.String> event_info)
                             throws FacebookException
Description copied from interface: IFacebookRestClient
Creates an event on behalf of the user if the application has an active session key for that user; otherwise it creates an event on behalf of the application.

Specified by:
events_create in interface IFacebookRestClient<java.lang.Object>
Parameters:
event_info - The event information. You must pass the following parameters:
  • name
  • category
  • subcategory
  • host
  • location
  • city
  • start_time (seconds since epoch)
  • end_time (seconds since epoch)
Optionally, you can pass the following parameters in the event_info array:
  • street
  • phone
  • email
  • page_id
  • description
  • privacy_type
  • tagline
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Events.create

events_edit

public boolean events_edit(java.lang.Long eid,
                           java.util.Map<java.lang.String,java.lang.String> event_info)
                    throws FacebookException
Description copied from interface: IFacebookRestClient
Edits the details of an existing event. The application must be an admin of the event. An application is the admin of an event if the application created the event on behalf of a user (with that user's active session) or if it is the creator of the event itself (that is, the event was created without an active user session).

Specified by:
events_edit in interface IFacebookRestClient<java.lang.Object>
Parameters:
eid - The event ID.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Events.edit

events_cancel

public boolean events_cancel(java.lang.Long eid,
                             java.lang.String cancel_message)
                      throws FacebookException
Description copied from interface: IFacebookRestClient
Cancels an event. The application must be an admin of the event. An application is the admin of an event if the application created the event on behalf of a user (with that user's active session) or if it is the creator of the event itself (that is, the event was created without an active user session).

Specified by:
events_cancel in interface IFacebookRestClient<java.lang.Object>
Parameters:
eid - The event ID.
cancel_message - The message sent explaining why the event was canceled. You can pass an empty string if you don't want to provide an explanation.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Events.cancel

events_rsvp

public boolean events_rsvp(java.lang.Long eid,
                           java.lang.String rsvp_status)
                    throws FacebookException
Description copied from interface: IFacebookRestClient
Sets a user's RSVP status for an event. An application can set a user's RSVP status only if the following are all true:

Specified by:
events_rsvp in interface IFacebookRestClient<java.lang.Object>
Parameters:
eid - The event ID.
rsvp_status - The user's RSVP status. Specify attending, unsure, or declined.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Events.rsvp

sms_canSend

public boolean sms_canSend()
                    throws FacebookException
Description copied from interface: IFacebookRestClient
Check to see if the application is permitted to send SMS messages to the current application user.

Specified by:
sms_canSend in interface IFacebookRestClient<java.lang.Object>
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.

sms_canSend

public boolean sms_canSend(java.lang.Long userId)
                    throws FacebookException
Description copied from interface: IFacebookRestClient
Check to see if the application is permitted to send SMS messages to the specified user.

Specified by:
sms_canSend in interface IFacebookRestClient<java.lang.Object>
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.

sms_send

public java.lang.Integer sms_send(java.lang.String message,
                                  java.lang.Integer smsSessionId,
                                  boolean makeNewSession)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Send an SMS message to the current application user.

Specified by:
sms_send in interface IFacebookRestClient<java.lang.Object>
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.

sms_send

public java.lang.Integer sms_send(java.lang.Long userId,
                                  java.lang.String message,
                                  java.lang.Integer smsSessionId,
                                  boolean makeNewSession)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Send an SMS message to the specified user.

Specified by:
sms_send in interface IFacebookRestClient<java.lang.Object>
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.

sms_sendMessage

public void sms_sendMessage(java.lang.Long userId,
                            java.lang.CharSequence message)
                     throws FacebookException
Description copied from interface: IFacebookRestClient
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<java.lang.Object>
Parameters:
userId - a user ID
message - the message to be sent via SMS
Throws:
FacebookException - in case of error
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
Description copied from interface: IFacebookRestClient
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 when the user replies.

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

connect_registerUsers

public java.lang.Object connect_registerUsers(java.util.Collection<java.util.Map<java.lang.String,java.lang.String>> accounts)
                                       throws FacebookException
Description copied from interface: IFacebookRestClient
This method is used to create an association between an external user account and a Facebook user account. This method takes an array of account data, including a required email_hash and optional account data. For each connected account, if the user exists, the information is added to the set of the user's connected accounts. If the user has already authorized the site, the connected account is added in the confirmed state. If the user has not yet authorized the site, the connected account is added in the pending state.

Specified by:
connect_registerUsers in interface IFacebookRestClient<java.lang.Object>
Parameters:
accounts - An array of up to 1,000 arrays, or "maps," where each map represent a connected account. Each map can have the following properties:
  • email_hash: The public email hash of remote account. This property is required. Compute the email_hash property as follows:
    1. Normalize the email address. Trim leading and trailing whitespace, and convert all characters to lowercase.
    2. Compute the CRC32 value for the normalized email address and use the unsigned integer representation of this value. (Note that some implementations return signed integers, in which case you will need to convert that result to an unsigned integer.)
    3. Compute the MD5 value for the normalized email address and use the hex representation of this value (using lowercase for A through F).
    4. Combine these two value with an underscore.
    For example, the address mary@example.com converts to 4228600737_c96da02bba97aedfd26136e980ae3761.
  • account_id: The user's account ID on the Facebook Connect site. This property is optional. If you specify the account_id property, then you must also set a Connect Preview URL in your application's settings in order to generate a full user URL. The Connect Preview URL contains an account_id parameter, such as http://www.example.com/profile.php?user=account_id.
  • account_url: The URL to the user's account on the Facebook Connect site. This property is optional. If you specify the account_url property, that URL will be used directly.
Facebook recommends that you specify at least one of either the account_id or the account_url properties.
Returns:
This method returns an array of email hashes that have been successfully registered. If any email hashes are missing, we recommend that you try registering them again later.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Connect.registerUsers

connect_unregisterUsers

public java.lang.Object connect_unregisterUsers(java.util.Collection<java.lang.String> email_hashes)
                                         throws FacebookException
Description copied from interface: IFacebookRestClient
This method allows a site to unregister a previously registered account (using connect.registerUsers). You should call this method if the user deletes his account on your site.

Specified by:
connect_unregisterUsers in interface IFacebookRestClient<java.lang.Object>
Parameters:
email_hashes - An array of email_hashes to unregister.
Returns:
This method returns an array of unregistered email hashes. If any email hashes are missing, we recommend that you try unregistering the account again later.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Connect.unregisterUsers

connect_getUnconnectedFriendsCount

public int connect_getUnconnectedFriendsCount()
                                       throws FacebookException
Description copied from interface: IFacebookRestClient
This method returns the number of friends of the current user who have accounts on your site, but have not yet connected their accounts. Also see fb:unconnected-friends-count. You can use the response from this call to determine whether or not to display a link allowing the user to invite their friends to connect as well.

Specified by:
connect_getUnconnectedFriendsCount in interface IFacebookRestClient<java.lang.Object>
Returns:
This method returns an int that indicates the number of users who have not yet connected their accounts.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Connect.getUnconnectedFriendsCount

photos_get

public java.lang.Object photos_get(java.util.Collection<java.lang.String> photoIds)
                            throws FacebookException
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<java.lang.Object>
Parameters:
photoIds - retrieve from this list of photos (optional)
Returns:
an T of photo objects.
Throws:
FacebookException
See Also:
#photos_get(Long, Long, Collection), Developers Wiki: Photos.get

photos_get

public java.lang.Object photos_get(java.lang.Long subjId,
                                   java.lang.String albumId)
                            throws FacebookException
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<java.lang.Object>
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
See Also:
#photos_get(Long, Long, Collection), Developers Wiki: Photos.get

photos_get

public java.lang.Object photos_get(java.lang.Long subjId,
                                   java.util.Collection<java.lang.String> photoIds)
                            throws FacebookException
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<java.lang.Object>
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
See Also:
#photos_get(Long, Long, Collection), Developers Wiki: Photos.get

photos_get

public java.lang.Object photos_get(java.lang.Long subjId)
                            throws FacebookException
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<java.lang.Object>
Parameters:
subjId - retrieve from photos associated with this user (optional).
Returns:
an T of photo objects.
Throws:
FacebookException
See Also:
#photos_get(Long, Long, Collection), Developers Wiki: Photos.get

photos_get

public java.lang.Object photos_get(java.lang.Long subjId,
                                   java.lang.String albumId,
                                   java.util.Collection<java.lang.String> photoIds)
                            throws FacebookException
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<java.lang.Object>
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 T of photo objects.
Throws:
FacebookException

photos_getTags

public java.lang.Object photos_getTags(java.util.Collection<java.lang.String> photoIds)
                                throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves the tags for the given set of photos.

Specified by:
photos_getTags in interface IFacebookRestClient<java.lang.Object>
Parameters:
photoIds - The list of photos from which to extract photo tags.
Returns:
the created album
Throws:
FacebookException

photos_addTag

public boolean photos_addTag(java.lang.String photoId,
                             java.lang.CharSequence tagText,
                             java.lang.Double xPct,
                             java.lang.Double yPct)
                      throws FacebookException
Description copied from interface: IFacebookRestClient
Adds a tag to a photo.

Specified by:
photos_addTag in interface IFacebookRestClient<java.lang.Object>
Parameters:
photoId - The photo id of the photo to be tagged.
tagText - The text of the tag.
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.
Returns:
whether the tag was successfully added.
Throws:
FacebookException

photos_createAlbum

public java.lang.Object photos_createAlbum(java.lang.String albumName)
                                    throws FacebookException
Description copied from interface: IFacebookRestClient
Creates an album.

Specified by:
photos_createAlbum in interface IFacebookRestClient<java.lang.Object>
Parameters:
albumName - The list of photos from which to extract photo tags.
Returns:
the created album
Throws:
FacebookException

photos_addTag

public boolean photos_addTag(java.lang.String photoId,
                             java.lang.Long taggedUserId,
                             java.lang.Double xPct,
                             java.lang.Double yPct)
                      throws FacebookException
Description copied from interface: IFacebookRestClient
Adds a tag to a photo.

Specified by:
photos_addTag in interface IFacebookRestClient<java.lang.Object>
Parameters:
photoId - The photo id of the photo to be tagged.
taggedUserId - The list of photos from which to extract photo tags.
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.
Returns:
whether the tag was successfully added.
Throws:
FacebookException

photos_addTags

public java.lang.Object photos_addTags(java.lang.String photoId,
                                       java.util.Collection<PhotoTag> tags)
                                throws FacebookException
Description copied from interface: IFacebookRestClient
Adds several tags to a photo.

Specified by:
photos_addTags in interface IFacebookRestClient<java.lang.Object>
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

photos_createAlbum

public java.lang.Object photos_createAlbum(java.lang.String name,
                                           java.lang.String description,
                                           java.lang.String location)
                                    throws FacebookException
Description copied from interface: IFacebookRestClient
Creates an album.

Specified by:
photos_createAlbum in interface IFacebookRestClient<java.lang.Object>
Parameters:
name - The album name.
description - The album description (optional).
location - The album location (optional).
Returns:
an array of photo objects.
Throws:
FacebookException

photos_getAlbums

public java.lang.Object photos_getAlbums(java.util.Collection<java.lang.String> albumIds)
                                  throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves album metadata for a list of album IDs.

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

photos_getAlbums

public java.lang.Object photos_getAlbums(java.lang.Long userId)
                                  throws FacebookException
Description copied from interface: IFacebookRestClient
Retrieves album metadata for albums owned by a user.

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

photos_getAlbums

public java.lang.Object photos_getAlbums(java.lang.Long userId,
                                         java.util.Collection<java.lang.String> albumIds)
                                  throws FacebookException
Description copied from interface: IFacebookRestClient
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<java.lang.Object>
Parameters:
userId - (optional) the id of the albums' owner (optional)
albumIds - (optional) the ids of albums whose metadata is to be retrieved
Returns:
album objects
Throws:
FacebookException
See Also:
Developers Wiki: Photos.getAlbums

photos_getByAlbum

public java.lang.Object photos_getByAlbum(java.lang.String albumId,
                                          java.util.Collection<java.lang.String> photoIds)
                                   throws FacebookException
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_getByAlbum in interface IFacebookRestClient<java.lang.Object>
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
See Also:
#photos_get(Integer, Long, Collection), Developers Wiki: Photos.get

photos_getByAlbum

public java.lang.Object photos_getByAlbum(java.lang.String albumId)
                                   throws FacebookException
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_getByAlbum in interface IFacebookRestClient<java.lang.Object>
Parameters:
albumId - retrieve from photos from this album (optional)
Returns:
an T of photo objects.
Throws:
FacebookException
See Also:
#photos_get(Integer, Long, Collection), Developers Wiki: Photos.get

photos_addTag

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

Specified by:
photos_addTag in interface IFacebookRestClient<java.lang.Object>
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

photos_addTag

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

Specified by:
photos_addTag in interface IFacebookRestClient<java.lang.Object>
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

photos_createAlbum

public java.lang.Object photos_createAlbum(java.lang.String albumName,
                                           java.lang.Long userId)
                                    throws FacebookException
Description copied from interface: IFacebookRestClient
Creates an album.

Specified by:
photos_createAlbum in interface IFacebookRestClient<java.lang.Object>
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

photos_createAlbum

public java.lang.Object photos_createAlbum(java.lang.String name,
                                           java.lang.String description,
                                           java.lang.String location,
                                           java.lang.Long userId)
                                    throws FacebookException
Description copied from interface: IFacebookRestClient
Creates an album.

Specified by:
photos_createAlbum in interface IFacebookRestClient<java.lang.Object>
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

photos_addTags

public java.lang.Object photos_addTags(java.lang.String photoId,
                                       java.util.Collection<PhotoTag> tags,
                                       java.lang.Long userId)
                                throws FacebookException
Description copied from interface: IFacebookRestClient
Adds several tags to a photo.

Specified by:
photos_addTags in interface IFacebookRestClient<java.lang.Object>
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

photos_upload

public java.lang.Object photos_upload(java.io.File photo)
                               throws FacebookException
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

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

photos_uploadWithCaption

public java.lang.Object photos_uploadWithCaption(java.io.File photo,
                                                 java.lang.String caption)
                                          throws FacebookException
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_uploadWithCaption in interface IFacebookRestClient<java.lang.Object>
Parameters:
photo - an image file
caption - a description of the image contents
Returns:
a T with the standard Facebook photo information
Throws:
FacebookException
See Also:
Developers wiki: Photos.upload

photos_uploadToAlbum

public java.lang.Object photos_uploadToAlbum(java.io.File photo,
                                             java.lang.String albumId)
                                      throws FacebookException
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_uploadToAlbum in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers wiki: Photos.upload

photos_upload

public java.lang.Object photos_upload(java.io.File photo,
                                      java.lang.String caption,
                                      java.lang.String albumId)
                               throws FacebookException
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers wiki: Photos.upload

photos_upload

public java.lang.Object photos_upload(java.lang.Long userId,
                                      java.io.File photo)
                               throws FacebookException
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers wiki: Photos.upload

photos_uploadWithCaption

public java.lang.Object photos_uploadWithCaption(java.lang.Long userId,
                                                 java.io.File photo,
                                                 java.lang.String caption)
                                          throws FacebookException
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_uploadWithCaption in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers wiki: Photos.upload

photos_uploadToAlbum

public java.lang.Object photos_uploadToAlbum(java.lang.Long userId,
                                             java.io.File photo,
                                             java.lang.String albumId)
                                      throws FacebookException
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_uploadToAlbum in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers wiki: Photos.upload

photos_upload

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

Specified by:
photos_upload in interface IFacebookRestClient<java.lang.Object>
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
See Also:
Developers wiki: Photos.upload

photos_upload

public java.lang.Object photos_upload(java.lang.Long userId,
                                      java.lang.String caption,
                                      java.lang.String albumId,
                                      java.lang.String fileName,
                                      java.io.InputStream fileStream)
                               throws FacebookException
Description copied from interface: IFacebookRestClient
Uploads a photo to Facebook.

Specified by:
photos_upload in interface IFacebookRestClient<java.lang.Object>
Parameters:
userId - the id of the user uploading the photo
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
See Also:
Developers wiki: Photos.upload

payments_getOrders

public java.lang.Object payments_getOrders(java.lang.String status,
                                           long startTime,
                                           long endTime)
                                    throws FacebookException
Description copied from interface: IFacebookRestClient
Returns all orders for the given application

Specified by:
payments_getOrders in interface IFacebookRestClient<java.lang.Object>
Parameters:
status - Return orders with the specified status. Specify one of reserved, settled, or refunded
startTime - Return orders within this time interval
endTime - Return orders within this time interval
Returns:
An array of {order_ids => order_details}. Currently limited by facebook to returning 100,000 orders per query.
Throws:
FacebookException

notifications_get

@Deprecated
public java.lang.Object notifications_get()
                                   throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Retrieves the outstanding notifications for the session user.

Specified by:
notifications_get in interface IFacebookRestClient<java.lang.Object>
Returns:
a T 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

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
Deprecated. 

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

Specified by:
notifications_send in interface IFacebookRestClient<java.lang.Object>
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

notifications_send

@Deprecated
public java.util.Collection<java.lang.String> notifications_send(java.util.Collection<java.lang.Long> recipientIds,
                                                                            java.lang.CharSequence notification)
                                                          throws FacebookException
Deprecated. 

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

Specified by:
notifications_send in interface IFacebookRestClient<java.lang.Object>
Parameters:
recipientIds - the user ids to which the message is to be sent.
notification - the FBML to display on the notifications page.
Throws:
FacebookException

notifications_send

@Deprecated
public java.util.Collection<java.lang.String> notifications_send(java.lang.CharSequence notification)
                                                          throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Send a notification message to the logged-in user.

Specified by:
notifications_send in interface IFacebookRestClient<java.lang.Object>
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
Returns:
a URL, possibly null, to which the user should be redirected to finalize the sending of the email
Throws:
FacebookException
See Also:
Developers Wiki: notifications.send

notifications_send

@Deprecated
public java.util.Collection<java.lang.String> notifications_send(java.util.Collection<java.lang.Long> recipientIds,
                                                                            java.lang.String notification,
                                                                            boolean isAppToUser)
                                                          throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
Sends a notification.

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

notifications_sendEmail

public java.util.Collection<java.lang.String> notifications_sendEmail(java.util.Collection<java.lang.Long> recipients,
                                                                      java.lang.CharSequence subject,
                                                                      java.lang.CharSequence text,
                                                                      java.lang.CharSequence fbml)
                                                               throws FacebookException
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<java.lang.Object>
Parameters:
recipients - the uid's of the users to send to.
subject - the subject of the email message.
text - 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.

notifications_sendFbmlEmail

public java.util.Collection<java.lang.String> notifications_sendFbmlEmail(java.util.Collection<java.lang.Long> recipients,
                                                                          java.lang.String subject,
                                                                          java.lang.String fbml)
                                                                   throws FacebookException
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<java.lang.Object>
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.

notifications_sendTextEmail

public java.util.Collection<java.lang.String> notifications_sendTextEmail(java.util.Collection<java.lang.Long> recipients,
                                                                          java.lang.String subject,
                                                                          java.lang.String email)
                                                                   throws FacebookException
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<java.lang.Object>
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.

notifications_sendEmailToCurrentUser

public java.util.Collection<java.lang.String> notifications_sendEmailToCurrentUser(java.lang.String subject,
                                                                                   java.lang.String email,
                                                                                   java.lang.String fbml)
                                                                            throws FacebookException
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<java.lang.Object>
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.

notifications_sendFbmlEmailToCurrentUser

public java.util.Collection<java.lang.String> notifications_sendFbmlEmailToCurrentUser(java.lang.String subject,
                                                                                       java.lang.String fbml)
                                                                                throws FacebookException
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<java.lang.Object>
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.

notifications_sendTextEmailToCurrentUser

public java.util.Collection<java.lang.String> notifications_sendTextEmailToCurrentUser(java.lang.String subject,
                                                                                       java.lang.String email)
                                                                                throws FacebookException
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<java.lang.Object>
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.

notifications_sendEmailStr

@Deprecated
public java.lang.String notifications_sendEmailStr(java.util.Collection<java.lang.Long> recipients,
                                                              java.lang.CharSequence subject,
                                                              java.lang.CharSequence fbml,
                                                              java.lang.CharSequence text)
                                            throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
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<java.lang.Object>
Parameters:
recipients - 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
See Also:
Developers Wiki: notifications.sendEmail

notifications_sendEmail

@Deprecated
public java.lang.String notifications_sendEmail(java.util.Collection<java.lang.Long> recipients,
                                                           java.lang.CharSequence subject,
                                                           java.lang.CharSequence fbml)
                                         throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
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<java.lang.Object>
Parameters:
recipients - 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
See Also:
Developers Wiki: notifications.sendEmail

notifications_sendEmailPlain

@Deprecated
public java.lang.String notifications_sendEmailPlain(java.util.Collection<java.lang.Long> recipients,
                                                                java.lang.CharSequence subject,
                                                                java.lang.CharSequence text)
                                              throws FacebookException
Deprecated. 

Description copied from interface: IFacebookRestClient
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<java.lang.Object>
Parameters:
recipients - 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
See Also:
Developers Wiki: notifications.sendEmail

admin_getAppPropertiesAsString

public java.lang.String admin_getAppPropertiesAsString(java.util.Collection<ApplicationProperty> properties)
                                                throws FacebookException
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<java.lang.Object>
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

executeBatch

public java.util.List<java.lang.String> executeBatch(boolean serial)
                                              throws FacebookException
Returns a list of String raw responses which will be further broken down by the adapters into the actual individual responses. One string is returned per 20 methods in the batch.

Specified by:
executeBatch in interface IFacebookRestClient<java.lang.Object>
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

fbml_deleteCustomTags

public void fbml_deleteCustomTags(java.util.Collection<java.lang.String> names)
                           throws FacebookException
Description copied from interface: IFacebookRestClient
Deletes one or more custom tags you previously registered for the calling application with fbml.registerCustomTags. Important! Use this method with extreme care, especially with public tags. Don't delete tags that may be in use, especially by other applications! This will break FBML pages that use those tags.

Specified by:
fbml_deleteCustomTags in interface IFacebookRestClient<java.lang.Object>
Parameters:
names - A JSON-encoded array of strings containing the names of the tags you want to delete. If this attribute is missing, all the application's custom tags will be deleted.
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Fbml.deleteCustomTags

fbml_getCustomTags

public java.lang.Object fbml_getCustomTags(java.lang.String appId)
                                    throws FacebookException
Description copied from interface: IFacebookRestClient
Returns the custom tag definitions for tags that were previously defined using fbml.registerCustomTags.

Specified by:
fbml_getCustomTags in interface IFacebookRestClient<java.lang.Object>
Parameters:
appId - The ID of the application whose custom tags you want to get. If the ID is the calling application's ID, all the application's custom tags are returned. Otherwise, only the application's public custom tags are returned. (Default value is the calling application's ID.).
Throws:
FacebookException
See Also:
http://wiki.developers.facebook.com/index.php/Fbml.getCustomTags

fbml_registerCustomTags

public void fbml_registerCustomTags(java.util.Collection<org.json.JSONObject> tags)
                             throws FacebookException
Description copied from interface: IFacebookRestClient
Registers custom tags you can include in your that applications' FBML markup. Custom tags consist of FBML snippets that are rendered during parse time on the containing page that references the custom tag. Custom tags can be either private or public. For more information, see Custom Tags. When you register public custom tags, you should add the source code for the tags to the Custom Tags Directory. To use these custom tags in an FBML snippet, you must define a namespace with the fb:fbml tag. This imports an application's custom tags into an FBML namespace. See fb:fbml for more information on how to use custom tags. Please go to the Facebook Wiki Page for full documentation!!: http://wiki.developers.facebook.com/index.php/Fbml.registerCustomTags

Specified by:
fbml_registerCustomTags in interface IFacebookRestClient<java.lang.Object>
Parameters:
tags - a JSON-encoded list of tag objects. Each tag object is an object with the following properties:
  • name (required) (string): the name of the tag. The name must be a string up to 30 characters. Only letters, numbers, underscores ('_') and hyphens ('-') are allowed.
  • type (optional) (string): Specify either leaf or container. Leaf tags can't contain any other tags (similar to ). Container tags may contain children between their open and close tags (like ). (Default value is leaf.).
  • description (optional) (string): A full description of the tag's functionality. This is used for documentation only, and is especially useful for public tags.
  • is_public (optional) (string): Specify either true or false. Specifying true indicates that other applications can use this tag. You can have a mix of public and private tags within the same array. (Default value is false.).
  • attributes (optional) (mixed): A list of attribute objects. Attributes are used to add dynamic elements to tags. The values of those attributes are substituted into the tag's FBML before it's parsed. Each attribute has the following fields:
    • o name (required) (string): The attribute's name. The name must be a string up to 30 characters in length. Only letters, numbers, underscores ('_') and hyphens ('-') are allowed.
    • o description (optional) (string): The attribute's description. This is used for documentation only, and is especially useful for public tags.
    • o default_value (optional) (string): The value to use when the attribute is missing. If an attribute doesn't have a default value, it is considered to be required and the developer will see an error message if the attribute is missing.
  • fbml (required) (string): The FBML markup to substitute into the page where the tag is encountered. This property is required only for leaf tags.
  • open_tag_fbml (required) (string): The FBML markup to substitute into the page where the open tag appears. This property is required for container tags only.
  • close_tag_fbml (required) (string): The FBML markup to substitute into the page where the close tag appears. This property is required for container tags only. Note: Facebook recommends you do not include SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
    Copyright © 2010. All Rights Reserved.