title: loginButton.registerCallback cannot resolve method
body: <blockquote>
    <p>Error:(36, 20) error: cannot find symbol method
    registerCallback(CallbackManager,>)</p>
  </blockquote>
  
  <p>When i called this registerCallback from my Mainactivity to <code>facebook sdk 4.0's lib</code>. Here is my class</p>
  
  <pre><code>  public class MainActivity extends Activity {
          TextView tv;
          Button loginButton;
          CallbackManager callbackManager;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          Log.e("Oncreate", "Now on On create");
          FacebookSdk.sdkInitialize(getApplicationContext());
          callbackManager = CallbackManager.Factory.create();
          tv =(TextView)findViewById(R.id.tv);
  
          loginButton = (LoginButton)findViewById(R.id.login_button);
          loginButton.registerCallback(callbackManager, new FacebookCallback&lt;LoginResult&gt;() {
              @Override
              public void onSuccess(LoginResult loginResult) {
                  // App code
              }
  
              @Override
              public void onCancel() {
                  // App code
              }
  
              @Override
              public void onError(FacebookException exception) {
                  // App code
              }
          });
  
          LoginManager.getInstance().registerCallback(callbackManager,
                  new FacebookCallback&lt;LoginResult&gt;() {
                      @Override
                      public void onSuccess(LoginResult loginResult) {
                          // App code
                      }
  
                      @Override
                      public void onCancel() {
                          // App code
                      }
  
                      @Override
                      public void onError(FacebookException exception) {
                          // App code
                      }
                  });
  
      }
  
      @Override
      protected void onActivityResult(int requestCode, int resultCode, Intent data) {
          super.onActivityResult(requestCode, resultCode, data);
          callbackManager.onActivityResult(requestCode, resultCode, data);
      }
  
      }
  }
  </code></pre>