title: Android: get facebook friends list
body: <p>I am using the <a href="https://github.com/facebook/facebook-android-sdk/" rel="nofollow">Facebook SDK</a> to post messages on walls.</p>
  
  <p>Now I need to fetch the Facebook friends list.  Can anybody help me with this?</p>
  
  <p>-- Edit --</p>
  
  <pre><code>try {
  
    Facebook mFacebook = new Facebook(Constants.FB_APP_ID);
    AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(mFacebook);
    Bundle bundle = new Bundle();
    bundle.putString("fields", "birthday");
    mFacebook.request("me/friends", bundle);
  
  } catch(Exception e){
      Log.e(Constants.LOGTAG, " " + CLASSTAG + " Exception = "+e.getMessage());
  }
  </code></pre>
  
  <p>When I execute my <code>activity</code>, I'm not seeing anything, but in <code>LogCat</code> there is a debug message like: </p>
  
  <pre><code>06-04 17:43:13.863: DEBUG/Facebook-Util(409): GET URL: https://graph.facebook.com/me/friends?format=json&amp;fields=birthday
  </code></pre>
  
  <p>And when I tried to access this url directly from the browser, I'm getting the following error response:</p>
  
  <pre><code>{
    error: {
    type: "OAuthException"
    message: "An active access token must be used to query information about the current user."
   }
  }
  </code></pre>