Package | Description |
---|---|
com.restfb |
Contains types used to interact with the Facebook Graph API and the Legacy Facebook REST API.
|
Modifier and Type | Method and Description |
---|---|
static Parameter |
Parameter.with(String name,
Object value)
Factory method which provides an instance with the given
name and
value . |
static Parameter |
Parameter.with(String name,
Object value,
JsonMapper jsonMapper)
Factory method which provides an instance with the given
name and
value , using the provided jsonMapper to turn value
into a JSON string. |
Modifier and Type | Method and Description |
---|---|
<T> T |
LegacyFacebookClient.execute(String method,
Class<T> resultType,
Parameter... parameters)
Executes a Facebook API method with the given
parameters , mapping
the API response to a single instance of type resultType . |
<T> T |
DefaultLegacyFacebookClient.execute(String method,
Class<T> resultType,
Parameter... parameters) |
void |
LegacyFacebookClient.execute(String method,
Parameter... parameters)
Executes a Facebook API method with the given
parameters , ignoring
the response. |
void |
DefaultLegacyFacebookClient.execute(String method,
Parameter... parameters) |
<T> T |
LegacyFacebookClient.execute(String method,
String sessionKey,
Class<T> resultType,
Parameter... parameters)
Deprecated.
Use
LegacyFacebookClient.execute(String, Class, Parameter...) instead.
Facebook is moving to OAuth and will stop supporting the old
session key authentication scheme soon. |
<T> T |
DefaultLegacyFacebookClient.execute(String method,
String sessionKey,
Class<T> resultType,
Parameter... parameters) |
void |
LegacyFacebookClient.execute(String method,
String sessionKey,
Parameter... parameters)
Deprecated.
Use
LegacyFacebookClient.execute(String, Parameter...) instead. Facebook is
moving to OAuth and will stop supporting the old session key
authentication scheme soon. |
void |
DefaultLegacyFacebookClient.execute(String method,
String sessionKey,
Parameter... parameters) |
<T> List<T> |
LegacyFacebookClient.executeForList(String method,
Class<T> resultType,
Parameter... parameters)
Executes a Facebook API method with the given
parameters , mapping
the API response to a List of instances of type resultType . |
<T> List<T> |
DefaultLegacyFacebookClient.executeForList(String method,
Class<T> resultType,
Parameter... parameters) |
<T> List<T> |
LegacyFacebookClient.executeForList(String method,
String sessionKey,
Class<T> resultType,
Parameter... parameters)
Deprecated.
Use
LegacyFacebookClient.executeForList(String, Class, Parameter...)
instead. Facebook is moving to OAuth and will stop supporting
the old session key authentication scheme soon. |
<T> List<T> |
DefaultLegacyFacebookClient.executeForList(String method,
String sessionKey,
Class<T> resultType,
Parameter... parameters) |
<T> T |
LegacyFacebookClient.executeMultiquery(Map<String,String> queries,
Class<T> resultType,
Parameter... additionalParameters)
Executes the
fql.multiquery API call, mapping the API response to a single
instance of type resultType . |
<T> T |
FacebookClient.executeMultiquery(Map<String,String> queries,
Class<T> objectType,
Parameter... parameters)
Executes an FQL
multiquery, which allows you to batch multiple queries into a single
request.
|
<T> T |
DefaultLegacyFacebookClient.executeMultiquery(Map<String,String> queries,
Class<T> resultType,
Parameter... additionalParameters) |
<T> T |
DefaultFacebookClient.executeMultiquery(Map<String,String> queries,
Class<T> objectType,
Parameter... parameters) |
<T> T |
LegacyFacebookClient.executeMultiquery(Map<String,String> queries,
String sessionKey,
Class<T> resultType,
Parameter... additionalParameters)
Deprecated.
Use
LegacyFacebookClient.executeMultiquery(java.util.Map, Class, Parameter...)
instead. Facebook is moving to OAuth and will stop supporting
the old session key authentication scheme soon. |
<T> T |
DefaultLegacyFacebookClient.executeMultiquery(Map<String,String> queries,
String sessionKey,
Class<T> resultType,
Parameter... additionalParameters) |
<T> List<T> |
FacebookClient.executeQuery(String query,
Class<T> objectType,
Parameter... parameters)
|
<T> List<T> |
DefaultFacebookClient.executeQuery(String query,
Class<T> objectType,
Parameter... parameters) |
<T> Connection<T> |
FacebookClient.fetchConnection(String connection,
Class<T> connectionType,
Parameter... parameters)
Fetches a Graph API
Connection type, mapping the result to an
instance of connectionType . |
<T> Connection<T> |
DefaultFacebookClient.fetchConnection(String connection,
Class<T> connectionType,
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 of
objectType . |
<T> T |
DefaultFacebookClient.fetchObject(String object,
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 of
objectType . |
<T> T |
DefaultFacebookClient.fetchObjects(List<String> ids,
Class<T> objectType,
Parameter... parameters) |
protected String |
DefaultFacebookClient.makeRequest(String endpoint,
boolean useLegacyEndpoint,
boolean executeAsPost,
boolean executeAsDelete,
InputStream binaryAttachment,
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.
|
protected String |
DefaultLegacyFacebookClient.makeRequest(String method,
String sessionKey,
Parameter... parameters)
Coordinates the process of verifying and transforming API parameters,
executing the API POST, and processing the response we receive from the
endpoint.
|
<T> T |
FacebookClient.publish(String connection,
Class<T> objectType,
InputStream binaryAttachment,
Parameter... parameters)
Performs a Graph API
publish operation on the given
connection and includes a file -
a photo, for example - in the publish request, and mapping the result to an
instance of objectType . |
<T> T |
DefaultFacebookClient.publish(String connection,
Class<T> objectType,
InputStream binaryAttachment,
Parameter... parameters) |
<T> T |
FacebookClient.publish(String connection,
Class<T> objectType,
Parameter... parameters)
Performs a Graph API
publish operation on the given
connection , mapping the result
to an instance of objectType . |
<T> T |
DefaultFacebookClient.publish(String connection,
Class<T> objectType,
Parameter... parameters) |
protected String |
DefaultFacebookClient.toParameterString(Parameter... parameters)
Generate the parameter string to be included in the Facebook API request.
|
protected String |
DefaultLegacyFacebookClient.toParameterString(String method,
String sessionKey,
Parameter... parameters)
Given basic request information, generate the parameter string to be
included in the Facebook API POST.
|
Copyright © 2014. All rights reserved.