Package com.restfb.types.threads
Class TdMedia
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.threads.TdMedia
- All Implemented Interfaces:
Serializable
Represents the Threads Media type
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe accessibility text label or description for an image or video in a Threads postList of child posts.Indicates if the media is a quoted post made by another userlink attachment URL of the URL that is attachment with highlight.The location tagged to the media.The ID of the location tagged to the media.Surface where the media is published.The media type for a Threads post will be one of these values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, or REPOST_FACADE.The post’s media URL.getOwner()Instagram user ID who created the post.Permanent link to the post.Media ID of the post that was quoted.Media ID of the post that was reposted.Shortcode of the media.getText()Represents text for a Threads post.URL of thumbnail.Post time.Instagram username who created the post.voidsetAllowlistedCountryCodes(List<String> allowlistedCountryCodes) voidsetAltText(String altText) The accessibility text label or description for an image or video in a Threads postvoidsetChildren(List<TdMedia> children) List of child posts.voidsetIsQuotePost(Boolean isQuotePost) Indicates if the media is a quoted post made by another uservoidsetLinkAttachmentUrl(String linkAttachmentUrl) link attachment URL of the URL that is attachment with highlight.voidsetLocation(TdLocation location) The location tagged to the media.voidsetLocationId(String locationId) The ID of the location tagged to the media.voidsetMediaProductType(String mediaProductType) Surface where the media is published.voidsetMediaType(TdMediaType mediaType) The media type for a Threads post will be one of these values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, or REPOST_FACADE.voidsetMediaUrl(String mediaUrl) The post’s media URL.voidInstagram user ID who created the post.voidsetPermalink(String permalink) Permanent link to the post.voidsetPollAttachment(TdPollAttachment pollAttachment) voidsetQuotedPost(String quotedPost) Media ID of the post that was quoted.voidsetRepostedPost(String repostedPost) Media ID of the post that was reposted.voidsetShortcode(String shortcode) Shortcode of the media.voidRepresents text for a Threads post.voidsetThumbnailUrl(String thumbnailUrl) URL of thumbnail.voidsetTimestamp(Date timestamp) Post time.voidsetUsername(String username) Instagram username who created the post.Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
TdMedia
public TdMedia()
-
-
Method Details
-
getAllowlistedCountryCodesAsLocales
-
getMediaProductType
Surface where the media is published. In the case of Threads, the value is THREADS. -
setMediaProductType
Surface where the media is published. In the case of Threads, the value is THREADS. -
getMediaType
The media type for a Threads post will be one of these values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, or REPOST_FACADE. -
setMediaType
The media type for a Threads post will be one of these values: TEXT_POST, IMAGE, VIDEO, CAROUSEL_ALBUM, or REPOST_FACADE. -
getMediaUrl
The post’s media URL. -
setMediaUrl
The post’s media URL. -
getPermalink
Permanent link to the post. Will be omitted if the media contains copyrighted material or has been flagged for a copyright violation. -
setPermalink
Permanent link to the post. Will be omitted if the media contains copyrighted material or has been flagged for a copyright violation. -
getOwner
Instagram user ID who created the post. -
setOwner
Instagram user ID who created the post. -
getUsername
Instagram username who created the post. -
setUsername
Instagram username who created the post. -
getText
Represents text for a Threads post. -
setText
Represents text for a Threads post. -
getTimestamp
Post time. The publish date in ISO 8601 format. -
setTimestamp
Post time. The publish date in ISO 8601 format. -
getShortcode
Shortcode of the media. -
setShortcode
Shortcode of the media. -
getThumbnailUrl
URL of thumbnail. This only shows up for Threads media with video. -
setThumbnailUrl
URL of thumbnail. This only shows up for Threads media with video. -
getChildren
List of child posts. This only shows up for carousel posts. -
setChildren
List of child posts. This only shows up for carousel posts. -
getIsQuotePost
Indicates if the media is a quoted post made by another user -
setIsQuotePost
Indicates if the media is a quoted post made by another user -
getQuotedPost
Media ID of the post that was quoted. Note: This only appears on quote posts. -
setQuotedPost
Media ID of the post that was quoted. Note: This only appears on quote posts. -
getRepostedPost
Media ID of the post that was reposted. Note: This only appears on reposts. -
setRepostedPost
Media ID of the post that was reposted. Note: This only appears on reposts. -
getAltText
The accessibility text label or description for an image or video in a Threads post -
setAltText
The accessibility text label or description for an image or video in a Threads post -
getLocationId
The ID of the location tagged to the media. -
setLocationId
The ID of the location tagged to the media. -
getLocation
The location tagged to the media. -
setLocation
The location tagged to the media. -
getAllowlistedCountryCodes
-
setAllowlistedCountryCodes
-
getLinkAttachmentUrl
link attachment URL of the URL that is attachment with highlight. See here: https://developers.facebook.com/docs/threads/posts#tags-and-links-in-posts -
setLinkAttachmentUrl
link attachment URL of the URL that is attachment with highlight. See here: https://developers.facebook.com/docs/threads/posts#tags-and-links-in-posts -
getPollAttachment
-
setPollAttachment
-