org.springframework.social.facebook.api
Interface OpenGraphOperations
public interface OpenGraphOperations
Defines operations for working with Facebook OpenGraph actions.
Many OpenGraph operations require approval from Facebook.
See https://developers.facebook.com/docs/opengraph/submission-process for details.
EMPTY_ACTION_METADATA
static final ActionMetadata EMPTY_ACTION_METADATA
generalActions
GeneralActions generalActions()
- Returns:
- Operations for working with built-in general OpenGraph actions such as "og.like" and "og.follow".
bookActions
BookActions bookActions()
- Returns:
- Operations for working with built-in book-related OpenGraph actions.
musicActions
MusicActions musicActions()
- Returns:
- Operations for working with built-in music-related OpenGraph actions.
videoActions
VideoActions videoActions()
- Returns:
- Operations for working with built-in video-related OpenGraph actions.
fitnessActions
FitnessActions fitnessActions()
- Returns:
- Operations for working with built-in fitness-related OpenGraph actions.
deleteAction
void deleteAction(String actionId)
- Deletes an action.
- Parameters:
actionId
- The action ID.
publishAction
String publishAction(String action,
String objectType,
String objectUrl)
- Posts a custom (application-defined) action for an object specified by the given object URL.
- Parameters:
action
- The application specific action to post, without the application's namespace. (eg, "drink")objectType
- The application specific object type, without the application's namespace. (eg, "beverage")objectUrl
- The URL of the object that is the target of the action.
- Returns:
- the ID of the posted action.
publishAction
String publishAction(String action,
MultiValueMap<String,Object> parameters,
boolean builtInAction)