title: Android get birthday dates from Facebook profile
body: <p>I want to get all birthday dates which are in my friend list. I have tried for days. My code is given below. </p>
  
  <pre><code>Facebook facebook = new Facebook(&lt;MY_FACEBOOK_ID&gt;);
  
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
  
      mContext = this;
      setContentView(R.layout.main);
  
      showNotification();
  
    final String[] PERMISSIONS = new String[] {"user_location", "user_birthday"};        
  
  
      facebook.authorize(this, PERMISSIONS, new DialogListener() {
          @Override
          public void onComplete(Bundle values) {}
  
  
          @Override
          public void onCancel() {}
  
          @Override
          public void onFacebookError(FacebookError e) {
              // TODO Auto-generated method stub
  
          }
  
          @Override
          public void onError(DialogError e) {
              // TODO Auto-generated method stub
  
          }
      });
  
      try {
  
            String token = facebook.getAccessToken();
  
            Bundle bundle = new Bundle();
            bundle.putString("fields", "id,name");
            bundle.putString("access_token", token);
  
                String response = facebook.request( "me/friends", bundle ); 
  
                facebook.setAccessToken(facebook.getAccessToken());
  
                Toast.makeText(mContext, token , Toast.LENGTH_LONG).show();
                Toast.makeText(mContext, response, Toast.LENGTH_LONG).show();
  
                JSONObject json = Util.parseJson( response );
  
                JSONArray data = json.getJSONArray( "data" );
  
                for ( int i = 0; i &lt; data.length(); i++ )
                {
                    JSONObject friend = data.getJSONObject( i );
  
                    String id = friend.getString( "id" );
                    String name = friend.getString( "name" );
                    Toast.makeText(mContext, "ID: "+ id , Toast.LENGTH_LONG).show();
                    Toast.makeText(mContext, "NAME: "+ name , Toast.LENGTH_LONG).show();
                }
  </code></pre>
  
  <p>Every time I use this code gives an error. And token both shows empty and response shows Questions
  “An active access token must be used to query information about the current user” </p>