Package com.restfb

Enum Version

    • Enum Constant Detail

      • VERSION_9_0

        public static final Version VERSION_9_0
        Graph API 9.0, available until February 23, 2023
        Since:
        November 10th, 2020
      • VERSION_10_0

        public static final Version VERSION_10_0
        Graph API 10.0, available until June 8th, 2023
        Since:
        February 23th, 2021
      • VERSION_11_0

        public static final Version VERSION_11_0
        Graph API 11.0, available until September 14th, 2023
        Since:
        June 8th, 2021
      • VERSION_12_0

        public static final Version VERSION_12_0
        Graph API 12.0, available until February 8th, 2024
        Since:
        September 14th, 2021
      • VERSION_13_0

        public static final Version VERSION_13_0
        Graph API 13.0, available until May 28th, 2024
        Since:
        February 8th, 2022
      • VERSION_14_0

        public static final Version VERSION_14_0
        Graph API 14.0, available until September 17th, 2024
        Since:
        May 25th, 2022
      • VERSION_15_0

        public static final Version VERSION_15_0
        Graph API 15.0, available until February 2nd, 2024
        Since:
        September 17th, 2022
      • VERSION_16_0

        public static final Version VERSION_16_0
        Graph API 16.0, available until May 23, 2025
        Since:
        February 2nd, 2023
      • VERSION_17_0

        public static final Version VERSION_17_0
        Graph API 17.0, available until September 12, 2025
        Since:
        May 23, 2023
      • VERSION_18_0

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

        public static final Version VERSION_19_0
        Graph API 19.0, available at least until January 2026
        Since:
        January 23, 2024
      • 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 19.0

    • Method Detail

      • values

        public static Version[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Version c : Version.values())
            System.out.println(c);
        
        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
      • 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