Klasse Post

Alle implementierten Schnittstellen:
HasComments, HasCreatedTime, HasMessage, Serializable

public class Post extends FacebookType implements HasComments, HasCreatedTime, HasMessage
Represents the Post Graph API type.
Seit:
1.5
Autor:
Mark Allen
Siehe auch:
  • Konstruktordetails

    • Post

      public Post()
  • Methodendetails

    • getType

      @GraphAPI(until="3.2") public String getType()
      A string indicating the object type of this post. Hint for Graph API 3.3: attachment/media_type If there is no attachment or media_type=link, the value is the same as type=status.
      Setzt außer Kraft:
      getType in Klasse FacebookType
      Gibt zurück:
      A string indicating the object type of this post.
    • jsonMappingCompleted

      protected void jsonMappingCompleted(JsonMapper jsonMapper)
      Post-JSON-mapping operation that populates the messageTags field "by hand".

      This is a temporary hack until we have formal public support for it/improved JsonMapper capabilities so it can handle arbitrary Map types.

      Parameter:
      jsonMapper - The JsonMapper that was used to map to this type.
      Seit:
      1.6.11
    • getLikesCount

      public Long getLikesCount()
      The number of likes on this post.
      Gibt zurück:
      The number of likes on this post.
    • getReactionsCount

      The number of reactions on this post.
      Gibt zurück:
      The number of reactions on this post.
    • getSharesCount

      public Long getSharesCount()
      The number of shares of this post.
      Gibt zurück:
      The number of shares of this post.
    • getCommentsCount

      The number of comments of this post.
      Gibt zurück:
      The number of comments of this post.
    • getTo

      A list of the profiles mentioned or targeted in this post.
      Gibt zurück:
      A list of the profiles mentioned or targeted in this post.
    • addTo

      public boolean addTo(NamedFacebookType profile)
    • removeTo

      public boolean removeTo(NamedFacebookType profile)
    • getActions

      A list of available action names and links (including commenting, liking, and an optional app-specified action).
      Gibt zurück:
      A list of available action names and links (including commenting, liking, and an optional app-specified action).
    • addAction

      public boolean addAction(Post.Action action)
    • removeAction

      public boolean removeAction(Post.Action action)
    • getProperties

      A list of properties for this post.

      This field is undocumented.

      Gibt zurück:
      A list of properties for this post.
    • addProperty

      public boolean addProperty(Post.Property property)
    • removeProperty

      public boolean removeProperty(Post.Property property)
    • getMessageTags

      Objects tagged in the message (Users, Pages, etc).
      Gibt zurück:
      Objects tagged in the message (Users, Pages, etc).
      Seit:
      1.6.10
    • addMessageTag

      public void addMessageTag(MessageTag messageTag)
    • removeMessageTag

      public void removeMessageTag(MessageTag messageTag)
    • getStoryTags

      Objects tagged in the story (Users, Pages, etc).
      Gibt zurück:
      Objects tagged in the story (Users, Pages, etc).
    • addStoryTag

      public void addStoryTag(MessageTag messageTag)
    • removeStoryTag

      public void removeStoryTag(MessageTag messageTag)
    • getChildAttachments

      Sub-shares of a multi-link share post
      Gibt zurück:
      Sub-shares of a multi-link share post
    • addChildAttachment

      public void addChildAttachment(Post childAttachment)
    • removeChildAttachment

      public void removeChildAttachment(Post childAttachment)
    • getSponsorTags

      A sponsor tag points to a Facebook Page. (Page owners can allow their business partners to directly boost their posts.)
    • addSponsorTag

      public boolean addSponsorTag(NamedFacebookType sponsorTag)
    • removeSponsorTag

      public boolean removeSponsorTag(NamedFacebookType sponsorTag)
    • getFrom

      public From getFrom()
      An object containing the ID and name of the user who posted the message.
      Gibt zurück:
      An object containing the ID and name of the user who posted the message.
    • setFrom

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

      Objectives under which this post can be advertised
      Gibt zurück:
      Objectives under which this post can be advertised
    • setAllowedAdvertisingObjects

      public void setAllowedAdvertisingObjects(String allowedAdvertisingObjects)
      Objectives under which this post can be advertised
    • getAllowedAdvertisingObjectives

      Objectives under which this post can be advertised
      Gibt zurück:
      Objectives under which this post can be advertised
    • setAllowedAdvertisingObjectives

      public void setAllowedAdvertisingObjectives(List<String> allowedAdvertisingObjectives)
      Objectives under which this post can be advertised
    • getCallToAction

      The call to action type used in any Page posts for mobile app engagement ads
    • setCallToAction

      public void setCallToAction(PostCallToAction callToAction)
      The call to action type used in any Page posts for mobile app engagement ads
    • getCommentsMirroringDomain

      If comments are being mirrored to an external site, this function returns the domain of that external site.
      Gibt zurück:
      If comments are being mirrored to an external site, this function returns the domain of that external site.
    • setCommentsMirroringDomain

      public void setCommentsMirroringDomain(String commentsMirroringDomain)
      If comments are being mirrored to an external site, this function returns the domain of that external site.
    • getMessage

      public String getMessage()
      The message.
      Angegeben von:
      getMessage in Schnittstelle HasMessage
      Gibt zurück:
      The message.
    • setMessage

      public void setMessage(String message)
      The message.
    • getParentId

      public String getParentId()
      ID of the parent post
      Gibt zurück:
      ID of the parent post
    • setParentId

      public void setParentId(String parentId)
      ID of the parent post
    • getPermalinkUrl

      The permanent static URL to the post on www.facebook.com.

      Example: https://www.facebook.com/FacebookforDevelopers/posts/10153449196353553

      Gibt zurück:
      The permanent static URL to the post on www.facebook.com.
    • setPermalinkUrl

      public void setPermalinkUrl(String permalinkUrl)
      The permanent static URL to the post on www.facebook.com.

      Example: https://www.facebook.com/FacebookforDevelopers/posts/10153449196353553

    • getPicture

      public String getPicture()
      If available, a link to the picture included with this post.
      Gibt zurück:
      If available, a link to the picture included with this post.
    • setPicture

      public void setPicture(String picture)
      If available, a link to the picture included with this post.
    • getLink

      @GraphAPI(until="3.2") public String getLink()
      The link attached to this post. Hint for Graph API 3.3: Use attachment/url_unshimmed instead
      Gibt zurück:
      The link attached to this post.
    • setLink

      public void setLink(String link)
      The link attached to this post. Hint for Graph API 3.3: Use attachment/url_unshimmed instead
    • getName

      @GraphAPI(until="3.2") public String getName()
      The name of the link. Hint for Graph API 3.3: Use attachment/title instead
      Gibt zurück:
      The name of the link.
    • setName

      public void setName(String name)
      The name of the link. Hint for Graph API 3.3: Use attachment/title instead
    • getCaption

      @GraphAPI(until="3.2") public String getCaption()
      The caption of the link (appears beneath the link name). Hint for Graph API 3.3: Use attachment/title instead
      Gibt zurück:
      The caption of the link (appears beneath the link name).
    • setCaption

      public void setCaption(String caption)
      The caption of the link (appears beneath the link name). Hint for Graph API 3.3: Use attachment/title instead
    • getDescription

      A description of the link (appears beneath the link caption). Hint for Graph API 3.3: Use attachment/description instead
      Gibt zurück:
      A description of the link (appears beneath the link caption).
    • setDescription

      public void setDescription(String description)
      A description of the link (appears beneath the link caption). Hint for Graph API 3.3: Use attachment/description instead
    • getSource

      @GraphAPI(until="3.2") public String getSource()
      If available, the source link attached to this post (for example, a flash or video file). Hint for Graph API 3.3: Use attachment/media/source instead
      Gibt zurück:
      If available, the source link attached to this post (for example, a flash or video file).
    • setSource

      public void setSource(String source)
      If available, the source link attached to this post (for example, a flash or video file). Hint for Graph API 3.3: Use attachment/media/source instead
    • getApplication

      The application used to create this post.
      Gibt zurück:
      The application used to create this post.
    • setApplication

      public void setApplication(NamedFacebookType application)
      The application used to create this post.
    • getIcon

      public String getIcon()
      A link to an icon representing the type of this post.
      Gibt zurück:
      A link to an icon representing the type of this post.
    • setIcon

      public void setIcon(String icon)
      A link to an icon representing the type of this post.
    • getPrivacy

      public Privacy getPrivacy()
      The privacy settings for this post.
      Gibt zurück:
      The privacy settings for this post.
    • setPrivacy

      public void setPrivacy(Privacy privacy)
      The privacy settings for this post.
    • getPromotionStatus

      Status of the promotion, if the post was promoted.
      Gibt zurück:
      Status of the promotion, if the post was promoted
    • setPromotionStatus

      public void setPromotionStatus(String promotionStatus)
      Status of the promotion, if the post was promoted.
    • getFeedTargeting

      Object that controls news feed targeting for this post. To force Facebook to fill the feed_targeting field you have to fetch the post with the fields=feed_targeting parameter, otherwise the feedTargeting is null.
      Seit:
      1.11.0
    • setFeedTargeting

      public void setFeedTargeting(Post.FeedTargeting feedTargeting)
      Object that controls news feed targeting for this post. To force Facebook to fill the feed_targeting field you have to fetch the post with the fields=feed_targeting parameter, otherwise the feedTargeting is null.
      Seit:
      1.11.0
    • getCanReplyPrivately

      Whether the viewer can send a private reply to this post (Page viewers only)
      Gibt zurück:
      Whether the viewer can send a private reply to this post
    • setCanReplyPrivately

      public void setCanReplyPrivately(Boolean canReplyPrivately)
      Whether the viewer can send a private reply to this post (Page viewers only)
    • getTarget

      The profile this was posted on if different from the author.
      Gibt zurück:
      The profile this was posted on if different from the author
    • setTarget

      public void setTarget(NamedFacebookType target)
      The profile this was posted on if different from the author.
    • getTargeting

      Ads targeting information of the post.
      Gibt zurück:
      Ads targeting information of the post
    • setTargeting

      public void setTargeting(Post.Targeting targeting)
      Ads targeting information of the post.
    • getTimelineVisibility

      Timeline visibility information of the post.
      Gibt zurück:
      timeline visibility information of the post
    • setTimelineVisibility

      public void setTimelineVisibility(String timelineVisibility)
      Timeline visibility information of the post.
    • getLikes

      public Likes getLikes()
      Duplicate mapping for "likes" since FB can return it differently in different situations. -- GETTER -- The likes on this post.

      Sometimes this can be null - check getLikesCount() instead in that case.

      Gibt zurück:
      The likes on this post.
    • setLikes

      public void setLikes(Likes likes)
      Duplicate mapping for "likes" since FB can return it differently in different situations. -- GETTER -- The likes on this post.

      Sometimes this can be null - check getLikesCount() instead in that case.

    • getCreatedTime

      public Date getCreatedTime()
      The time the post was initially published.
      Angegeben von:
      getCreatedTime in Schnittstelle HasCreatedTime
      Gibt zurück:
      The time the post was initially published.
    • setCreatedTime

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

      public Date getUpdatedTime()
      The time of the last comment on this post.
      Gibt zurück:
      The time of the last comment on this post.
    • setUpdatedTime

      public void setUpdatedTime(Date updatedTime)
      The time of the last comment on this post.
    • getTaggedTime

      public Date getTaggedTime()
      This field is available on tagged Posts.
      Gibt zurück:
      The tagging Date of the Post
    • setTaggedTime

      public void setTaggedTime(Date taggedTime)
      This field is available on tagged Posts.
    • getObjectId

      @GraphAPI(until="3.2") public String getObjectId()
      The Facebook object id for an uploaded photo or video. Hint for Graph API 3.3: Use attachment/target/id instead
      Gibt zurück:
      The Facebook object id for an uploaded photo or video.
      Seit:
      1.6.5
    • setObjectId

      public void setObjectId(String objectId)
      The Facebook object id for an uploaded photo or video. Hint for Graph API 3.3: Use attachment/target/id instead
      Seit:
      1.6.5
    • getStatusType

      The status_type of post this is, for example "approved_friend".
      Gibt zurück:
      The status_type of post this is, for example "approved_friend".
      Seit:
      1.6.12
    • setStatusType

      public void setStatusType(String statusType)
      The status_type of post this is, for example "approved_friend".
      Seit:
      1.6.12
    • getStory

      public String getStory()
      Text from stories not intentionally generated by users
      Gibt zurück:
      Text from stories not intentionally generated by users
      Seit:
      1.6.16
    • setStory

      public void setStory(String story)
      Text from stories not intentionally generated by users
      Seit:
      1.6.16
    • getComments

      The comments for this post.
      Angegeben von:
      getComments in Schnittstelle HasComments
      Gibt zurück:
      The comments for this post.
    • setComments

      public void setComments(Comments comments)
      The comments for this post.
    • getReactions

      The reactions for this post.
      Gibt zurück:
      The reactions for this post.
    • setReactions

      public void setReactions(Reactions reactions)
      The reactions for this post.
    • getPlace

      public Place getPlace()
      The place where this post occurred.
      Gibt zurück:
      The place where this post occurred.
      Seit:
      1.6.8
    • setPlace

      public void setPlace(Place place)
      The place where this post occurred.
      Seit:
      1.6.8
    • getScheduledPublishTime

      UNIX timestamp of the scheduled publish time for the post.
      Gibt zurück:
      UNIX timestamp of the scheduled publish time for the post
    • setScheduledPublishTime

      public void setScheduledPublishTime(Date scheduledPublishTime)
      UNIX timestamp of the scheduled publish time for the post.
    • getShares

      Number of times the post has been shared.
      Gibt zurück:
      Number of times the post has been shared
    • setShares

      public void setShares(Post.Shares shares)
      Number of times the post has been shared.
    • getAdminCreator

      ID of admin who created the post. Applies to pages only
      Gibt zurück:
      ID of admin who created the post.
      Seit:
      1.10.0
    • setAdminCreator

      public void setAdminCreator(NamedFacebookType adminCreator)
      ID of admin who created the post. Applies to pages only
      Seit:
      1.10.0
    • getInstagramEligibility

      Whether the post can be promoted on Instagram.

      It returns the enum eligible if it can be promoted. Otherwise it returns an enum for why it cannot be promoted

      Gibt zurück:
      Whether the post can be promoted on Instagram
    • setInstagramEligibility

      public void setInstagramEligibility(String instagramEligibility)
      Whether the post can be promoted on Instagram.

      It returns the enum eligible if it can be promoted. Otherwise it returns an enum for why it cannot be promoted

    • getIsAppShare

      Whether or not the post references an app.
      Gibt zurück:
      Whether or not the post references an app
    • setIsAppShare

      public void setIsAppShare(Boolean isAppShare)
      Whether or not the post references an app.
    • getIsEligibleForPromotion

    • setIsEligibleForPromotion

      public void setIsEligibleForPromotion(Boolean isEligibleForPromotion)
    • getIsExpired

      Whether the post has expiration time that has passed
      Gibt zurück:
      Whether the post has expiration time that has passed
    • setIsExpired

      public void setIsExpired(Boolean isExpired)
      Whether the post has expiration time that has passed
    • getIsHidden

      public Boolean getIsHidden()
      If this post is marked as hidden (applies to Pages only).
      Gibt zurück:
      if this post is marked as hidden
      Seit:
      1.10.0
    • setIsHidden

      public void setIsHidden(Boolean isHidden)
      If this post is marked as hidden (applies to Pages only).
      Seit:
      1.10.0
    • getIsInstagramEligible

      Whether this post can be promoted in Instagram.
      Gibt zurück:
      Whether this post can be promoted in Instagram
    • setIsInstagramEligible

      public void setIsInstagramEligible(Boolean isInstagramEligible)
      Whether this post can be promoted in Instagram.
    • getIsPopular

      Whether the post is currently popular. Based on whether the total actions as a percentage of reach exceeds a certain threshold
      Gibt zurück:
      Whether the post is currently popular
    • setIsPopular

      public void setIsPopular(Boolean isPopular)
      Whether the post is currently popular. Based on whether the total actions as a percentage of reach exceeds a certain threshold
    • getIsPublished

      Indicates whether a scheduled post was published. (applies to scheduled Page Post only, for users post and instantly published posts this value is always true)
      Gibt zurück:
      indicates whether a scheduled post was published
      Seit:
      1.10.0
    • setIsPublished

      public void setIsPublished(Boolean isPublished)
      Indicates whether a scheduled post was published. (applies to scheduled Page Post only, for users post and instantly published posts this value is always true)
      Seit:
      1.10.0
    • getIsSpherical

      Whether the post is a spherical video post.
      Gibt zurück:
      Whether the post is a spherical video post
    • setIsSpherical

      public void setIsSpherical(Boolean isSpherical)
      Whether the post is a spherical video post.
    • getMultiShareEndCard

      Whether display the end card for a multi-link share post
    • setMultiShareEndCard

      public void setMultiShareEndCard(Boolean multiShareEndCard)
      Whether display the end card for a multi-link share post
    • getMultiShareOptimized

      Whether automatically select the order of the links in multi-link share post when used in an ad
    • setMultiShareOptimized

      public void setMultiShareOptimized(Boolean multiShareOptimized)
      Whether automatically select the order of the links in multi-link share post when used in an ad
    • getAttachments

      Attachments added to a post. To force Facebook to fill the attachments field you have to fetch the post with the fields=attachments parameter, otherwise the attachments are null.
      Gibt zurück:
      Attachment on the post
    • setAttachments

      public void setAttachments(Post.Attachments attachments)
      Attachments added to a post. To force Facebook to fill the attachments field you have to fetch the post with the fields=attachments parameter, otherwise the attachments are null.
    • getFullPicture

      Full picture URL. you get the url to this posts full picture. To force Facebook to fill the full_picture field you have to fetch the post with the fields=full_picture parameter, otherwise the full_picture is null.
      Gibt zurück:
      String representing the url to the post's full picture
    • setFullPicture

      public void setFullPicture(String fullPicture)
      Full picture URL. you get the url to this posts full picture. To force Facebook to fill the full_picture field you have to fetch the post with the fields=full_picture parameter, otherwise the full_picture is null.
    • getVia

      public String getVia()
      ID of the user or Page the post was shared from
    • setVia

      public void setVia(String via)
      ID of the user or Page the post was shared from