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.Modifier 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)
FacebookClient.getLoginDialogUrl(String appId, String redirectUri, ScopeBuilder scope, Parameter... additionalParameters)
generates the login dialog urlprotected String
DefaultFacebookClient.makeRequest(String endpoint, boolean executeAsPost, boolean executeAsDelete, List<BinaryAttachment> binaryAttachments, 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, 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
<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
, 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. -
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
.