title: Android How to set timeout when authorize Facebook?
body: <p>I have some code to connect facebook:</p>
  
  <pre><code>facebook.authorize(((Activity) ctx).getParent(), new String[] {},
                  requestCode, new DialogListener() {}
  </code></pre>
  
  <p>Usually it works fine. But sometimes I connect to some network don't allow connection to facebook. Then the authorize method will throw </p>
  
  <pre><code> com.facebook.android.DialogError: The connection to the server was unsuccessful
  </code></pre>
  
  <p>On my phone, it took about 20 seconds to throw that exception. But on some other device, it took very long time (maybe because the different setting on different device, I'm not sure). Is there a way to set timeout when the network don't allow connection to facebook.</p>