Package com.restfb.types.instagram
Class IgMediaChild
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.instagram.IgMediaChild
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
IgMedia
public class IgMediaChild extends FacebookType
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description IgMediaChild()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getIgId()
String
getMediaProductType()
Surface where the media is published.String
getMediaType()
Media type.String
getMediaUrl()
Media URL.IgUser
getOwner()
Deprecated.with Graph API 12 or December 13, 2021 for all versionsString
getPermalink()
Permanent URL to the media.String
getShortcode()
Shortcode to the media.String
getThumbnailUrl()
Media thumbnail URL.Date
getTimestamp()
ISO 8601 formatted creation date in UTC (default is UTC ±00:00)String
getUsername()
Username of user who created the media.void
setIgId(String igId)
void
setMediaProductType(String mediaProductType)
Surface where the media is published.void
setMediaType(String mediaType)
Media type.void
setMediaUrl(String mediaUrl)
Media URL.void
setOwner(IgUser owner)
Deprecated.with Graph API 12 or December 13, 2021 for all versionsvoid
setPermalink(String permalink)
Permanent URL to the media.void
setShortcode(String shortcode)
Shortcode to the media.void
setThumbnailUrl(String thumbnailUrl)
Media thumbnail URL.void
setTimestamp(Date timestamp)
ISO 8601 formatted creation date in UTC (default is UTC ±00:00)void
setUsername(String username)
Username of user who created the media.-
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
IgMediaChild
public IgMediaChild()
-
-
Method Detail
-
getMediaType
public String getMediaType()
Media type. Can be CAROUSEL_ALBUM, IMAGE, or VIDEO.
-
setMediaType
public void setMediaType(String mediaType)
Media type. Can be CAROUSEL_ALBUM, IMAGE, or VIDEO.
-
getMediaUrl
public String getMediaUrl()
Media URL. Will be omitted from responses if the media contains copyrighted material, or has been flagged for a copyright violation.
-
setMediaUrl
public void setMediaUrl(String mediaUrl)
Media URL. Will be omitted from responses if the media contains copyrighted material, or has been flagged for a copyright violation.
-
getMediaProductType
public String getMediaProductType()
Surface where the media is published. Can be AD, FEED, or STORY.
-
setMediaProductType
public void setMediaProductType(String mediaProductType)
Surface where the media is published. Can be AD, FEED, or STORY.
-
getOwner
@Deprecated public IgUser getOwner()
Deprecated.with Graph API 12 or December 13, 2021 for all versionsID of Instagram user who created the media. Only returned if the app user making the query also created the media, otherwiseusername
field will be returned instead.
-
setOwner
@Deprecated public void setOwner(IgUser owner)
Deprecated.with Graph API 12 or December 13, 2021 for all versionsID of Instagram user who created the media. Only returned if the app user making the query also created the media, otherwiseusername
field will be returned instead.
-
getPermalink
public String getPermalink()
Permanent URL to the media.
-
setPermalink
public void setPermalink(String permalink)
Permanent URL to the media.
-
getShortcode
public String getShortcode()
Shortcode to the media.
-
setShortcode
public void setShortcode(String shortcode)
Shortcode to the media.
-
getThumbnailUrl
public String getThumbnailUrl()
Media thumbnail URL. Only available on VIDEO media.
-
setThumbnailUrl
public void setThumbnailUrl(String thumbnailUrl)
Media thumbnail URL. Only available on VIDEO media.
-
getTimestamp
public Date getTimestamp()
ISO 8601 formatted creation date in UTC (default is UTC ±00:00)
-
setTimestamp
public void setTimestamp(Date timestamp)
ISO 8601 formatted creation date in UTC (default is UTC ±00:00)
-
getUsername
public String getUsername()
Username of user who created the media.
-
setUsername
public void setUsername(String username)
Username of user who created the media.
-
-