title: facebook app loading slow in android
body: <p>i took the example from </p>
  
  <p><a href="http://developers.facebook.com/docs/guides/mobile/" rel="nofollow noreferrer">http://developers.facebook.com/docs/guides/mobile/</a> now whenever </p>
  
  <p>i run the app...either it takes too long time to load the face book sign-up or it never loads...it stays in whit screen with heading
  <img src="https://i.stack.imgur.com/bsveB.png" alt="this is the way it loads the fc app"></p>
  
  <p>now what shall i do to load in a faster way... </p>
  
  <p>`public class MyGreatActivity extends Activity {</p>
  
  <pre><code>Facebook facebook = new Facebook("20875929582353");
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  
      facebook.authorize(this, new DialogListener() {
  
          @Override
          public void onComplete(Bundle values) {
              // TODO Auto-generated method stub
  
          }
  
          @Override
          public void onFacebookError(FacebookError e) {
              // TODO Auto-generated method stub
  
          }
  
          @Override
          public void onError(DialogError e) {
              // TODO Auto-generated method stub
  
          }
  
          @Override
          public void onCancel() {
              // TODO Auto-generated method stub
  
          }
  
  
      });
  }
  
  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      facebook.authorizeCallback(requestCode, resultCode, data);
  }
  </code></pre>
  
  <p>}`</p>