title: onActivityResult requestcode Facebook SDK
body: <p>I'm building an <code>Android</code> app which uses the <code>Facebook SDK</code>so people can share URL's. I'm using onActivityResult for multiple things in my activity, so I'm using a switch on <code>requestCode</code> so that I know what to do with every activityresult. How do I get the proper requestCode when for example I cancel sharing a facebook post? This is my code at the moment: </p>
  
  <pre><code>import com.facebook.CallbackManager;
  
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      switch (requestCode) {
          case 1: 
          ... doing some not-facebook-related stuff here
          case 2:
          ... doing some other not-facebook-related stuff here
  
  
  //      case ??? : 
  //      callbackManager.onActivityResult(requestCode, resultCode, data);
  </code></pre>
  
  <p>So what is the right requestCode and how do I get this? </p>