Time for action – searching while authorized

Grab an access token (see Chapter 3 for a reminder on how to do this) and use it to try that person search again:

https://graph.facebook.com/search?type=user&q=Bob&access_token=«access_token»

{
   "data": [
      {
         "name": "Robert H.",
         "id": "«redacted»"
      },
      {
         "name": "Robert W.",
         "id": "«redacted»"
      },
      {
         "name": "Bob Bob Bob",
         "id": "«redacted»"
      },
      {
         "Name": "bob t.",
         "Id": "«redacted»"
      },
      {
         "Name": "bob p.",
         "Id": "«redacted»"
      }
   ],
   "Paging": {
      "Next": "https://graph.Facebook.Com/search?Type=user&q=bob&access_token=«access_token»&limit=25&offset=25"
   }
}

This has used both the "smart" features of the web page-based search: it found "Robert" when searching for "Bob", and ordered the results so that people I'm more ...

Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.