public interface VideoMethods
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
commentVideo(java.lang.String videoId,
CommentUpdate commentUpdate)
Comments on the video.
|
java.lang.String |
commentVideo(java.lang.String videoId,
java.lang.String message)
Comments on the video.
|
Video |
getVideo(java.lang.String videoId)
Returns a single video.
|
Video |
getVideo(java.lang.String videoId,
Reading reading)
Returns a single video.
|
ResponseList<Comment> |
getVideoComments(java.lang.String videoId)
Returns the comments on a video.
|
ResponseList<Comment> |
getVideoComments(java.lang.String videoId,
Reading reading)
Returns the comments on a video.
|
java.net.URL |
getVideoCover(java.lang.String videoId)
Returns url of the image which represents the content of a video.
|
ResponseList<Like> |
getVideoLikes(java.lang.String videoId)
Returns all of the likes on a video.
|
ResponseList<Like> |
getVideoLikes(java.lang.String videoId,
Reading reading)
Returns all of the likes on a video.
|
ResponseList<Video> |
getVideos()
Returns the videos the current user has been tagged in / the current page has uploaded.
|
ResponseList<Video> |
getVideos(Reading reading)
Returns the videos the current user has been tagged in / the current page has uploaded.
|
ResponseList<Video> |
getVideos(java.lang.String id)
Returns the videos a user has been tagged in / the current page has uploaded.
|
ResponseList<Video> |
getVideos(java.lang.String id,
Reading reading)
Returns the videos a user has been tagged in / the current page has uploaded.
|
boolean |
likeVideo(java.lang.String videoId)
Likes the video.
|
java.lang.String |
postVideo(java.lang.String id,
VideoUpdate videoUpdate)
Posts the video to a user's/page's wall.
|
java.lang.String |
postVideo(VideoUpdate videoUpdate)
Posts the video to the current user's/page's wall.
|
boolean |
unlikeVideo(java.lang.String videoId)
Unlikes the video.
|
ResponseList<Video> getVideos() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Video> getVideos(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Video> getVideos(java.lang.String id) throws FacebookException
id - the ID of a user/pageFacebookException - when Facebook service or network is unavailableResponseList<Video> getVideos(java.lang.String id, Reading reading) throws FacebookException
id - the ID of a user/pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String postVideo(VideoUpdate videoUpdate) throws FacebookException
videoUpdate - video contentFacebookException - when Facebook service or network is unavailablejava.lang.String postVideo(java.lang.String id,
VideoUpdate videoUpdate)
throws FacebookException
id - the ID of a uservideoUpdate - video contentFacebookException - when Facebook service or network is unavailableVideo getVideo(java.lang.String videoId) throws FacebookException
videoId - the ID of the videoFacebookException - when Facebook service or network is unavailableVideo getVideo(java.lang.String videoId, Reading reading) throws FacebookException
videoId - the ID of the videoreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Like> getVideoLikes(java.lang.String videoId) throws FacebookException
videoId - the ID of a videoFacebookException - when Facebook service or network is unavailableResponseList<Like> getVideoLikes(java.lang.String videoId, Reading reading) throws FacebookException
videoId - the ID of a videoreading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableboolean likeVideo(java.lang.String videoId)
throws FacebookException
videoId - the ID of the videoFacebookException - when Facebook service or network is unavailableboolean unlikeVideo(java.lang.String videoId)
throws FacebookException
videoId - the ID of the videoFacebookException - when Facebook service or network is unavailableResponseList<Comment> getVideoComments(java.lang.String videoId) throws FacebookException
videoId - the ID of a videoFacebookException - when Facebook service or network is unavailableResponseList<Comment> getVideoComments(java.lang.String videoId, Reading reading) throws FacebookException
videoId - the ID of a videoreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String commentVideo(java.lang.String videoId,
java.lang.String message)
throws FacebookException
videoId - the ID of the videomessage - comment textFacebookException - when Facebook service or network is unavailablejava.lang.String commentVideo(java.lang.String videoId,
CommentUpdate commentUpdate)
throws FacebookException
videoId - the ID of the videocommentUpdate - comment contentFacebookException - when Facebook service or network is unavailablejava.net.URL getVideoCover(java.lang.String videoId)
throws FacebookException
videoId - the ID of a videoFacebookException - when Facebook service or network is unavailable