Class Video

    • Constructor Detail

    • Method Detail

      • getContentTags

        public List<StringgetContentTags()
        Tags that describe the contents of the video.
        Returns:
        Tags that describe the contents of the video.
      • getAdBreaks

        public List<IntegergetAdBreaks()
        Time offsets of ad breaks in milliseconds. Ad breaks are short ads that play within a video.
        Returns:
        Time offsets of ad breaks in milliseconds. Ad breaks are short ads that play within a video.
      • getCustomLabels

        public List<StringgetCustomLabels()
        Labels used to describe the video. Unlike content tags, custom labels are not published and only appear in insights data.
        Returns:
        Labels used to describe the video.
      • getLikesCount

        public Long getLikesCount()
        The number of likes on this video. you have to fetch the video id with ?fields=likes.summary(true) in order to speed up the likes count generation, you may use ?fields=likes.limit(1).summary(true), so only 1 like is fetched, but the complete summary
        Returns:
        The number of likes on this video.
      • getCommentsCount

        public Long getCommentsCount()
        The number of comments of this video. you have to fetch the video id with ?fields=comments.summary(true) in order to speed up the comments count generation, you may use ?fields=comments.limit(1).summary(true), so only 1 comment is fetched, but the complete summary
        Returns:
        The number of comments of this video.
      • getFrom

        public From getFrom()
        An object containing the name and ID of the user who posted the video.
        Returns:
        An object containing the name and ID of the user who posted the video.
      • setFrom

        public void setFrom​(From from)
        An object containing the name and ID of the user who posted the video.
      • setMessage

        @Deprecated
        public void setMessage​(String message)
        Deprecated.
        FB seems to have removed this field.
        The video title / caption.
      • getDescription

        public String getDescription()
        The long-form HTML description of the video.
        Returns:
        The long-form HTML description of the video.
      • setDescription

        public void setDescription​(String description)
        The long-form HTML description of the video.
      • getPermalinkUrl

        public String getPermalinkUrl()
        URL to the permalink page of the video
        Returns:
        URL to the permalink page of the video
      • setPermalinkUrl

        public void setPermalinkUrl​(String permalinkUrl)
        URL to the permalink page of the video
      • setTitle

        public void setTitle​(String title)
        The video title or caption
      • getIsEpisode

        public Boolean getIsEpisode()
        Whether this video is episode or not.
        Returns:
        Whether this video is episode or not.
      • setIsEpisode

        public void setIsEpisode​(Boolean isEpisode)
        Whether this video is episode or not.
      • getIsInstagramEligible

        public Boolean getIsInstagramEligible()
        Whether the video is eligible to be promoted on Instagram
        Returns:
        Whether the video is eligible to be promoted on Instagram
      • setIsInstagramEligible

        public void setIsInstagramEligible​(Boolean isInstagramEligible)
        Whether the video is eligible to be promoted on Instagram
      • getIsReferenceOnly

        public Boolean getIsReferenceOnly()
        Whether the video is exclusively used for copyright monitoring.
        Returns:
        Whether the video is exclusively used for copyright monitoring
      • setIsReferenceOnly

        public void setIsReferenceOnly​(Boolean isReferenceOnly)
        Whether the video is exclusively used for copyright monitoring.
      • setMusicVideoCopyright

        public void setMusicVideoCopyright​(MusicVideoCopyright musicVideoCopyright)
        The music video copyright of this video because of a missing object description in the graph reference, we use a Map here
      • getPostViews

        public Integer getPostViews()
        The public view count of the video post, not aggregated with any other crossposts of the video.
      • setPostViews

        public void setPostViews​(Integer postViews)
        The public view count of the video post, not aggregated with any other crossposts of the video.
      • getReactions

        public Reactions getReactions()
        The reactions for this video.
        Returns:
        The reactions for this video.
      • setEmbeddable

        public void setEmbeddable​(Boolean embeddable)
        Whether the video is embeddable.
      • getEvent

        @GraphAPI(since="2.3")
        public Event getEvent()
        If this object has a place, the event associated with the place.
        Returns:
        the event associated with the place
      • setEvent

        public void setEvent​(Event event)
        If this object has a place, the event associated with the place.
      • getFeedType

        @GraphAPI(since="2.7")
        public String getFeedType()
        Whether or not the video is highlighted in Video Channel.
        Returns:
        Whether or not the video is highlighted in Video Channel.
      • setFeedType

        public void setFeedType​(String feedType)
        Whether or not the video is highlighted in Video Channel.
      • setUniversalVideoId

        public void setUniversalVideoId​(String universalVideoId)
        The publishers asset management code for this video.
      • setViews

        public void setViews​(Integer views)
        The public view count of the video.
      • getLikes

        public Likes getLikes()
        People who like this. you need to add the field to the fields query parameter to get the likes list otherwise null is returned
        Returns:
        People who like this
      • setLikes

        public void setLikes​(Likes likes)
        People who like this. you need to add the field to the fields query parameter to get the likes list otherwise null is returned
      • getPlace

        public Place getPlace()
        Location associated with the video, if any.
        Returns:
        Location associated with the video, if any.
      • setPlace

        public void setPlace​(Place place)
        Location associated with the video, if any.
      • getPicture

        public String getPicture()
        A URL for the thumbnail picture of the video.
        Returns:
        A URL for the thumbnail picture of the video.
      • setPicture

        public void setPicture​(String picture)
        A URL for the thumbnail picture of the video.
      • getIcon

        public String getIcon()
        An icon URL which represents the video.
        Returns:
        An icon URL which represents the video.
      • setIcon

        public void setIcon​(String icon)
        An icon URL which represents the video.
      • getSource

        public String getSource()
        A URL to the raw, playable video file.
        Returns:
        A URL to the raw, playable video file.
        Since:
        1.6.5
      • setSource

        public void setSource​(String source)
        A URL to the raw, playable video file.
        Since:
        1.6.5
      • getEmbedHtml

        public String getEmbedHtml()
        HTML that may be used to embed the video on another website.
        Returns:
        HTML that may be used to embed the video on another website.
      • setEmbedHtml

        public void setEmbedHtml​(String embedHtml)
        HTML that may be used to embed the video on another website.
      • getLength

        public Double getLength()
        The length of the video, in seconds.
        Returns:
        The length of the video, in seconds.
      • setLength

        public void setLength​(Double length)
        The length of the video, in seconds.
      • getLiveAudienceCount

        @GraphAPI(since="2.6")
        public Integer getLiveAudienceCount()
        Number of unique people who watched the video broadcast when it was live.
        Returns:
        Number of unique people who watched the video broadcast when it was live.
      • setLiveAudienceCount

        public void setLiveAudienceCount​(Integer liveAudienceCount)
        Number of unique people who watched the video broadcast when it was live.
      • getLiveStatus

        @GraphAPI(since="2.6")
        public String getLiveStatus()
        The live status of the video. Possible values contain LIVE, LIVE_STOPPED, VOD
        Returns:
        The live status of the video
      • setLiveStatus

        public void setLiveStatus​(String liveStatus)
        The live status of the video. Possible values contain LIVE, LIVE_STOPPED, VOD
      • getPrivacy

        public Privacy getPrivacy()
        Privacy setting for the video.
        Returns:
        Privacy setting for the video.
      • setPrivacy

        public void setPrivacy​(Privacy privacy)
        Privacy setting for the video.
      • getStatus

        public Video.VideoStatus getStatus()
        Object describing the status attributes of a video.
        Returns:
        Object describing the status attributes of a video.
      • getPublished

        @GraphAPI(since="2.3")
        public Boolean getPublished()
        Whether a post about this video is published. This field is only accessible in Graph API 2.3 or later.
        Returns:
        whether a post about this video is published.
        Since:
        1.10.0
      • setPublished

        public void setPublished​(Boolean published)
        Whether a post about this video is published. This field is only accessible in Graph API 2.3 or later.
        Since:
        1.10.0
      • setBackdatedTime

        public void setBackdatedTime​(Date backdatedTime)
        Back dated time
        Since:
        1.10.0
      • setBackdatedTimeGranularity

        public void setBackdatedTimeGranularity​(String backdatedTimeGranularity)
        String that represents the back dated time granularity
        Since:
        1.10.0
      • setCreatedTime

        public void setCreatedTime​(Date createdTime)
        The time the video was initially published.
      • getUpdatedTime

        public Date getUpdatedTime()
        The last time the video or its caption were updated.
        Returns:
        The last time the video or its caption were updated.
      • setUpdatedTime

        public void setUpdatedTime​(Date updatedTime)
        The last time the video or its caption were updated.
      • getScheduledPublishTime

        @GraphAPI(since="2.3")
        public Date getScheduledPublishTime()
        The time that the video is scheduled to be published. This field is only accessible in Graph API 2.3 or later.
        Returns:
        The time that the video is scheduled to be published.
        Since:
        1.10.0
      • setScheduledPublishTime

        public void setScheduledPublishTime​(Date scheduledPublishTime)
        The time that the video is scheduled to be published. This field is only accessible in Graph API 2.3 or later.
        Since:
        1.10.0