Class Url

All Implemented Interfaces:
Serializable

public class Url extends FacebookType
Represents an external URL as it relates to the Facebook social graph - shares and comments from the URL on Facebook, and any Open Graph objects associated with the URL. Represents the URL Graph API type. Facebook APi Version 2.1+
Since:
1.7.0
See Also:
Serialized Form
  • Constructor Details

    • Url

      public Url()
  • Method Details

    • getOgObject

      The Open Graph object that is canonically associated with this URL.
      Returns:
      The Open Graph object that is canonically associated with this URL
    • setOgObject

      public void setOgObject(Url.OGObject ogObject)
      The Open Graph object that is canonically associated with this URL.
    • getAppLinks

      Returns:
      AppLinks data associated with this URL.
    • setAppLinks

      public void setAppLinks(AppLinks appLinks)
      AppLinks data associated with this URL.
    • getCommentCount

      public int getCommentCount()
      Returns:
      The sum of comments on posts containing this URL on Facebook.
    • setCommentCount

      public void setCommentCount(int commentCount)
      The sum of comments on posts containing this URL on Facebook.
    • getShareCount

      public int getShareCount()
      Returns:
      The total shares of this URL all over Facebook.
    • setShareCount

      public void setShareCount(int shareCount)
      The total shares of this URL all over Facebook. is set 0 if the share count is not present
    • getReactionCount

      public int getReactionCount()
      Returns:
      The sum of reactions across all posts containing the URL on Facebook.
    • setReactionCount

      public void setReactionCount(int reactionCount)
      The sum of reactions across all posts containing the URL on Facebook.
    • getCommentPluginCount

      public int getCommentPluginCount()
      Returns:
      The number shown in the comments plugin associated with the URL. This number does not include comments made on posts on Facebook.
    • setCommentPluginCount

      public void setCommentPluginCount(int commentPluginCount)
      The number shown in the comments plugin associated with the URL. This number does not include comments made on posts on Facebook.