title: Getting dates with android facebook sdk v4.0
body: <p>I have successfully installed the android sdk v4.0 in my studio.
  I get to login correctly using LoginButton.</p>
  
  <p>So far everything ok.</p>
  
  <p>I want to have a string for each user data collecting interests me, for example:</p>
  
  <p>String name = USER_NAME
  String = USER_MAIL mail.</p>
  
  <p>With the 3.0 sdk had it properly.</p>
  
  <p>With the new SDK can not I do this, I followed the instructions in this thread:</p>
  
  <p><a href="https://stackoverflow.com/questions/29295987/android-facebook-4-0-sdk-how-to-get-email-date-of-birth-and-gender-of-user">Android Facebook 4.0 SDK How to get Email, Date of Birth and gender of User</a></p>
  
  <p>I read in the documentation and in various threads about <strong>"Using the Graph API"</strong> but I can not get the data I'm looking for and assign them to each string.</p>
  
  <p>this is my code (just as it is now):</p>
  
  <pre><code>LoginButton loginButton;
  private CallbackManager mCallbackManager;
  //...
  
  loginButton = (LoginButton) findViewById(R.id.login_button);
  loginButton.setReadPermissions(Arrays.asList("public_profile, email, user_birthday, user_friends"));
          mCallbackManager = CallbackManager.Factory.create();
  
  //...
  
          loginButton.registerCallback(mCallbackManager, new FacebookCallback&lt;LoginResult&gt;() {
              @Override
              public void onSuccess(LoginResult loginResult) {
                  // App code
                  Toast.makeText(Ready.this, "Connected!", Toast.LENGTH_SHORT).show();
  
                  GraphRequest request = GraphRequest.newMeRequest(
                          loginResult.getAccessToken(),
                          new GraphRequest.GraphJSONObjectCallback() {
                              @Override
                              public void onCompleted(
                                      JSONObject object,
                                      GraphResponse response) {
                                  // Application code
                                  Log.v("LoginActivity", response.toString());
                              }
                          });
                  Bundle parameters = new Bundle();
                  parameters.putString("fields", "id,name,email,gender, birthday");
                  request.setParameters(parameters);
                  request.executeAsync();
  
              }
              @Override
              public void onCancel() {
                  // App code
                  Log.v("LoginActivity", "cancel");
              }
  
              @Override
              public void onError(FacebookException exception) {
                  // App code
                  Log.v("LoginActivity", exception.getCause().toString());
              }
          });
  </code></pre>
  
  <p>As I said before, I connect with facebook perfectly, but do not know how to assign, for example, email to a string and name to another string.</p>
  
  <p>Thank you very much in advance.</p>