Class TestFacebookGraphApi


  • public class TestFacebookGraphApi
    extends AbstractExampleTest
    A collection of tests that demonstrate how URI Templates can be used to interact with the Facebook Graph API. These tests use some of the examples found on the Facebook Graph API reference: https://developers.facebook.com/docs/reference/api/ You will need your Facebook access token in a System property:
     -Dfb.access_token=
     
    Version:
    $Revision: 1.1 $
    Author:
    Ryan J. McDonough
    • Constructor Detail

      • TestFacebookGraphApi

        public TestFacebookGraphApi()
    • Method Detail

      • setUp

        public static void setUp()
        Checks assumptions that the Facebook Access token is set.
      • facebookGraphApiFQL

        public void facebookGraphApiFQL()
                                 throws Exception
        Throws:
        Exception
      • facebookGraphApiAllFields

        public void facebookGraphApiAllFields()
                                       throws Exception
        Throws:
        Exception
      • facebookGraphApiGetSubResource

        public void facebookGraphApiGetSubResource()
                                            throws Exception
        Throws:
        Exception
      • facebookGraphApiSelectiveFields

        public void facebookGraphApiSelectiveFields()
                                             throws Exception
        Throws:
        Exception
      • facebookGraphApiSelectiveFieldsWithListWithAlbums

        public void facebookGraphApiSelectiveFieldsWithListWithAlbums()
                                                               throws Exception
        Same as the previous test, but demonstrates how a List can be used rather than an array.
        Throws:
        Exception
      • facebookGraphApiSelectiveFieldsWithList

        public void facebookGraphApiSelectiveFieldsWithList()
                                                     throws Exception
        Throws:
        Exception
      • facebookGraphApiPlacesSearch

        public void facebookGraphApiPlacesSearch()
                                          throws Exception
        Throws:
        Exception