public class GeneralActionsTemplate extends Object implements GeneralActions
Constructor and Description |
---|
GeneralActionsTemplate(OpenGraphOperations openGraphOperations) |
Modifier and Type | Method and Description |
---|---|
String |
follow(String profile)
Publishes a "og.follows" action for the OpenGraph object defined at the given URL.
|
String |
follow(String profileUrl,
ActionMetadata metadata)
Publishes a "og.follows" action for the OpenGraph object defined at the given URL.
|
String |
like(String object)
Publishes a "og.likes" action for the OpenGraph object defined at the given URL.
|
String |
like(String object,
ActionMetadata metadata)
Publishes a "og.likes" action for the OpenGraph object defined at the given URL.
|
public GeneralActionsTemplate(OpenGraphOperations openGraphOperations)
public String like(String object)
GeneralActions
like
in interface GeneralActions
object
- The URL of the OpenGraph object that is to be liked.public String like(String object, ActionMetadata metadata)
GeneralActions
like
in interface GeneralActions
object
- The URL of the OpenGraph object that is to be liked.metadata
- Action metadata to be applied to the action.public String follow(String profile)
GeneralActions
follow
in interface GeneralActions
profile
- The URL of the OpenGraph object that is to be followed.public String follow(String profileUrl, ActionMetadata metadata)
GeneralActions
follow
in interface GeneralActions
profileUrl
- The URL of the OpenGraph object that is to be followed.metadata
- Action metadata to be applied to the action.