Package com.restfb.types
Class Subscription
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.Subscription
- All Implemented Interfaces:
Serializable
Represents the App Subscription
type.
- Since:
- 1.5
- Author:
- Norbert Bartels
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIndicates whether or not the subscription is active.The URL that will receive the POST request when an update is triggered.One or more of the set of valid fields in this object to subscribe to.Indicates the object type that this subscription applies to.void
Indicates whether or not the subscription is active.void
setCallbackUrl
(String callbackUrl) The URL that will receive the POST request when an update is triggered.void
setFields
(List<Subscription.SubscriptionField> fields) One or more of the set of valid fields in this object to subscribe to.void
Indicates the object type that this subscription applies to.Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
Subscription
public Subscription()
-
-
Method Details
-
getObject
Indicates the object type that this subscription applies to. type: user, page, permissions, payments- Returns:
- the object type that this subscription applies to
-
setObject
Indicates the object type that this subscription applies to. type: user, page, permissions, payments -
getCallbackUrl
The URL that will receive the POST request when an update is triggered.- Returns:
- the URL that will receive the POST request
-
setCallbackUrl
The URL that will receive the POST request when an update is triggered. -
getFields
One or more of the set of valid fields in this object to subscribe to. The set of valid fields is defined here: https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3#subscribefields- Returns:
- set of fields
-
setFields
One or more of the set of valid fields in this object to subscribe to. The set of valid fields is defined here: https://developers.facebook.com/docs/graph-api/real-time-updates/v2.3#subscribefields -
getActive
Indicates whether or not the subscription is active.- Returns:
- if the subscription is active
-
setActive
Indicates whether or not the subscription is active.
-