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
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
The Open Graph object that is canonically associated with this URL.int
int
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 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
The Open Graph object that is canonically associated with this URL. -
getAppLinks
- Returns:
- AppLinks data associated with this URL.
-
setAppLinks
AppLinks data associated with this URL. -
getCommentCount
- Returns:
- The sum of comments on posts containing this URL on Facebook.
-
setCommentCount
The sum of comments on posts containing this URL on Facebook. -
getReactionCount
- Returns:
- The sum of reactions across all posts containing the URL on Facebook.
-
setReactionCount
The sum of reactions across all posts containing the URL on Facebook. -
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
The number shown in the comments plugin associated with the URL. This number does not include comments made on posts on Facebook.
-