Package com.restfb.types
Class Url
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.FacebookType
-
- com.restfb.types.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Url.OGObject
The Open Graph object that is canonically associated with this URL.-
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
-
Constructor Summary
Constructors Constructor Description Url()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppLinks
getAppLinks()
int
getCommentCount()
int
getCommentPluginCount()
Url.OGObject
getOgObject()
The Open Graph object that is canonically associated with this URL.int
getReactionCount()
int
getShareCount()
void
setAppLinks(AppLinks appLinks)
AppLinks data associated with this URL.void
setCommentCount(int commentCount)
The sum of comments on posts containing this URL on Facebook.void
setCommentPluginCount(int commentPluginCount)
The number shown in the comments plugin associated with the URL.void
setOgObject(Url.OGObject ogObject)
The Open Graph object that is canonically associated with this URL.void
setReactionCount(int reactionCount)
The sum of reactions across all posts containing the URL on Facebook.void
setShareCount(int shareCount)
The total shares of this URL all over Facebook.-
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
-
Url
public Url()
-
-
Method Detail
-
getOgObject
public Url.OGObject 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
public AppLinks 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 set0
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.
-
-