Package com.restfb

Interface WebRequestor

    • Method Detail

      • executeGet

        WebRequestor.Response executeGet​(String url)
                                  throws IOException
        Given a Facebook API endpoint URL, execute a GET against it.
        Parameters:
        url - The URL to make a GET request for, including URL parameters.
        Returns:
        HTTP response data.
        Throws:
        IOException - If an error occurs while performing the GET operation.
        Since:
        1.5
      • executePost

        WebRequestor.Response executePost​(String url,
                                          String parameters)
                                   throws IOException
        Given a Facebook API endpoint URL and parameter string, execute a POST to the endpoint URL.
        Parameters:
        url - The URL to POST to.
        parameters - The parameters to be POSTed.
        Returns:
        HTTP response data.
        Throws:
        IOException - If an error occurs while performing the POST.
      • executePost

        WebRequestor.Response executePost​(String url,
                                          String parameters,
                                          List<BinaryAttachment> binaryAttachments)
                                   throws IOException
        Given a Facebook API endpoint URL and parameter string, execute a POST to the endpoint URL.
        Parameters:
        url - The URL to POST to.
        parameters - The parameters to be POSTed.
        binaryAttachments - Optional binary attachments to be included in the POST body (e.g. photos and videos).
        Returns:
        HTTP response data.
        Throws:
        IOException - If an error occurs while performing the POST.
      • executeDelete

        WebRequestor.Response executeDelete​(String url)
                                     throws IOException
        Given a Facebook API endpoint URL and parameter string, execute a DELETE to the endpoint URL.
        Parameters:
        url - The URL to submit the DELETE to.
        Returns:
        HTTP response data.
        Throws:
        IOException - If an error occurs while performing the DELETE.
      • getDebugHeaderInfo

        DebugHeaderInfo getDebugHeaderInfo()
        Provides access to the facebook header information. The fields x-fb-rev, x-fb-trace-id and x-fb-debug are checked and returned in a single container of the type DebugHeaderInfo
        Returns:
        container with the explained facebook debug header information