public class GraphApiImpl extends FacebookBaseService implements GraphApi
GRAPH_API_URL| Constructor and Description |
|---|
GraphApiImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String objectId)
Deletes an object.
|
void |
delete(String objectId,
String connectionType)
Deletes an object connection.
|
<T> List<T> |
fetchConnections(String objectId,
String connectionType,
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 connectionType,
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 connectionType,
ImageType type)
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 connectionType,
Map<String,String> data)
Publishes data to an object's connection.
|
String |
publish(String objectId,
String connectionType,
Map<String,Object> data)
Publishes data to an object's connection.
|
getApiRootUrl, getQualifierbuildUri, buildUri, buildUri, buildUripublic <T> T fetchObject(String objectId, Class<T> type)
GraphApifetchObject in interface GraphApiobjectId - the Facebook object's IDtype - the Java type to fetchpublic <T> T fetchObject(String objectId, Class<T> type, Map<String,String> queryParameters)
GraphApifetchObject in interface GraphApiobjectId - the Facebook object's IDtype - the Java type to fetchqueryParameters - query parameters to include in the requestpublic <T> List<T> fetchConnections(String objectId, String connectionType, Class<T> type, String... fields)
GraphApifetchConnections in interface GraphApiobjectId - the ID of the object to retrieve the connections for.connectionType - the connection name.type - the Java type of each connection.fields - the fields to include in the response.public <T> List<T> fetchConnections(String objectId, String connectionType, Class<T> type, Map<String,String> queryParameters)
GraphApifetchConnections in interface GraphApiobjectId - the ID of the object to retrieve the connections for.connectionType - the connection name.type - the Java type of each connection.queryParameters - query parameters to include in the requestpublic byte[] fetchImage(String objectId, String connectionType, ImageType type)
GraphApifetchImage in interface GraphApiobjectId - the object IDconnectionType - the connection nametype - the type of image to retrieve (eg., small, normal, large, or square)public String publish(String objectId, String connectionType, Map<String,Object> data)
GraphApipublic void post(String objectId, String connectionType, Map<String,String> data)
GraphApipublic void delete(String objectId)
GraphApiCopyright © 2011-2013 Seam Framework. All Rights Reserved.