|
Spring Social Facebook | ||||||||
| 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 |
GRAPH_API_URL
|
| Method Summary | ||
|---|---|---|
void |
delete(java.lang.String objectId)
Deletes an object. |
|
void |
delete(java.lang.String objectId,
java.lang.String connectionName)
Deletes an object connection. |
|
|
fetchConnections(java.lang.String objectId,
java.lang.String connectionName,
java.lang.Class<T> type,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> queryParameters)
Fetches connections, extracting them into a collection of the given Java type Requires appropriate permission to fetch the object connection. |
|
|
fetchConnections(java.lang.String objectId,
java.lang.String connectionName,
java.lang.Class<T> type,
java.lang.String... fields)
Fetches connections, extracting them into a collection of the given Java type Requires appropriate permission to fetch the object connection. |
|
byte[] |
fetchImage(java.lang.String objectId,
java.lang.String connectionName,
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 given Java type Requires appropriate permission to fetch the object. |
|
|
fetchObject(java.lang.String objectId,
java.lang.Class<T> type,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> queryParameters)
Fetches an object, extracting it into the given Java type Requires appropriate permission to fetch the object. |
|
java.lang.String |
getApplicationNamespace()
|
|
void |
post(java.lang.String objectId,
java.lang.String connectionName,
org.springframework.util.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 connectionName,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.Object> data)
Publishes data to an object's connection. |
|
| Field Detail |
|---|
static final java.lang.String GRAPH_API_URL
| Method Detail |
|---|
<T> T fetchObject(java.lang.String objectId,
java.lang.Class<T> type)
objectId - the Facebook object's IDtype - the Java type to fetch
<T> T fetchObject(java.lang.String objectId,
java.lang.Class<T> type,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> queryParameters)
objectId - the Facebook object's IDtype - the Java type to fetchqueryParameters - query parameters to include in the request
<T> PagedList<T> fetchConnections(java.lang.String objectId,
java.lang.String connectionName,
java.lang.Class<T> type,
java.lang.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(java.lang.String objectId,
java.lang.String connectionName,
java.lang.Class<T> type,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.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
byte[] fetchImage(java.lang.String objectId,
java.lang.String connectionName,
ImageType imageType)
objectId - the object IDconnectionName - the connection nameimageType - the type of image to retrieve (eg., small, normal, large, or square)
java.lang.String publish(java.lang.String objectId,
java.lang.String connectionName,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.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(java.lang.String objectId,
java.lang.String connectionName,
org.springframework.util.MultiValueMap<java.lang.String,java.lang.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(java.lang.String objectId)
objectId - the object ID
void delete(java.lang.String objectId,
java.lang.String connectionName)
objectId - the object IDconnectionName - the connection namejava.lang.String getApplicationNamespace()
|
Spring Social Facebook | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||