title: Facebook friends count using python
body: <p>I am trying to just know how many friends a user has. This is what I tried, but it doesn't work:</p>
  
  <pre><code>&gt;&gt;&gt; import facebook
  &gt;&gt;&gt; graph = facebook.GraphAPI("CAAEr.....XCODEe6bMZD")
  &gt;&gt;&gt; profile = graph.get_object('puja41')
  &gt;&gt;&gt; friends = graph.get_connections("puja41", "friends")
  
  Traceback (most recent call last):
    File "&lt;pyshell#54&gt;", line 1, in &lt;module&gt;
      friends = graph.get_connections("puja41", "friends")
    File "C:/Documents and Settings/visolank/Desktop/Python/programs\facebook.py", line 112, in get_connections
      return self.request(id + "/" + connection_name, args)
    File "C:/Documents and Settings/visolank/Desktop/Python/programs\facebook.py", line 298, in request
      raise GraphAPIError(response)
  GraphAPIError: Unsupported operation
  </code></pre>
  
  <p>When i tried JonasR's suggestion, I got:</p>
  
  <pre><code>{
     "error": {
        "message": "Unsupported operation",
        "type": "FacebookApiException",
        "code": 100
     }
  }
  </code></pre>