facebook

Testing Public REST API of Popular Services

The MyEclipse Explorer view contains a REST API node with sample APIs for popular services such as FaceBook, LinkedIn, and Twitter. In this tutorial, you will test a Facebook API method. You will learn how to:

  • Open the Facebook WADL in the REST explorer
  • Test one method

Duration Time: 10 Minutes

Start Tutorial Now

Don't have MyEclipse? Download Now

1. Open the Facebook API WADL

  1. In the MyEclipse Explorer, expand RESTful Web Services, and double-click Facebook.

    Opening the Facebook WADL
  2. In the Outline section, expand Application>https://graph.facebook.com>search, and select search [GET].
    select_search_method
    Selecting a method to test
  3. Click the Test method link.
    test_search_method
    Test method tab
  4. Click Authenticate to log into Facebook with your credentials.
    fb_test_authentication
    Entering required authentication before testing
  5. Type Genuitec as your search string in the q field, and leave the default page as the query type.

    Note: Hover over the info icon to view all supported types.
    fb_search_setup
    Setting up the search
  6. Click launch_run. The service responses appear response areas.
    fb_search_response
    Search responses
  7. When finished testing, you can click Delete token to have the REST explorer forget your credentials. This step is optional.
    delete_token
    Removing credentials from REST explorer