Package com.restfb

Enum Version

    • Enum Constant Detail

      • VERSION_2_7

        @Deprecated
        public static final Version VERSION_2_7
        Deprecated.
        Graph API 2.7, available until October 5, 2018
        Since:
        July 13, 2016
      • VERSION_2_8

        public static final Version VERSION_2_8
        Graph API 2.8, available until April 18th, 2019
        Since:
        October 5th, 2016
      • VERSION_2_9

        public static final Version VERSION_2_9
        Graph API 2.9, available until July 18th, 2019
        Since:
        April 18th, 2017
      • VERSION_2_10

        public static final Version VERSION_2_10
        Graph API 2.10, available until November 7, 2019
        Since:
        July 18th, 2017
      • VERSION_2_11

        public static final Version VERSION_2_11
        Graph API 2.11, available until January 30, 2020
        Since:
        November 7, 2017
      • VERSION_2_12

        public static final Version VERSION_2_12
        Graph API 2.12, available at least until May 1, 2020
        Since:
        January 30, 2018
      • VERSION_3_0

        public static final Version VERSION_3_0
        Graph API 3.0, available at least until July 26, 2020
        Since:
        May 1, 2018
      • VERSION_3_1

        public static final Version VERSION_3_1
        Graph API 3.1, available at least until October 23, 2020
        Since:
        July 26, 2018
      • VERSION_3_2

        public static final Version VERSION_3_2
        Graph API 3.2, available at least until October, 2020
        Since:
        October 23, 2018
      • 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 3.2

    • 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 urlElement)
        converts a String (for example the url paramter) into a Version object
        Parameters:
        urlElement - String that should
        Returns:
        the generated version