|
|||||||||
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 java.lang.String |
CONNECTION_URL
|
static java.lang.String |
GRAPH_API_URL
|
static java.lang.String |
OBJECT_URL
|
Method Summary | ||
---|---|---|
void |
delete(java.lang.String objectId)
Deletes an object. |
|
void |
delete(java.lang.String objectId,
java.lang.String connectionType)
Deletes an object connection. |
|
|
fetchConnections(java.lang.String objectId,
java.lang.String connectionType,
java.lang.Class<T> type,
java.lang.String... fields)
Fetches connections, extracting them into a Java type via the given ResponseExtractor . |
|
byte[] |
fetchImage(java.lang.String objectId,
java.lang.String connectionType,
ImageType imageType)
Fetches an image as an array of bytes. |
|
|
fetchObject(java.lang.String objectId,
java.lang.Class<T> type)
Fetches an object, extracting it into the type via the given ResponseExtractor . |
|
void |
post(java.lang.String objectId,
java.lang.String connectionType,
MultiValueMap<java.lang.String,java.lang.String> data)
Publishes data to an object's connection. |
|
java.lang.String |
publish(java.lang.String objectId,
java.lang.String connectionType,
MultiValueMap<java.lang.String,java.lang.String> data)
Publishes data to an object's connection. |
Field Detail |
---|
static final java.lang.String GRAPH_API_URL
static final java.lang.String OBJECT_URL
static final java.lang.String CONNECTION_URL
Method Detail |
---|
<T> T fetchObject(java.lang.String objectId, java.lang.Class<T> type)
ResponseExtractor
.
Requires appropriate permission to fetch the object.
objectId
- the Facebook object's IDtype
- the Java type to fetch
<T> T fetchConnections(java.lang.String objectId, java.lang.String connectionType, java.lang.Class<T> type, java.lang.String... fields)
ResponseExtractor
.
Requires appropriate permission to fetch the object connection.
objectId
- the ID of the object to retrieve the connections for.connectionType
- the connection type.type
- the Java type to fetchfields
- the fields to include in the response.
byte[] fetchImage(java.lang.String objectId, java.lang.String connectionType, ImageType imageType)
objectId
- the object IDconnectionType
- the connection typeimageType
- the type of image to retrieve (eg., small, normal, large, or square)
java.lang.String publish(java.lang.String objectId, java.lang.String connectionType, MultiValueMap<java.lang.String,java.lang.String> data)
objectId
- the object ID to publish to.connectionType
- the connection type to publish to.data
- the data to publish to the connection.
void post(java.lang.String objectId, java.lang.String connectionType, MultiValueMap<java.lang.String,java.lang.String> data)
objectId
- the object ID to publish to.connectionType
- the connection type to publish to.data
- the data to publish to the connection.void delete(java.lang.String objectId)
objectId
- the object IDvoid delete(java.lang.String objectId, java.lang.String connectionType)
objectId
- the object IDconnectionType
- the connection type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |