|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.code.facebookapi.BaseAdapter
com.google.code.facebookapi.SpecificReturnTypeAdapter<T>
public abstract class SpecificReturnTypeAdapter<T>
Eventually want this to have no methods in it whatsoever. This base adapter covers the cases where we want to do a simple proxy to the ExtensibleClient because the return type on the ExtensibleClient is not Object or void.
| Field Summary |
|---|
| Fields inherited from class com.google.code.facebookapi.BaseAdapter |
|---|
client, responseFormat |
| Fields inherited from interface com.google.code.facebookapi.IFacebookRestClient |
|---|
ERROR_TAG, TARGET_API_VERSION |
| Constructor Summary | |
|---|---|
protected |
SpecificReturnTypeAdapter(java.lang.String responseFormat,
ExtensibleClient client)
|
| 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. |
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. |
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.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. |
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.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> newsItemIds)
Clears specific global news items from application. |
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 |
long |
data_getAssociatedObjectCount(java.lang.String associationName,
long objectId)
Returns count of object ids that are associated with specified object. |
java.lang.String |
data_getUserPreference(int prefId)
Lookup a single preference value for the current user. |
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. |
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. |
boolean |
events_rsvp(java.lang.Long eid,
java.lang.String rsvp_status)
Sets a user's RSVP status for an event. |
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. |
boolean |
fbml_setRefHandle(java.lang.String handle,
java.lang.String markup)
Associates the specified FBML markup with the specified handle/id. |
boolean |
feed_deactivateTemplateBundleByID(java.lang.Long bundleId)
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. |
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.Boolean |
getCacheAppUser()
Deprecated. |
java.lang.Long |
getCacheSessionExpires()
|
java.lang.String |
getCacheSessionKey()
|
java.lang.Long |
getCacheUserId()
|
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 |
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.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> recipientIds,
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 email,
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> recipientIds,
java.lang.CharSequence subject,
java.lang.CharSequence text)
Deprecated. |
java.lang.String |
notifications_sendEmailStr(java.util.Collection<java.lang.Long> recipientIds,
java.lang.CharSequence subject,
java.lang.CharSequence fbml,
java.lang.CharSequence text)
Deprecated. |
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. |
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. |
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 pct,
java.lang.Double pct2)
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 pct,
java.lang.Double pct2)
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. |
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. |
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. |
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. |
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.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)
|
boolean |
users_clearStatus()
Clears the logged-in user's Facebook status. |
long |
users_getLoggedInUser()
Retrieves the user ID of the user logged in to this API session |
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 |
| Constructor Detail |
|---|
protected SpecificReturnTypeAdapter(java.lang.String responseFormat,
ExtensibleClient client)
| Method Detail |
|---|
public int admin_getAllocation(java.lang.String allocationType)
throws FacebookException
IFacebookRestClient
admin_getAllocation in interface IFacebookRestClient<T>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"
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getAllocation
public int admin_getAllocation(AllocationType allocationType)
throws FacebookException
IFacebookRestClient
admin_getAllocation in interface IFacebookRestClient<T>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"
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getAllocation
public int admin_getAllocation(java.lang.String allocationType,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
admin_getAllocation in interface IFacebookRestClient<T>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"
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getAllocation
public int admin_getAllocation(AllocationType allocationType,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
admin_getAllocation in interface IFacebookRestClient<T>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"
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getAllocation
public java.lang.String admin_getAppPropertiesAsString(java.util.Collection<ApplicationProperty> properties)
throws FacebookException
IFacebookRestClient
admin_getAppPropertiesAsString in interface IFacebookRestClient<T>properties - a collection indicating the properties you are interested in retrieving.
FacebookException
@Deprecated
public org.json.JSONObject admin_getAppProperties(java.util.Collection<ApplicationProperty> properties)
throws FacebookException
IFacebookRestClient
admin_getAppProperties in interface IFacebookRestClient<T>properties - a collection indicating the properties you are interested in retrieving.
FacebookException
public ApplicationPropertySet admin_getAppPropertiesAsSet(java.util.Collection<ApplicationProperty> properties)
throws FacebookException
IFacebookRestClientadmin.setAppProperties call. A
session is not required to use this method.
This method cannot be called by desktop apps.
admin_getAppPropertiesAsSet in interface IFacebookRestClient<T>properties - an enumeration of the properties to get
FacebookExceptionApplicationProperty,
http://wiki.developers.facebook.com/index.php/Admin.getAppProperties
public java.util.Map<ApplicationProperty,java.lang.String> admin_getAppPropertiesMap(java.util.Collection<ApplicationProperty> properties)
throws FacebookException
IFacebookRestClient
admin_getAppPropertiesMap in interface IFacebookRestClient<T>properties - a collection indicating the properties you are interested in retrieving.
FacebookException
@Deprecated
public int admin_getNotificationAllocation()
throws FacebookException
IFacebookRestClient
admin_getNotificationAllocation in interface IFacebookRestClient<T>FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getAllocation
@Deprecated
public int admin_getRequestAllocation()
throws FacebookException
IFacebookRestClient
admin_getRequestAllocation in interface IFacebookRestClient<T>FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.getAllocation
public boolean admin_setAppProperties(java.util.Map<ApplicationProperty,java.lang.String> properties)
throws FacebookException
IFacebookRestClient
admin_setAppProperties in interface IFacebookRestClient<T>properties - a Map containing the properties to set.
FacebookException
public boolean admin_setAppProperties(ApplicationPropertySet properties)
throws FacebookException
IFacebookRestClient
admin_setAppProperties in interface IFacebookRestClient<T>properties - an ApplicationPropertySet that is translated into a single JSON String.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Admin.setAppProperties
public java.lang.String auth_createToken()
throws FacebookException
IFacebookRestClient
auth_createToken in interface IFacebookRestClient<T>FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Auth.createToken
public boolean auth_expireSession()
throws FacebookException
IFacebookRestClient
auth_expireSession in interface IFacebookRestClient<T>FacebookException
public java.lang.String auth_getSession(java.lang.String authToken)
throws FacebookException
IFacebookRestClient
auth_getSession in interface IFacebookRestClient<T>authToken - the token returned by auth_createToken or passed back to your callback_url.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Auth.getSession
public java.lang.String auth_getSession(java.lang.String authToken,
boolean generateSessionSecret)
throws FacebookException
IFacebookRestClient
auth_getSession in interface IFacebookRestClient<T>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
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Auth.getSession
public java.lang.String auth_promoteSession()
throws FacebookException
IFacebookRestClient
auth_promoteSession in interface IFacebookRestClient<T>FacebookException
public boolean auth_revokeAuthorization()
throws FacebookException
IFacebookRestClient
auth_revokeAuthorization in interface IFacebookRestClient<T>FacebookException
public boolean auth_revokeExtendedPermission(Permission perm)
throws FacebookException
auth_revokeExtendedPermission in interface IFacebookRestClient<T>FacebookExceptionIFacebookRestClient.auth_revokeExtendedPermission(Permission, Long),
http://wiki.developers.facebook.com/index.php/Auth.revokeExtendedPermission
public boolean auth_revokeExtendedPermission(Permission perm,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
auth_revokeExtendedPermission in interface IFacebookRestClient<T>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.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Auth.revokeExtendedPermission
public int connect_getUnconnectedFriendsCount()
throws FacebookException
IFacebookRestClient
connect_getUnconnectedFriendsCount in interface IFacebookRestClient<T>FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Connect.getUnconnectedFriendsCount
public java.lang.Long dashboard_addGlobalNews(java.util.Collection<DashboardNewsItem> newsItems)
throws FacebookException
IFacebookRestClient
dashboard_addGlobalNews in interface IFacebookRestClient<T>FacebookException#dashboard_addGlobalNews(Collection, Collection, String)
public java.lang.Long dashboard_addGlobalNews(java.util.Collection<DashboardNewsItem> newsItems,
java.lang.String imageUrl)
throws FacebookException
IFacebookRestClient
dashboard_addGlobalNews in interface IFacebookRestClient<T>imageUrl - Absolute URL of image used to replace application logo in the dashboard. (optional)
FacebookException
public boolean dashboard_clearGlobalNews()
throws FacebookException
IFacebookRestClient
dashboard_clearGlobalNews in interface IFacebookRestClient<T>FacebookException
public boolean dashboard_clearGlobalNews(java.util.Collection<java.lang.Long> newsItemIds)
throws FacebookException
IFacebookRestClient
dashboard_clearGlobalNews in interface IFacebookRestClient<T>FacebookException
public java.lang.Long dashboard_publishActivity(DashboardActivityItem activityItem)
throws FacebookException
IFacebookRestClient
dashboard_publishActivity in interface IFacebookRestClient<T>FacebookExceptionIFacebookRestClient.dashboard_publishActivity(DashboardActivityItem, String)
public java.lang.Long dashboard_publishActivity(DashboardActivityItem activityItem,
java.lang.String imageUrl)
throws FacebookException
IFacebookRestClient
dashboard_publishActivity in interface IFacebookRestClient<T>activityItem - Activity item object consisting of a message (mandatory) and an action link (optional).imageUrl - Absolute URL of image used to replace application logo in the dashboard. (optional)
FacebookException
public java.util.Set<java.lang.Long> dashboard_multiIncrementCount(java.util.Collection<java.lang.Long> userIds)
throws FacebookException
IFacebookRestClient
dashboard_multiIncrementCount in interface IFacebookRestClient<T>userIds - Users for which to update dashboard bookmark counter by one.
FacebookException
public long data_createObject(java.lang.String objectType,
java.util.Map<java.lang.String,java.lang.String> properties)
throws FacebookException
IFacebookRestClient
data_createObject in interface IFacebookRestClient<T>objectType - Specifies which type of new object to create.properties - Optional - Name-value pairs of properties this new object has
FacebookException
public long data_getAssociatedObjectCount(java.lang.String associationName,
long objectId)
throws FacebookException
IFacebookRestClient
data_getAssociatedObjectCount in interface IFacebookRestClient<T>associationName - Name of the association.objectId - Object identifier.
FacebookException
public java.lang.String data_getUserPreference(int prefId)
throws FacebookException
IFacebookRestClient
data_getUserPreference in interface IFacebookRestClient<T>prefId - the id of the preference to lookup. This should be an integer value from 0-200.
FacebookException - if an error happens when executing the API call.
public boolean data_setCookie(java.lang.String name,
java.lang.String value)
throws FacebookException
IFacebookRestClient
data_setCookie in interface IFacebookRestClient<T>name - the name of the cookie to setvalue - the value of the cookie
FacebookException
public boolean data_setCookie(java.lang.String name,
java.lang.String value,
java.lang.String path)
throws FacebookException
IFacebookRestClient
data_setCookie in interface IFacebookRestClient<T>name - the name of the cookie to setvalue - the value of the cookiepath - the path relative to the application's callback URL, with which the cookie should be associated. (default is "/")
FacebookException
public boolean data_setCookie(java.lang.Long userId,
java.lang.CharSequence name,
java.lang.CharSequence value)
throws FacebookException
IFacebookRestClient
data_setCookie in interface IFacebookRestClient<T>userId - the id of the user to set the cookie for.name - the name of the cookie to setvalue - the value of the cookie
FacebookException
public boolean data_setCookie(java.lang.Long userId,
java.lang.CharSequence name,
java.lang.CharSequence value,
java.lang.CharSequence path)
throws FacebookException
IFacebookRestClient
data_setCookie in interface IFacebookRestClient<T>userId - the id of the user to set the cookie for.name - the name of the cookie to setvalue - the value of the cookiepath - the path relative to the application's callback URL, with which the cookie should be associated. (default is "/")
FacebookException
public boolean data_setCookie(java.lang.String name,
java.lang.String value,
java.lang.Long expires)
throws FacebookException
IFacebookRestClient
data_setCookie in interface IFacebookRestClient<T>name - the name of the cookie to setvalue - the value of the cookieexpires - the timestamp at which the cookie expires
FacebookException
public boolean data_setCookie(java.lang.String name,
java.lang.String value,
java.lang.Long expires,
java.lang.String path)
throws FacebookException
IFacebookRestClient
data_setCookie in interface IFacebookRestClient<T>name - the name of the cookie to setvalue - the value of the cookieexpires - the timestamp at which the cookie expirespath - the path relative to the application's callback URL, with which the cookie should be associated. (default is "/")
FacebookException
public boolean data_setCookie(java.lang.Long userId,
java.lang.CharSequence name,
java.lang.CharSequence value,
java.lang.Long expires)
throws FacebookException
IFacebookRestClient
data_setCookie in interface IFacebookRestClient<T>userId - the id of the user to set the cookie for.name - the name of the cookie to setvalue - the value of the cookieexpires - the timestamp at which the cookie expires
FacebookException
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
IFacebookRestClient
data_setCookie in interface IFacebookRestClient<T>userId - the id of the user to set the cookie for.name - the name of the cookie to setvalue - the value of the cookieexpires - the timestamp at which the cookie expirespath - the path relative to the application's callback URL, with which the cookie should be associated. (default is "/")
FacebookException
public boolean events_cancel(java.lang.Long eid,
java.lang.String cancel_message)
throws FacebookException
IFacebookRestClient
events_cancel in interface IFacebookRestClient<T>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.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Events.cancel
public java.lang.Long events_create(java.util.Map<java.lang.String,java.lang.String> event_info)
throws FacebookException
IFacebookRestClient
events_create in interface IFacebookRestClient<T>event_info - The event information. You must pass the following parameters:
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Events.create
public boolean events_edit(java.lang.Long eid,
java.util.Map<java.lang.String,java.lang.String> event_info)
throws FacebookException
IFacebookRestClient
events_edit in interface IFacebookRestClient<T>eid - The event ID.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Events.edit
public boolean events_rsvp(java.lang.Long eid,
java.lang.String rsvp_status)
throws FacebookException
IFacebookRestClient
events_rsvp in interface IFacebookRestClient<T>eid - The event ID.rsvp_status - The user's RSVP status. Specify attending, unsure, or declined.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Events.rsvp
public boolean fbml_refreshImgSrc(java.lang.String imageUrl)
throws FacebookException
IFacebookRestClient
fbml_refreshImgSrc in interface IFacebookRestClient<T>imageUrl - String representing the image URL to refresh
FacebookException
public boolean fbml_refreshImgSrc(java.net.URL imageUrl)
throws FacebookException
IFacebookRestClient
fbml_refreshImgSrc in interface IFacebookRestClient<T>imageUrl - the image URL to refresh
FacebookException
public boolean fbml_refreshRefUrl(java.lang.String url)
throws FacebookException
IFacebookRestClient
fbml_refreshRefUrl in interface IFacebookRestClient<T>url - string representing the URL to refresh
FacebookException
public boolean fbml_refreshRefUrl(java.net.URL url)
throws FacebookException
IFacebookRestClient
fbml_refreshRefUrl in interface IFacebookRestClient<T>url - the URL to refresh
FacebookException
public boolean fbml_setRefHandle(java.lang.String handle,
java.lang.String markup)
throws FacebookException
IFacebookRestClient
fbml_setRefHandle in interface IFacebookRestClient<T>handle - the id to associate the specified markup with. Put this in fb:ref FBML tags to reference your markup.markup - the FBML markup to store.
FacebookException - if an error happens when executing the API call.
@Deprecated
public boolean feed_PublishTemplatizedAction(TemplatizedAction action)
throws FacebookException
IFacebookRestClient
feed_PublishTemplatizedAction in interface IFacebookRestClient<T>action - a TemplatizedAction instance that represents the feed data to publish
FacebookException - if any number of bad things happen
@Deprecated
public boolean feed_deactivateTemplateBundleByID(java.lang.Long bundleId)
throws FacebookException
IFacebookRestClient
feed_deactivateTemplateBundleByID in interface IFacebookRestClient<T>bundleId - the id of the bundle to deactivate.
FacebookException
@Deprecated
public boolean feed_publishTemplatizedAction(java.lang.Long actorId,
java.lang.CharSequence titleTemplate)
throws FacebookException
IFacebookRestClient
feed_publishTemplatizedAction in interface IFacebookRestClient<T>actorId - deprecatedtitleTemplate - markup (up to 60 chars, tags excluded) for the feed story's title section. Must include the token {actor}.
FacebookException
@Deprecated
public boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate)
throws FacebookException
IFacebookRestClient
feed_publishTemplatizedAction in interface IFacebookRestClient<T>titleTemplate - markup (up to 60 chars, tags excluded) for the feed story's title section. Must include the token {actor}.
FacebookException
@Deprecated
public boolean feed_publishTemplatizedAction(java.lang.CharSequence titleTemplate,
java.lang.Long pageActorId)
throws FacebookException
IFacebookRestClientpageActorId 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.
feed_publishTemplatizedAction in interface IFacebookRestClient<T>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
FacebookException
@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
IFacebookRestClientpageActorId 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.
feed_publishTemplatizedAction in interface IFacebookRestClient<T>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
FacebookException
@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
IFacebookRestClient
feed_publishTemplatizedAction in interface IFacebookRestClient<T>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.
FacebookException
@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
IFacebookRestClient
feed_publishTemplatizedAction in interface IFacebookRestClient<T>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 titleDatabodyGeneral - 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.
FacebookException - if any number of bad things happen
@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
IFacebookRestClient
feed_publishTemplatizedAction in interface IFacebookRestClient<T>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.
FacebookException
@Deprecated
public java.lang.Boolean feed_publishUserAction(java.lang.Long bundleId)
throws FacebookException
IFacebookRestClient
feed_publishUserAction in interface IFacebookRestClient<T>bundleId - the template bundle-id to use to render the feed.
FacebookException
@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
IFacebookRestClient
feed_publishUserAction in interface IFacebookRestClient<T>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.
FacebookException
@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
IFacebookRestClient
feed_publishUserAction in interface IFacebookRestClient<T>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 entrytargetIds - 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.
FacebookException
@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.lang.String template)
throws FacebookException
IFacebookRestClient
feed_registerTemplateBundle in interface IFacebookRestClient<T>template - the template to store
FacebookException
@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates)
throws FacebookException
IFacebookRestClient
feed_registerTemplateBundle in interface IFacebookRestClient<T>templates - the templates to store
FacebookException
@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.lang.String template,
java.lang.String shortTemplate,
java.lang.String longTemplate)
throws FacebookException
IFacebookRestClient
feed_registerTemplateBundle in interface IFacebookRestClient<T>template - the template to store.shortTemplate - the short template to store.longTemplate - the long template to store.
FacebookException
@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
IFacebookRestClient
feed_registerTemplateBundle in interface IFacebookRestClient<T>longTemplate - the long template to store.actionLinks - the action links to store
FacebookException
@Deprecated
public java.lang.Long feed_registerTemplateBundle(java.util.Collection<java.lang.String> templates,
java.util.Collection<BundleStoryTemplate> shortTemplates,
BundleStoryTemplate longTemplate)
throws FacebookException
IFacebookRestClient
feed_registerTemplateBundle in interface IFacebookRestClient<T>longTemplate - the long template to store.
FacebookException@Deprecated public java.lang.Boolean getCacheAppUser()
getCacheAppUser in interface IFacebookRestClient<T>public java.lang.Long getCacheSessionExpires()
getCacheSessionExpires in interface IFacebookRestClient<T>public java.lang.String getCacheSessionKey()
getCacheSessionKey in interface IFacebookRestClient<T>public java.lang.Long getCacheUserId()
getCacheUserId in interface IFacebookRestClient<T>public boolean isDesktop()
IFacebookRestClient
isDesktop in interface IFacebookRestClient<T>
public java.lang.Boolean liveMessage_send(java.lang.Long recipient,
java.lang.String eventName,
org.json.JSONObject message)
throws FacebookException
IFacebookRestClient
liveMessage_send in interface IFacebookRestClient<T>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.
FacebookException
@Deprecated
public java.util.Collection<java.lang.String> notifications_send(java.util.Collection<java.lang.Long> recipientIds,
java.lang.CharSequence notification)
throws FacebookException
IFacebookRestClient
notifications_send in interface IFacebookRestClient<T>recipientIds - the user ids to which the message is to be sent.notification - the FBML to display on the notifications page.
FacebookException
@Deprecated
public java.util.Collection<java.lang.String> notifications_send(java.lang.CharSequence notification)
throws FacebookException
IFacebookRestClient
notifications_send in interface IFacebookRestClient<T>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
FacebookException
@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
IFacebookRestClient
notifications_send in interface IFacebookRestClient<T>recipientIds - the ids of the users to send the notification to.notification - the notification to send.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Notifications.send
public java.util.Collection<java.lang.String> notifications_sendEmailToCurrentUser(java.lang.String subject,
java.lang.String email,
java.lang.String fbml)
throws FacebookException
IFacebookRestClient
notifications_sendEmailToCurrentUser in interface IFacebookRestClient<T>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.
FacebookException - if an error happens when executing the API call.
public java.util.Collection<java.lang.String> notifications_sendEmail(java.util.Collection<java.lang.Long> recipients,
java.lang.CharSequence subject,
java.lang.CharSequence email,
java.lang.CharSequence fbml)
throws FacebookException
IFacebookRestClient
notifications_sendEmail in interface IFacebookRestClient<T>recipients - the uid's of the users to send to.subject - the subject of the email message.email - a plaintext version of the email to send.fbml - an FBML version of the email to send, the fbml parameter is a stripped-down set of FBML that allows only tags that result in text, links and linebreaks.
FacebookException - if an error happens when executing the API call.
public java.util.Collection<java.lang.String> notifications_sendTextEmailToCurrentUser(java.lang.String subject,
java.lang.String email)
throws FacebookException
IFacebookRestClient
notifications_sendTextEmailToCurrentUser in interface IFacebookRestClient<T>subject - the subject of the email message.email - a plaintext version of the email to send.
FacebookException - if an error happens when executing the API call.
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
IFacebookRestClient
notifications_sendTextEmail in interface IFacebookRestClient<T>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.
FacebookException - if an error happens when executing the API call.
public java.util.Collection<java.lang.String> notifications_sendFbmlEmailToCurrentUser(java.lang.String subject,
java.lang.String fbml)
throws FacebookException
IFacebookRestClient
notifications_sendFbmlEmailToCurrentUser in interface IFacebookRestClient<T>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.
FacebookException - if an error happens when executing the API call.
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
IFacebookRestClient
notifications_sendFbmlEmail in interface IFacebookRestClient<T>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.
FacebookException - if an error happens when executing the API call.
@Deprecated
public java.net.URL notifications_send(java.util.Collection<java.lang.Long> recipientIds,
java.lang.CharSequence notification,
java.lang.CharSequence email)
throws FacebookException
IFacebookRestClient
notifications_send in interface IFacebookRestClient<T>recipientIds - the user ids to which the message is to be sentnotification - the FBML to display on the notifications pageemail - the FBML to send to the specified users via email, or null if no email should be sent
FacebookException
@Deprecated
public java.lang.String notifications_sendEmail(java.util.Collection<java.lang.Long> recipientIds,
java.lang.CharSequence subject,
java.lang.CharSequence fbml)
throws FacebookException
IFacebookRestClient
notifications_sendEmail in interface IFacebookRestClient<T>recipientIds - up to 100 user ids to which the message is to be sentsubject - 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
FacebookException
@Deprecated
public java.lang.String notifications_sendEmailPlain(java.util.Collection<java.lang.Long> recipientIds,
java.lang.CharSequence subject,
java.lang.CharSequence text)
throws FacebookException
IFacebookRestClient
notifications_sendEmailPlain in interface IFacebookRestClient<T>recipientIds - up to 100 user ids to which the message is to be sentsubject - the subject of the notification email (optional)text - the plain text to send to the specified users via email
FacebookException
@Deprecated
public java.lang.String notifications_sendEmailStr(java.util.Collection<java.lang.Long> recipientIds,
java.lang.CharSequence subject,
java.lang.CharSequence fbml,
java.lang.CharSequence text)
throws FacebookException
IFacebookRestClientfbml or text must be specified.
notifications_sendEmailStr in interface IFacebookRestClient<T>recipientIds - up to 100 user ids to which the message is to be sentsubject - 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 allowedtext - the plain text to send to the specified users via email
FacebookException
public boolean pages_isAdmin(java.lang.Long pageId)
throws FacebookException
IFacebookRestClientpageId.
pages_isAdmin in interface IFacebookRestClient<T>pageId - the ID of the page
FacebookException
public boolean pages_isAppAdded(java.lang.Long pageId)
throws FacebookException
IFacebookRestClient
pages_isAppAdded in interface IFacebookRestClient<T>pageId - the ID of the page
FacebookException
public boolean pages_isFan(java.lang.Long pageId,
java.lang.Long userId)
throws FacebookException
IFacebookRestClientpageId.
pages_isFan in interface IFacebookRestClient<T>pageId - the ID of the pageuserId - the ID of the user (defaults to the logged-in user if null)
FacebookException
public boolean pages_isFan(java.lang.Long pageId)
throws FacebookException
IFacebookRestClientpageId.
pages_isFan in interface IFacebookRestClient<T>pageId - the ID of the page
FacebookException
public boolean permissions_grantApiAccess(java.lang.String apiKey,
java.util.Set<FacebookMethod> methods)
throws FacebookException
IFacebookRestClient
permissions_grantApiAccess in interface IFacebookRestClient<T>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.
FacebookException
public boolean permissions_grantFullApiAccess(java.lang.String apiKey)
throws FacebookException
IFacebookRestClient
permissions_grantFullApiAccess in interface IFacebookRestClient<T>apiKey - the API-key of the application to grant permission to.
FacebookException
public boolean permissions_revokeApiAccess(java.lang.String apiKey)
throws FacebookException
IFacebookRestClient
permissions_revokeApiAccess in interface IFacebookRestClient<T>apiKey - the API key of the application to remove permissions for.
FacebookException
public boolean photos_addTag(java.lang.String photoId,
java.lang.Long taggedUserId,
java.lang.Double pct,
java.lang.Double pct2)
throws FacebookException
IFacebookRestClient
photos_addTag in interface IFacebookRestClient<T>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.
FacebookException
public boolean photos_addTag(java.lang.String photoId,
java.lang.CharSequence tagText,
java.lang.Double pct,
java.lang.Double pct2)
throws FacebookException
IFacebookRestClient
photos_addTag in interface IFacebookRestClient<T>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.
FacebookException
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
IFacebookRestClient
photos_addTag in interface IFacebookRestClient<T>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.
FacebookException
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
IFacebookRestClient
photos_addTag in interface IFacebookRestClient<T>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.
FacebookException
@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
IFacebookRestClient
profile_setFBML in interface IFacebookRestClient<T>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.
FacebookException
@Deprecated
public boolean profile_setFBML(java.lang.Long userId,
java.lang.String profileFbml,
java.lang.String actionFbml,
java.lang.String mobileFbml)
throws FacebookException
profile_setFBML in interface IFacebookRestClient<T>FacebookExceptionIFacebookRestClient.profile_setFBML(Long, String, String, String, String)
@Deprecated
public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
java.lang.CharSequence profileActionFbmlMarkup)
throws FacebookException
IFacebookRestClient
profile_setFBML in interface IFacebookRestClient<T>profileFbmlMarkup - the FBML for the profile boxprofileActionFbmlMarkup - the FBML for the profile actions
FacebookException
@Deprecated
public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
java.lang.CharSequence profileActionFbmlMarkup,
java.lang.Long profileId)
throws FacebookException
IFacebookRestClientprofileId. Refer to the FBML documentation for a
description of the markup and its role in various contexts.
profile_setFBML in interface IFacebookRestClient<T>profileFbmlMarkup - the FBML for the profile boxprofileActionFbmlMarkup - the FBML for the profile actionsprofileId - a page or user ID (null for the logged-in user)
FacebookException
@Deprecated
public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
java.lang.CharSequence profileActionFbmlMarkup,
java.lang.CharSequence mobileFbmlMarkup,
java.lang.Long profileId)
throws FacebookException
IFacebookRestClientprofileId. Refer to the FBML documentation
for a description of the markup and its role in various contexts.
profile_setFBML in interface IFacebookRestClient<T>profileFbmlMarkup - the FBML for the profile boxprofileActionFbmlMarkup - the FBML for the profile actionsmobileFbmlMarkup - the FBML for mobile devicesprofileId - a page or user ID (null for the logged-in user)
FacebookException
@Deprecated
public boolean profile_setFBML(java.lang.CharSequence profileFbmlMarkup,
java.lang.CharSequence profileActionFbmlMarkup,
java.lang.CharSequence mobileFbmlMarkup)
throws FacebookException
IFacebookRestClient
profile_setFBML in interface IFacebookRestClient<T>profileFbmlMarkup - the FBML for the profile boxprofileActionFbmlMarkup - the FBML for the profile actionsmobileFbmlMarkup - the FBML for mobile devices
FacebookException
@Deprecated
public boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup)
throws FacebookException
IFacebookRestClient
profile_setMobileFBML in interface IFacebookRestClient<T>fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
FacebookException
@Deprecated
public boolean profile_setMobileFBML(java.lang.CharSequence fbmlMarkup,
java.lang.Long profileId)
throws FacebookException
IFacebookRestClientprofileId on mobile devices.
profile_setMobileFBML in interface IFacebookRestClient<T>fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contextsprofileId - a page or user ID (null for the logged-in user)
FacebookException
@Deprecated
public boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup)
throws FacebookException
IFacebookRestClient
profile_setProfileActionFBML in interface IFacebookRestClient<T>fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
FacebookException
@Deprecated
public boolean profile_setProfileActionFBML(java.lang.CharSequence fbmlMarkup,
java.lang.Long profileId)
throws FacebookException
IFacebookRestClientprofileId.
profile_setProfileActionFBML in interface IFacebookRestClient<T>fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contextsprofileId - a page or user ID (null for the logged-in user)
FacebookException
@Deprecated
public boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup)
throws FacebookException
IFacebookRestClient
profile_setProfileFBML in interface IFacebookRestClient<T>fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contexts
FacebookException
@Deprecated
public boolean profile_setProfileFBML(java.lang.CharSequence fbmlMarkup,
java.lang.Long profileId)
throws FacebookException
IFacebookRestClientprofileId.
profile_setProfileFBML in interface IFacebookRestClient<T>fbmlMarkup - refer to the FBML documentation for a description of the markup and its role in various contextsprofileId - a page or user ID (null for the logged-in user)
FacebookException
public boolean sms_canSend()
throws FacebookException
IFacebookRestClient
sms_canSend in interface IFacebookRestClient<T>FacebookException - if an error happens when executing the API call.
public boolean sms_canSend(java.lang.Long userId)
throws FacebookException
IFacebookRestClient
sms_canSend in interface IFacebookRestClient<T>userId - the UID of the user to check permissions for
FacebookException - if an error happens when executing the API call.
public java.lang.Integer sms_send(java.lang.String message,
java.lang.Integer smsSessionId,
boolean makeNewSession)
throws FacebookException
IFacebookRestClient
sms_send in interface IFacebookRestClient<T>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.
FacebookException - if an error happens when executing the API call.
public java.lang.Integer sms_send(java.lang.Long userId,
java.lang.String message,
java.lang.Integer smsSessionId,
boolean makeNewSession)
throws FacebookException
IFacebookRestClient
sms_send in interface IFacebookRestClient<T>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.
FacebookException - if an error happens when executing the API call.
public int sms_sendMessageWithSession(java.lang.Long userId,
java.lang.CharSequence message)
throws FacebookException
IFacebookRestClientuserId, 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.
sms_sendMessageWithSession in interface IFacebookRestClient<T>userId - a user IDmessage - the message to be sent via SMS
#sms_sendResponse)
FacebookException - in case of error, e.g. SMS is not enabledFacebookExtendedPerm.SMS,
Developers Wiki: Mobile: Application Generated Messages,
Developers Wiki: Mobile: Workflow
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
stream_publish in interface IFacebookRestClient<T>FacebookException
public boolean stream_remove(java.lang.String postId,
java.lang.Long userId)
throws FacebookException
stream_remove in interface IFacebookRestClient<T>FacebookException
public java.lang.String stream_addComment(java.lang.String postId,
java.lang.String comment,
java.lang.Long userId)
throws FacebookException
stream_addComment in interface IFacebookRestClient<T>FacebookException
public boolean stream_removeComment(java.lang.String commentId,
java.lang.Long userId)
throws FacebookException
stream_removeComment in interface IFacebookRestClient<T>FacebookException
public boolean stream_addLike(java.lang.String postId,
java.lang.Long userId)
throws FacebookException
stream_addLike in interface IFacebookRestClient<T>FacebookException
public boolean stream_removeLike(java.lang.String postId,
java.lang.Long userId)
throws FacebookException
stream_removeLike in interface IFacebookRestClient<T>FacebookException
public boolean users_clearStatus()
throws FacebookException
IFacebookRestClient
users_clearStatus in interface IFacebookRestClient<T>FacebookExceptionIFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission),
FacebookExtendedPerm.STATUS_UPDATE,
http://wiki.developers.facebook.com/index.php/Users.setStatus
public long users_getLoggedInUser()
throws FacebookException
IFacebookRestClient
users_getLoggedInUser in interface IFacebookRestClient<T>FacebookException
public boolean users_hasAppPermission(Permission perm)
throws FacebookException
users_hasAppPermission in interface IFacebookRestClient<T>FacebookExceptionIFacebookRestClient.users_hasAppPermission(Permission,Long),
Users.hasAppPermission
public boolean users_hasAppPermission(Permission perm,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
users_hasAppPermission in interface IFacebookRestClient<T>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.
FacebookException
public boolean users_isAppUser()
throws FacebookException
users_isAppUser in interface IFacebookRestClient<T>FacebookExceptionIFacebookRestClient.users_isAppUser(Long)
public boolean users_isAppUser(java.lang.Long userId)
throws FacebookException
IFacebookRestClient
users_isAppUser in interface IFacebookRestClient<T>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.
FacebookException
public boolean users_setStatus(java.lang.String status)
throws FacebookException
IFacebookRestClient
users_setStatus in interface IFacebookRestClient<T>FacebookExceptionIFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission),
FacebookExtendedPerm.STATUS_UPDATE,
http://wiki.developers.facebook.com/index.php/Users.setStatus
public boolean users_setStatus(java.lang.String status,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
users_setStatus in interface IFacebookRestClient<T>FacebookExceptionIFacebookRestClient.users_hasAppPermission(com.google.code.facebookapi.Permission),
FacebookExtendedPerm.STATUS_UPDATE,
http://wiki.developers.facebook.com/index.php/Users.setStatus
public boolean users_setStatus(java.lang.String newStatus,
boolean clear)
throws FacebookException
IFacebookRestClient
users_setStatus in interface IFacebookRestClient<T>newStatus - the new status message to set.clear - whether or not to clear the old status message.
FacebookException - if an error happens when executing the API call.http://wiki.developers.facebook.com/index.php/Users.setStatus
public boolean users_setStatus(java.lang.String newStatus,
boolean clear,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
users_setStatus in interface IFacebookRestClient<T>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.
FacebookException - if an error happens when executing the API call.http://wiki.developers.facebook.com/index.php/Users.setStatus
public boolean users_setStatus(java.lang.String newStatus,
boolean clear,
boolean statusIncludesVerb)
throws FacebookException
IFacebookRestClient
users_setStatus in interface IFacebookRestClient<T>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)
FacebookException - if an error happens when executing the API call.http://wiki.developers.facebook.com/index.php/Users.setStatus
public boolean users_setStatus(java.lang.String newStatus,
boolean clear,
boolean statusIncludesVerb,
java.lang.Long userId)
throws FacebookException
IFacebookRestClient
users_setStatus in interface IFacebookRestClient<T>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.
FacebookException - if an error happens when executing the API call.http://wiki.developers.facebook.com/index.php/Users.setStatus
public java.lang.Long links_post(java.lang.Long userId,
java.lang.String url,
java.lang.String comment)
throws FacebookException
IFacebookRestClient
links_post in interface IFacebookRestClient<T>userId - the user IDurl - the URL to link tocomment - the user-generated comment about the URL
FacebookException
public int intl_uploadNativeStrings(java.util.Map<java.lang.String,java.lang.String> native_strings)
throws FacebookException
IFacebookRestClient
intl_uploadNativeStrings in interface IFacebookRestClient<T>native_strings - A Map, from text to be translated, to their description. It will be converted to what facebook expects: A JSON-encoded array of strings to translate.
Each element of the string array is an object, with text storing the actual string, description storing the description of the text.
FacebookExceptionhttp://wiki.developers.facebook.com/index.php/Intl.uploadNativeStrings
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||