Class 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.
      • 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 versions
        ID of Instagram user who created the media. Only returned if the app user making the query also created the media, otherwise username field will be returned instead.
      • setOwner

        @Deprecated
        public void setOwner​(IgUser owner)
        Deprecated.
        with Graph API 12 or December 13, 2021 for all versions
        ID of Instagram user who created the media. Only returned if the app user making the query also created the media, otherwise username field will be returned instead.
      • setPermalink

        public void setPermalink​(String permalink)
        Permanent URL to the 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)
      • setUsername

        public void setUsername​(String username)
        Username of user who created the media.