public interface GraphApi
| Modifier and Type | Field and Description |
|---|---|
static String |
GRAPH_API_URL |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String objectId)
Deletes an object.
|
void |
delete(String objectId,
String connectionName)
Deletes an object connection.
|
<T> List<T> |
fetchConnections(String objectId,
String connectionName,
Class<T> type,
Map<String,String> queryParameters)
Fetches connections, extracting them into a collection of the given Java type Requires appropriate permission to fetch
the object connection.
|
<T> List<T> |
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.
|
<T> T |
fetchObject(String objectId,
Class<T> type)
Fetches an object, extracting it into the given Java type Requires appropriate permission to fetch the object.
|
<T> T |
fetchObject(String objectId,
Class<T> type,
Map<String,String> queryParameters)
Fetches an object, extracting it into the given Java type Requires appropriate permission to fetch the object.
|
void |
post(String objectId,
String connectionName,
Map<String,String> data)
Publishes data to an object's connection.
|
String |
publish(String objectId,
String connectionName,
Map<String,Object> data)
Publishes data to an object's connection.
|
static final String GRAPH_API_URL
<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, Map<String,String> queryParameters)
objectId - the Facebook object's IDtype - the Java type to fetchqueryParameters - query parameters to include in the request<T> List<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> List<T> fetchConnections(String objectId, String connectionName, Class<T> type, Map<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 requestbyte[] 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, Map<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, Map<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 IDCopyright © 2011-2013 Seam Framework. All Rights Reserved.