org.springframework.social.facebook.api
Interface GeneralActions

All Known Implementing Classes:
GeneralActionsTemplate

public interface GeneralActions

Defines operations for publishing general OpenGraph actions such as "og.likes" and "og.follows". Many OpenGraph operations require approval from Facebook. See https://developers.facebook.com/docs/opengraph/submission-process for details.


Method Summary
 String follow(String profileUrl)
          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 objectUrl)
          Publishes a "og.likes" action for the OpenGraph object defined at the given URL.
 String like(String objectUrl, ActionMetadata metadata)
          Publishes a "og.likes" action for the OpenGraph object defined at the given URL.
 

Method Detail

like

String like(String objectUrl)
Publishes a "og.likes" action for the OpenGraph object defined at the given URL.

Parameters:
objectUrl - The URL of the OpenGraph object that is to be liked.
Returns:
The ID of the action.

like

String like(String objectUrl,
            ActionMetadata metadata)
Publishes a "og.likes" action for the OpenGraph object defined at the given URL.

Parameters:
objectUrl - 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

String follow(String profileUrl)
Publishes a "og.follows" action for the OpenGraph object defined at the given URL.

Parameters:
profileUrl - The URL of the OpenGraph object that is to be followed.
Returns:
The ID of the action.

follow

String follow(String profileUrl,
              ActionMetadata metadata)
Publishes a "og.follows" action for the OpenGraph object defined at the given URL.

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.