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)
GeneralActionslike in interface GeneralActionsobject - The URL of the OpenGraph object that is to be liked.public String like(String object, ActionMetadata metadata)
GeneralActionslike in interface GeneralActionsobject - 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)
GeneralActionsfollow in interface GeneralActionsprofile - The URL of the OpenGraph object that is to be followed.public String follow(String profileUrl, ActionMetadata metadata)
GeneralActionsfollow in interface GeneralActionsprofileUrl - The URL of the OpenGraph object that is to be followed.metadata - Action metadata to be applied to the action.