|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphApi
Defines low-level operations against Facebook's Graph API
Field Summary | |
---|---|
static String |
GRAPH_API_URL
|
Method Summary | ||
---|---|---|
void |
delete(String objectId)
Deletes an object. |
|
void |
delete(String objectId,
String connectionName)
Deletes an object connection. |
|
|
fetchConnections(String objectId,
String connectionName,
Class<T> type,
MultiValueMap<String,String> queryParameters)
Fetches connections, extracting them into a collection of the given Java type Requires appropriate permission to fetch the object connection. |
|
|
fetchConnections(String objectId,
String connectionName,
Class<T> type,
MultiValueMap<String,String> queryParameters,
String... fields)
Fetches connections, extracting them into a collection of the given Java type Requires appropriate permission to fetch the object connection. |
|
|
fetchConnections(String objectId,
String connectionName,
Class<T> type,
String... fields)
Fetches connections, extracting them into a collection of the given Java type Requires appropriate permission to fetch the object connection. |
|
byte[] |
fetchImage(String objectId,
String connectionName,
ImageType imageType)
Fetches an image as an array of bytes. |
|
|
fetchObject(String objectId,
Class<T> type)
Fetches an object, extracting it into the given Java type Requires appropriate permission to fetch the object. |
|
|
fetchObject(String objectId,
Class<T> type,
MultiValueMap<String,String> queryParameters)
Fetches an object, extracting it into the given Java type Requires appropriate permission to fetch the object. |
|
String |
getApplicationNamespace()
|
|
void |
post(String objectId,
String connectionName,
MultiValueMap<String,String> data)
Publishes data to an object's connection. |
|
String |
publish(String objectId,
String connectionName,
MultiValueMap<String,Object> data)
Publishes data to an object's connection. |
Field Detail |
---|
static final String GRAPH_API_URL
Method Detail |
---|
<T> T fetchObject(String objectId, Class<T> type)
objectId
- the Facebook object's IDtype
- the Java type to fetch
<T> T fetchObject(String objectId, Class<T> type, MultiValueMap<String,String> queryParameters)
objectId
- the Facebook object's IDtype
- the Java type to fetchqueryParameters
- query parameters to include in the request
<T> PagedList<T> fetchConnections(String objectId, String connectionName, Class<T> type, String... fields)
objectId
- the ID of the object to retrieve the connections for.connectionName
- the connection name.type
- the Java type of each connection.fields
- the fields to include in the response.
<T> PagedList<T> fetchConnections(String objectId, String connectionName, Class<T> type, MultiValueMap<String,String> queryParameters)
objectId
- the ID of the object to retrieve the connections for.connectionName
- the connection name.type
- the Java type of each connection.queryParameters
- query parameters to include in the request
<T> PagedList<T> fetchConnections(String objectId, String connectionName, Class<T> type, MultiValueMap<String,String> queryParameters, String... fields)
objectId
- the ID of the object to retrieve the connections for.connectionName
- the connection name.type
- the Java type of each connection.queryParameters
- query parameters to include in the requestfields
- the fields to include in the response.
byte[] fetchImage(String objectId, String connectionName, ImageType imageType)
objectId
- the object IDconnectionName
- the connection nameimageType
- the type of image to retrieve (eg., small, normal, large, or square)
String publish(String objectId, String connectionName, MultiValueMap<String,Object> data)
objectId
- the object ID to publish to.connectionName
- the connection name to publish to.data
- the data to publish to the connection.
void post(String objectId, String connectionName, MultiValueMap<String,String> data)
objectId
- the object ID to publish to.connectionName
- the connection name to publish to.data
- the data to publish to the connection.void delete(String objectId)
objectId
- the object IDvoid delete(String objectId, String connectionName)
objectId
- the object IDconnectionName
- the connection nameString getApplicationNamespace()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |