title: Python, Facebook Graph API -- AttributeError: 'GraphAPI' object has no attribute 'search'
body: <p>This question has been asked, but never answered. </p>
  
  <pre><code>import facebook
  graph = facebook.GraphAPI(access_token="your token",version="2.7")
  </code></pre>
  
  <p>From the Facebook SDK python page, I got the following code: </p>
  
  <pre><code># Search for places near 1 Hacker Way in Menlo Park, California.
  places = graph.search(type='place',
                        center='37.4845306,-122.1498183',
                        fields='name,location')
  
  # Each given id maps to an object the contains the requested fields.
  for place in places['data']:
      print('%s %s' % (place['name'].encode(),place['location'].get('zip')))
  </code></pre>
  
  <p>Here's the <a href="http://facebook-sdk.readthedocs.io/en/latest/api.html" rel="nofollow noreferrer">link</a>. </p>
  
  <p>It doesn't work however. I don't get why. The error reads </p>
  
  <pre><code>---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-21-56959958831f&gt; in &lt;module&gt;()
        1 # Search for places near 1 Hacker Way in Menlo Park, California.
  ----&gt; 2 places = graph.search(type='place',
        3                       center='37.4845306,-122.1498183',
        4                       fields='name,location')
        5 
  
  AttributeError: 'GraphAPI' object has no attribute 'search'
  </code></pre>
  
  <p>What does this mean? Why would the example not work? I can't seem to find documentation on the specifics of how the GraphAPI class is structured, but I assume search is part of this. </p>