facebook4j.api
Interface VideoMethods

All Known Subinterfaces:
Facebook

public interface VideoMethods

Author:
Ryuji Yamashita - roundrop at gmail.com

Method Summary
 String commentVideo(String videoId, CommentUpdate commentUpdate)
          Comments on the video.
 String commentVideo(String videoId, String message)
          Comments on the video.
 Video getVideo(String videoId)
          Returns a single video.
 Video getVideo(String videoId, Reading reading)
          Returns a single video.
 ResponseList<Comment> getVideoComments(String videoId)
          Returns the comments on a video.
 ResponseList<Comment> getVideoComments(String videoId, Reading reading)
          Returns the comments on a video.
 URL getVideoCover(String videoId)
          Returns url of the image which represents the content of a video.
 ResponseList<Like> getVideoLikes(String videoId)
          Returns all of the likes on a video.
 ResponseList<Like> getVideoLikes(String videoId, Reading reading)
          Returns all of the likes on a video.
 ResponseList<Reaction> getVideoReactions(String videoId)
          Returns all of the reactions on a video.
 ResponseList<Reaction> getVideoReactions(String videoId, Reading reading)
          Returns all of the reactions 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(String id)
          Returns the videos a user has been tagged in / the current page has uploaded.
 ResponseList<Video> getVideos(String id, Reading reading)
          Returns the videos a user has been tagged in / the current page has uploaded.
 ResponseList<Post> getVideoSharedposts(String videoId)
          Returns the posts in which this video is shared.
 ResponseList<Post> getVideoSharedposts(String videoId, Reading reading)
          Returns the posts in which this video is shared.
 boolean likeVideo(String videoId)
          Likes the video.
 String postVideo(String id, VideoUpdate videoUpdate)
          Posts the video to a user's/page's wall.
 String postVideo(VideoUpdate videoUpdate)
          Posts the video to the current user's/page's wall.
 boolean unlikeVideo(String videoId)
          Unlikes the video.
 

Method Detail

getVideos

ResponseList<Video> getVideos()
                              throws FacebookException
Returns the videos the current user has been tagged in / the current page has uploaded.

Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers, Page#videos - Facebook Developers

getVideos

ResponseList<Video> getVideos(Reading reading)
                              throws FacebookException
Returns the videos the current user has been tagged in / the current page has uploaded.

Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers, Page#videos - Facebook Developers

getVideos

ResponseList<Video> getVideos(String id)
                              throws FacebookException
Returns the videos a user has been tagged in / the current page has uploaded.

Parameters:
id - the ID of a user/page
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers, Page#videos - Facebook Developers

getVideos

ResponseList<Video> getVideos(String id,
                              Reading reading)
                              throws FacebookException
Returns the videos a user has been tagged in / the current page has uploaded.

Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers, Page#videos - Facebook Developers

postVideo

String postVideo(VideoUpdate videoUpdate)
                 throws FacebookException
Posts the video to the current user's/page's wall.

Parameters:
videoUpdate - video content
Returns:
The new video ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers

postVideo

String postVideo(String id,
                 VideoUpdate videoUpdate)
                 throws FacebookException
Posts the video to a user's/page's wall.

Parameters:
id - the ID of a user
videoUpdate - video content
Returns:
The new video ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers

getVideo

Video getVideo(String videoId)
               throws FacebookException
Returns a single video.

Parameters:
videoId - the ID of the video
Returns:
video
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video - Facebook Developers

getVideo

Video getVideo(String videoId,
               Reading reading)
               throws FacebookException
Returns a single video.

Parameters:
videoId - the ID of the video
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
video
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video - Facebook Developers

getVideoLikes

ResponseList<Like> getVideoLikes(String videoId)
                                 throws FacebookException
Returns all of the likes on a video.

Parameters:
videoId - the ID of a video
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#likes - Facebook Developers

getVideoLikes

ResponseList<Like> getVideoLikes(String videoId,
                                 Reading reading)
                                 throws FacebookException
Returns all of the likes on a video.

Parameters:
videoId - the ID of a video
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#likes - Facebook Developers

getVideoSharedposts

ResponseList<Post> getVideoSharedposts(String videoId)
                                       throws FacebookException
Returns the posts in which this video is shared.

Parameters:
videoId - the ID of a video
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video Sharedposts - Facebook Developers

getVideoSharedposts

ResponseList<Post> getVideoSharedposts(String videoId,
                                       Reading reading)
                                       throws FacebookException
Returns the posts in which this video is shared.

Parameters:
videoId - the ID of a video
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video Sharedposts - Facebook Developers

likeVideo

boolean likeVideo(String videoId)
                  throws FacebookException
Likes the video.

Parameters:
videoId - the ID of the video
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#likes - Facebook Developers

unlikeVideo

boolean unlikeVideo(String videoId)
                    throws FacebookException
Unlikes the video.

Parameters:
videoId - the ID of the video
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#likes - Facebook Developers

getVideoComments

ResponseList<Comment> getVideoComments(String videoId)
                                       throws FacebookException
Returns the comments on a video.

Parameters:
videoId - the ID of a video
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#comments - Facebook Developers

getVideoComments

ResponseList<Comment> getVideoComments(String videoId,
                                       Reading reading)
                                       throws FacebookException
Returns the comments on a video.

Parameters:
videoId - the ID of a video
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#comments - Facebook Developers

commentVideo

String commentVideo(String videoId,
                    String message)
                    throws FacebookException
Comments on the video.

Parameters:
videoId - the ID of the video
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#comments - Facebook Developers

commentVideo

String commentVideo(String videoId,
                    CommentUpdate commentUpdate)
                    throws FacebookException
Comments on the video.

Parameters:
videoId - the ID of the video
commentUpdate - comment content
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#comments - Facebook Developers

getVideoCover

URL getVideoCover(String videoId)
                  throws FacebookException
Returns url of the image which represents the content of a video.

Parameters:
videoId - the ID of a video
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video - Facebook Developers - Connections - picture

getVideoReactions

ResponseList<Reaction> getVideoReactions(String videoId)
                                         throws FacebookException
Returns all of the reactions on a video.

Parameters:
videoId - the ID of a video
Returns:
reactions
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Reactions - Facebook Developers

getVideoReactions

ResponseList<Reaction> getVideoReactions(String videoId,
                                         Reading reading)
                                         throws FacebookException
Returns all of the reactions on a video.

Parameters:
videoId - the ID of a video
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
reactions
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Reactions - Facebook Developers


Copyright © 2019. All rights reserved.