Class Subscription

All Implemented Interfaces:
Serializable

public class Subscription extends AbstractFacebookType
Represents the App Subscription type.
Since:
1.5
Author:
Norbert Bartels
See Also:
  • Constructor Details

  • Method Details

    • getObject

      public String 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

      public void setObject(String object)
      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

      public void setCallbackUrl(String callbackUrl)
      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

      public Boolean getActive()
      Indicates whether or not the subscription is active.
      Returns:
      if the subscription is active
    • setActive

      public void setActive(Boolean active)
      Indicates whether or not the subscription is active.