Package com.restfb

Enum Version

All Implemented Interfaces:
Serializable, Comparable<Version>, java.lang.constant.Constable

public enum Version extends Enum<Version>
  • Enum Constant Details

    • UNVERSIONED

      public static final Version UNVERSIONED
      unversiond api
    • VERSION_18_0

      @Deprecated public static final Version VERSION_18_0
      Deprecated.
      Graph API 18.0, available at least until January 23, 2026
      Since:
      September 12, 2023
    • VERSION_19_0

      @Deprecated public static final Version VERSION_19_0
      Deprecated.
      Graph API 19.0, available at least until May 21, 2026
      Since:
      January 23, 2024
    • VERSION_20_0

      public static final Version VERSION_20_0
      Graph API 20.0, available at least until September 24, 2026
      Since:
      May 21, 2024
    • VERSION_21_0

      public static final Version VERSION_21_0
      Graph API 21.0, available at least until January 21, 2027
      Since:
      October 2, 2024
    • VERSION_22_0

      public static final Version VERSION_22_0
      Graph API 22.0, available at least until May 29, 2027
      Since:
      January 21, 2025
    • VERSION_23_0

      public static final Version VERSION_23_0
      Graph API 23.0, available at least until October 8, 2027
      Since:
      May 29, 2025
    • VERSION_24_0

      public static final Version VERSION_24_0
      Graph API 24.0, available at least until October 2027
      Since:
      October 8, 2025
    • VERSION_25_0

      public static final Version VERSION_25_0
      Graph API 25.0, available at least until July 2028
      Since:
      February 18, 2026
    • VERSION_26_0

      public static final Version VERSION_26_0
      Graph API 25.0, available at least until February 2028
      Since:
      July 29, 2026
    • LATEST

      public static final Version LATEST
      convenience enum to provide simple access to the latest supported Graph API Version.

      the current version is Graph API 26.0

    • THREADS_1_0

      public static final Version THREADS_1_0
      Threads API 1.0, according to the documentation, this is the first Threads API Version
    • THREADS_LATEST

      public static final Version THREADS_LATEST
      convenience enum to provide simple access to the latest supported Threads API Version.
  • Method Details

    • values

      public static Version[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Version valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getUrlElement

    • isUrlElementRequired

      public boolean isUrlElementRequired()
    • getVersionFromString

      public static Version getVersionFromString(String urlElementStr)
      converts a String (for example the url parameter) into a Version object
      Parameters:
      urlElementStr - String that should
      Returns:
      the generated version