Class Subscription

    • Method Detail

      • 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

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

        public List<Subscription.SubscriptionFieldgetFields()
        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

        public void setFields​(List<Subscription.SubscriptionField> fields)
        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.