|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MusicActions
Defines operations for publishing OpenGraph actions pertaining to listening to music. Many OpenGraph operations require approval from Facebook. See https://developers.facebook.com/docs/opengraph/submission-process for details.
Method Summary | |
---|---|
String |
createPlaylist(String playlistUrl)
Publishes a "music.playlists" action (indicating that a playlist was created) for the OpenGraph playlist object at the given URL. |
String |
createPlaylist(String playlistUrl,
ActionMetadata metadata)
Publishes a "music.playlists" action (indicating that a playlist was created) for the OpenGraph playlist object at the given URL. |
String |
listen(String objectType,
String objectUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph object at the given URL. |
String |
listenToAlbum(String albumUrl)
Publishes a "music.listens" action for the OpenGraph album object at the given URL. |
String |
listenToAlbum(String albumUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph album object at the given URL. |
String |
listenToMusician(String musicianUrl)
Publishes a "music.listens" action for the OpenGraph musician object at the given URL. |
String |
listenToMusician(String musicianUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph musician object at the given URL. |
String |
listenToPlaylist(String playlistUrl)
Publishes a "music.listens" action for the OpenGraph playlist object at the given URL. |
String |
listenToPlaylist(String playlistUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph playlist object at the given URL. |
String |
listenToRadioStation(String radioStationUrl)
Publishes a "music.listens" action for the OpenGraph radio station object at the given URL. |
String |
listenToRadioStation(String radioStationUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph radio station object at the given URL. |
String |
listenToSong(String songUrl)
Publishes a "music.listens" action for the OpenGraph song object at the given URL. |
String |
listenToSong(String songUrl,
ActionMetadata metadata)
Publishes a "music.listens" action for the OpenGraph song object at the given URL. |
Method Detail |
---|
String listenToSong(String songUrl)
songUrl
- The URL of the song that was listened to. Must reference an OpenGraph object of type "music.song".
String listenToSong(String songUrl, ActionMetadata metadata)
songUrl
- The URL of the song that was listened to. Must reference an OpenGraph object of type "music.song".metadata
- Action metadata to be applied to the action.
String listenToAlbum(String albumUrl)
albumUrl
- The URL of the album that was listened to. Must reference an OpenGraph object of type "music.album".
String listenToAlbum(String albumUrl, ActionMetadata metadata)
albumUrl
- The URL of the album that was listened to. Must reference an OpenGraph object of type "music.album".metadata
- Action metadata to be applied to the action.
String listenToMusician(String musicianUrl)
musicianUrl
- The profile URL of the musician that was listened to. Must reference an OpenGraph object of type "profile".
String listenToMusician(String musicianUrl, ActionMetadata metadata)
musicianUrl
- The profile URL of the musician that was listened to. Must reference an OpenGraph object of type "profile".metadata
- Action metadata to be applied to the action.
String listenToRadioStation(String radioStationUrl)
radioStationUrl
- The URL of the radio station that was listened to. Must reference an OpenGraph object of type "music.radio_station".
String listenToRadioStation(String radioStationUrl, ActionMetadata metadata)
radioStationUrl
- The URL of the radio station that was listened to. Must reference an OpenGraph object of type "music.radio_station".metadata
- Action metadata to be applied to the action.
String listenToPlaylist(String playlistUrl)
playlistUrl
- The URL of the playlist that was listened to. Must reference an OpenGraph object of type "music.playlist".
String listenToPlaylist(String playlistUrl, ActionMetadata metadata)
playlistUrl
- The URL of the playlist that was listened to. Must reference an OpenGraph object of type "music.playlist".metadata
- Action metadata to be applied to the action.
String listen(String objectType, String objectUrl, ActionMetadata metadata)
objectType
- The type of object being listened to. E.g., "song", "album", "musician", "radio_station", or "playlist".objectUrl
- The URL of the object being listened to.metadata
- Action metadata to be applied to the action.
String createPlaylist(String playlistUrl)
playlistUrl
- The URL of the playlist that was created. Must reference an OpenGraph object of type "music.playlist".
String createPlaylist(String playlistUrl, ActionMetadata metadata)
playlistUrl
- The URL of the playlist that was created. Must reference an OpenGraph object of type "music.playlist".metadata
- Action metadata to be applied to the action.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |