Uses of Class
com.restfb.Parameter
Package
Description
Contains types used to interact with the Facebook
Graph API.
Support classes for RestFB's implementation of the
Facebook Batch API.
-
Uses of Parameter in com.restfb
Modifier and TypeMethodDescriptionstatic Parameter
Factory method which provides an instance with the givenname
andvalue
.static Parameter
Parameter.with
(String name, Object value, JsonMapper jsonMapper) Factory method which provides an instance with the givenname
andvalue
, using the providedjsonMapper
to turnvalue
into a JSON string.static Parameter
Parameter.withFields
(String fieldList) convenience factory method which needs a comma separated list of fields that the dev likes to fetch from the APIstatic Parameter
Parameter.withLimit
(int limit) convenience factory method which creates aParameter
object to fetch data from API with given limitstatic Parameter
Parameter.withLocale
(Locale locale) convenience factory method which creates aParameter
object to fetch data from API with given localestatic Parameter
Parameter.withMessage
(Object obj) convenience factory method which creates aParameter
object to post an object with a message parameter to the APIstatic Parameter
Parameter.withMetadata()
Convenience factory method that creates aParameter
object to retrieve the metadata from the API.static Parameter
convenience factory method which creates aParameter
object to query some information e.g. searching profiles the APIModifier and TypeMethodDescriptionboolean
DefaultFacebookClient.deleteObject
(String object, Parameter... parameters) boolean
FacebookClient.deleteObject
(String object, Parameter... parameters) Performs a Graph API delete operation on the givenobject
.<T> Connection<T>
DefaultFacebookClient.fetchConnection
(String connection, Class<T> connectionType, Parameter... parameters) <T> Connection<T>
FacebookClient.fetchConnection
(String connection, Class<T> connectionType, Parameter... parameters) Fetches a Graph APIConnection
type, mapping the result to an instance ofconnectionType
.<T> T
DefaultFacebookClient.fetchObject
(String object, Class<T> objectType, Parameter... parameters) <T> T
FacebookClient.fetchObject
(String object, Class<T> objectType, Parameter... parameters) Fetches a single Graph API object, mapping the result to an instance ofobjectType
.<T> T
DefaultFacebookClient.fetchObjects
(List<String> ids, Class<T> objectType, Parameter... parameters) <T> T
FacebookClient.fetchObjects
(List<String> ids, Class<T> objectType, Parameter... parameters) Fetches multiple Graph API objects in a single call, mapping the results to an instance ofobjectType
.DefaultFacebookClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, Parameter... parameters) DefaultFacebookClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, String state, Parameter... parameters) DefaultInstagramClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, Parameter... parameters) Deprecated.DefaultInstagramClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, String state, Parameter... parameters) Deprecated.DefaultInstagramLoginClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, Parameter... parameters) DefaultInstagramLoginClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, String state, Parameter... parameters) DefaultThreadsClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, Parameter... parameters) DefaultThreadsClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, String state, Parameter... parameters) FacebookClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, Parameter... additionalParameters) generates the login dialog urlFacebookClient.getLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, String state, Parameter... parameters) generates the login dialog urlprotected String
DefaultFacebookClient.makeRequest
(String endpoint, boolean executeAsPost, boolean executeAsDelete, List<BinaryAttachment> binaryAttachments, Body body, Parameter... parameters) Coordinates the process of executing the API request GET/POST and processing the response we receive from the endpoint.protected String
DefaultFacebookClient.makeRequest
(String endpoint, boolean executeAsPost, boolean executeAsDelete, List<BinaryAttachment> binaryAttachments, Parameter... parameters) protected String
DefaultFacebookClient.makeRequest
(String endpoint, Parameter... parameters) Coordinates the process of executing the API request GET/POST and processing the response we receive from the endpoint.<T> T
DefaultFacebookClient.publish
(String connection, Class<T> objectType, BinaryAttachment binaryAttachment, Parameter... parameters) <T> T
DefaultFacebookClient.publish
(String connection, Class<T> objectType, Body body, Parameter... parameters) <T> T
<T> T
DefaultFacebookClient.publish
(String connection, Class<T> objectType, List<BinaryAttachment> binaryAttachments, Parameter... parameters) <T> T
FacebookClient.publish
(String connection, Class<T> objectType, BinaryAttachment binaryAttachment, Parameter... parameters) Performs a Graph API publish operation on the givenconnection
and includes a file - a photo, for example - in the publish request, and mapping the result to an instance ofobjectType
.<T> T
Performs a Graph API publish operation on the givenconnection
and includes special body in the publish request, and mapping the result to an instance ofobjectType
.<T> T
Performs a Graph API publish operation on the givenconnection
, mapping the result to an instance ofobjectType
.<T> T
FacebookClient.publish
(String connection, Class<T> objectType, List<BinaryAttachment> binaryAttachments, Parameter... parameters) Performs a Graph API publish operation on the givenconnection
and includes some files - photos, for example - in the publish request, and mapping the result to an instance ofobjectType
.protected String
DefaultFacebookClient.toParameterString
(boolean withJsonParameter, Parameter... parameters) Generate the parameter string to be included in the Facebook API request.protected String
DefaultFacebookClient.toParameterString
(Parameter... parameters) Generate the parameter string to be included in the Facebook API request.Modifier and TypeMethodDescriptionprotected String
DefaultFacebookClient.getGenericLoginDialogUrl
(String appId, String redirectUri, ScopeBuilder scope, Supplier<String> endpointSupplier, String state, List<Parameter> parameters) -
Uses of Parameter in com.restfb.batch
Modifier and TypeMethodDescriptionSets the request body parameters for the request generated by this builder, for exampleParameter.with("message", "Test status update")
.BatchRequest.BatchRequestBuilder.parameters
(Parameter... parameters) Specifies URL parameters for the request generated by this builder.Modifier and TypeMethodDescriptionprotected String
BatchRequest.generateParameterString
(List<Parameter> parameters) For a list of parameters, generate a URL query string.ModifierConstructorDescriptionprotected
BatchRequest
(String relativeUrl, List<Parameter> parameters, String method, List<BatchHeader> headers, List<Parameter> bodyParameters, String attachedFiles, String dependsOn, String name, boolean omitResponseOnSuccess) Designed to be invoked by instances ofBatchRequest.BatchRequestBuilder
.