Class Link

All Implemented Interfaces:
HasCreatedTime, HasFrom, HasMessage, Serializable

public class Link
extends NamedFacebookType
implements HasCreatedTime, HasFrom, HasMessage
Represents the Link Graph API type.
Since:
1.5
Author:
Mark Allen, Patrick Alberts
See Also:
Serialized Form
  • Constructor Details

    • Link

      public Link()
  • Method Details

    • getFrom

      An object containing the name and ID of the user who posted the link.
      Specified by:
      getFrom in interface HasFrom
      Returns:
      An object containing the name and ID of the user who posted the link.
    • setFrom

      public void setFrom​(NamedFacebookType from)
      An object containing the name and ID of the user who posted the link.
    • getMessage

      public String getMessage()
      The link message content.
      Specified by:
      getMessage in interface HasMessage
      Returns:
      The link message content.
    • setMessage

      public void setMessage​(String message)
      The link message content.
    • getPicture

      public String getPicture()
      The picture associated with the link.
      Returns:
      The picture associated with the link.
    • setPicture

      public void setPicture​(String picture)
      The picture associated with the link.
    • getLink

      public String getLink()
      The actual URL that was shared.
      Returns:
      The actual URL that was shared.
    • setLink

      public void setLink​(String link)
      The actual URL that was shared.
    • getDescription

      The link description.
      Returns:
      The link description.
    • setDescription

      public void setDescription​(String description)
      The link description.
    • getIcon

      public String getIcon()
      The link icon.
      Returns:
      The link icon.
    • setIcon

      public void setIcon​(String icon)
      The link icon.
    • getCreatedTime

      public Date getCreatedTime()
      The time at which this object was created, if available.
      Specified by:
      getCreatedTime in interface HasCreatedTime
      Returns:
      The time at which this object was created.
      Since:
      1.6.3
    • setCreatedTime

      public void setCreatedTime​(Date createdTime)
      The time at which this object was created, if available.
      Since:
      1.6.3