title: Session.StatusCallback cannot be resolved to a type - Facebook API
body: <p>I followed the login authentication tutorial on Facebook and have copied the following code into my android application</p>
  
  <pre><code>private Session.StatusCallback callback = 
      new Session.StatusCallback()
  {
      @Override
      public void call(Session session, 
              SessionState state, Exception exception) {
          onSessionStateChange(session, state, exception);
      }
  };
  </code></pre>
  
  <p>However, it is giving me the following errors:</p>
  
  <pre><code>Session.StatusCallback cannot be resolved to a type
  </code></pre>
  
  <p>Which is leading to the following errors:</p>
  
  <pre><code>callback cannot be resolved to a variable
  </code></pre>
  
  <p>There's also other places where Facebook API calls are made that are giving me errors, but it's not in all the Facebook API calls. Another place I'm getting an error is the following:</p>
  
  <pre><code>Request request = Request.newMeRequest(session, 
                      new Request.GraphUserCallback() {
                  @Override
                  public void onCompleted(GraphUser user, Response response) {
                      // If the response is successful
                      if (session == Session.getActiveSession()) {
                          if (user != null) {
                              // Set the id for the ProfilePictureView
                              // view that in turn displays the profile picture.
                              Log.d("MainActivity", "onComplete() User logged in");
                              parent.owner = MainKickback.userConnection.add(new User(user.getId()));
  
                              EventFragment e = (EventFragment) fragments[UPCOMING_EVENTS];
                              e.populateEvents();
                          }
                      }
                      if (response.getError() != null) {
                          // Handle errors, will do so later.
                      }
                  }
              });
              request.executeAsync();
  </code></pre>
  
  <p>where it does not recognize Request.GraphUserCallback, and then executeAsync(). I get the following errors:</p>
  
  <pre><code>Request.GraphUserCallback cannot be resolved to a type
  The method executeAsync() is undefined for the type DownloadManager.Request
  </code></pre>
  
  <p>Does anyone have any advice as to how to fix this?</p>
  
  <p>Thank you for your help in advance!!</p>