org.springframework.social.facebook.api.impl
Class GeneralActionsTemplate

java.lang.Object
  extended by org.springframework.social.facebook.api.impl.GeneralActionsTemplate
All Implemented Interfaces:
GeneralActions

public class GeneralActionsTemplate
extends Object
implements GeneralActions


Constructor Summary
GeneralActionsTemplate(OpenGraphOperations openGraphOperations)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralActionsTemplate

public GeneralActionsTemplate(OpenGraphOperations openGraphOperations)
Method Detail

like

public String like(String object)
Description copied from interface: GeneralActions
Publishes a "og.likes" action for the OpenGraph object defined at the given URL.

Specified by:
like in interface GeneralActions
Parameters:
object - The URL of the OpenGraph object that is to be liked.
Returns:
The ID of the action.

like

public String like(String object,
                   ActionMetadata metadata)
Description copied from interface: GeneralActions
Publishes a "og.likes" action for the OpenGraph object defined at the given URL.

Specified by:
like in interface GeneralActions
Parameters:
object - The URL of the OpenGraph object that is to be liked.
metadata - Action metadata to be applied to the action.
Returns:
The ID of the action.

follow

public String follow(String profile)
Description copied from interface: GeneralActions
Publishes a "og.follows" action for the OpenGraph object defined at the given URL.

Specified by:
follow in interface GeneralActions
Parameters:
profile - The URL of the OpenGraph object that is to be followed.
Returns:
The ID of the action.

follow

public String follow(String profileUrl,
                     ActionMetadata metadata)
Description copied from interface: GeneralActions
Publishes a "og.follows" action for the OpenGraph object defined at the given URL.

Specified by:
follow in interface GeneralActions
Parameters:
profileUrl - The URL of the OpenGraph object that is to be followed.
metadata - Action metadata to be applied to the action.
Returns:
The ID of the action.