Package com.restfb.types.instagram
Class IgMedia
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.instagram.IgMediaChild
com.restfb.types.instagram.IgMedia
- All Implemented Interfaces:
Serializable
Represents the instagram 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 TypeMethodDescriptionbooleanbooleanaddChild(IgMediaChild child) adds a new child to the children listbooleanaddComment(IgComment comment) The field provides information about boosting eligibility of a IG instagram media as an ad and additional details if not eligible.Caption.returns the list of child media objects, only available if the media_type is a carousalreturns the comments of this mediaCount of comments on the media.Indicates if comments are enabled or disabled.Reels only.The ID for Instagram media that was created for Marketing API endpoints for v21.0 and older.Count of likes on the media.Media thumbnail URL.Deprecated.Omitted from response.booleanremoveChild(Insight insight) booleanremoveChild(IgMediaChild child) removes a new child from the children listbooleanremoveComment(IgComment comment) voidsetBoostAdsList(List<IgBoostMediaAd> boostAdsList) voidsetBoostEligibilityInfo(IgBoostEligibilityInfo boostEligibilityInfo) The field provides information about boosting eligibility of a IG instagram media as an ad and additional details if not eligible.voidsetCaption(String caption) Caption.voidsetCommentsCount(Long commentsCount) Count of comments on the media.voidsetCopyrightCheckInformation(CopyrightCheckInformation copyrightCheckInformation) voidsetIsCommentEnabled(Boolean isCommentEnabled) Indicates if comments are enabled or disabled.voidsetIsSharedToFeed(Boolean isSharedToFeed) Reels only.voidsetLegacyInstagramMediaId(String legacyInstagramMediaId) The ID for Instagram media that was created for Marketing API endpoints for v21.0 and older.voidsetLikeCount(Long likeCount) Count of likes on the media.voidsetThumbnailUrl(String thumbnailUrl) Media thumbnail URL.voidsetVideoTitle(String videoTitle) Deprecated.Omitted from response.Methods inherited from class com.restfb.types.instagram.IgMediaChild
getAltText, getIgId, getMediaProductType, getMediaType, getMediaUrl, getOwner, getPermalink, getShortcode, getTimestamp, getUsername, setAltText, setIgId, setMediaProductType, setMediaType, setMediaUrl, setOwner, setPermalink, setShortcode, setTimestamp, setUsernameMethods 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
-
IgMedia
public IgMedia()
-
-
Method Details
-
getChildren
returns the list of child media objects, only available if the media_type is a carousal- Returns:
- the list of children as unmodifiable list
-
addChild
adds a new child to the children list- Parameters:
child- the child that is added- Returns:
- true if adding the child works
-
removeChild
removes a new child from the children list- Parameters:
child- the child that is removed- Returns:
- true if removing the child works
-
getInsights
-
addChild
-
removeChild
-
getComments
returns the comments of this media- Returns:
- the comments of this media
-
addComment
-
removeComment
-
getBoostEligibilityInfo
The field provides information about boosting eligibility of a IG instagram media as an ad and additional details if not eligible. -
setBoostEligibilityInfo
The field provides information about boosting eligibility of a IG instagram media as an ad and additional details if not eligible. -
getBoostAdsList
-
setBoostAdsList
-
getCaption
Caption. Excludes album children. The @ symbol is excluded, unless the app user can perform admin-equivalent tasks on the Facebook Page connected to the Instagram account used to create the caption. -
setCaption
Caption. Excludes album children. The @ symbol is excluded, unless the app user can perform admin-equivalent tasks on the Facebook Page connected to the Instagram account used to create the caption. -
getCommentsCount
Count of comments on the media.Excludes comments on album child media and the media's caption. Includes replies on comments.
-
setCommentsCount
Count of comments on the media.Excludes comments on album child media and the media's caption. Includes replies on comments.
-
getIsCommentEnabled
Indicates if comments are enabled or disabled. Excludes album children. -
setIsCommentEnabled
Indicates if comments are enabled or disabled. Excludes album children. -
getLikeCount
Count of likes on the media.Excludes likes on album child media and likes on promoted posts created from the media. Includes replies on comments.
- v10.0 and older calls: value will be 0 if the media owner has hidden like counts it.
- v11.0+ calls: field will be omitted if media owner has hidden like counts on it.
-
setLikeCount
Count of likes on the media.Excludes likes on album child media and likes on promoted posts created from the media. Includes replies on comments.
- v10.0 and older calls: value will be 0 if the media owner has hidden like counts it.
- v11.0+ calls: field will be omitted if media owner has hidden like counts on it.
-
getThumbnailUrl
Media thumbnail URL. Only available on VIDEO media.- Overrides:
getThumbnailUrlin classIgMediaChild
-
setThumbnailUrl
Media thumbnail URL. Only available on VIDEO media.- Overrides:
setThumbnailUrlin classIgMediaChild
-
getLegacyInstagramMediaId
The ID for Instagram media that was created for Marketing API endpoints for v21.0 and older. -
setLegacyInstagramMediaId
The ID for Instagram media that was created for Marketing API endpoints for v21.0 and older. -
getVideoTitle
Deprecated.Omitted from response.IGTV media title. -
setVideoTitle
Deprecated.Omitted from response.IGTV media title. -
getCopyrightCheckInformation
-
setCopyrightCheckInformation
-