title: How to Undeprecate Facebook Code
body: <p>Could someone please help me undeprecate this bit of code?
  This is the example give from Facebook (on how to connect to a FB account - <a href="https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/">https://developers.facebook.com/docs/android/getting-started/facebook-sdk-for-android/</a> ), however the marked line:</p>
  
  <pre><code>          Request.executeMeRequestAsync(session, new Request.GraphUserCallback() {
  </code></pre>
  
  <p>is deprecated. I tried to replace it with:</p>
  
  <pre><code>    Request.newMeRequest( session, callback, executeAsync() );  
  </code></pre>
  
  <p>However, the code is nested so confusingly that it messes it all up. I would appreciate any help you could give as I've been at this all day. </p>
  
  <pre><code>// start Facebook Login
  Session.openActiveSession(this, true, new Session.StatusCallback() {
  
    // callback when session changes state
    @Override
    public void call(Session session, SessionState state, Exception exception) {
      if (session.isOpened()) {
  
        // make request to the /me API
        Request.executeMeRequestAsync(session, new Request.GraphUserCallback() { // *DEPRECATED
  
          // callback after Graph API response with user object
          @Override
          public void onCompleted(GraphUser user, Response response) {
            if (user != null) {
              TextView welcome = (TextView) findViewById(R.id.welcome);
              welcome.setText("Hello " + user.getName() + "!");
            }
          }
        });
      }
    }
  });
  </code></pre>
  
  <p>}</p>
  
  <p>Regards</p>