title: facebook publish feed stuck on black screen after get publish permission
body: <p>ok, so i want to make a new post to my user's wall. i've followed the codes provided by developers.facebook on this link <a href="https://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/" rel="nofollow">https://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/</a></p>
  
  <p>at the publish story method i add a Log to see if the program has pass the code lines:</p>
  
  <pre><code>private void publishStory() {
  Session session = Session.getActiveSession();
  
  if (session != null){
  
      Log.d("INFO","session is not NULL");
  
      // Check for publish permissions    
      List&lt;String&gt; permissions = session.getPermissions();
      if (!isSubsetOf(PERMISSIONS, permissions)) {
  
           Log.d("INFO","setting permission");
  
          pendingPublishReauthorization = true;
          Session.NewPermissionsRequest newPermissionsRequest = new Session
                  .NewPermissionsRequest(this, PERMISSIONS);
      session.requestNewPublishPermissions(newPermissionsRequest);
          return;
      }
  
      Bundle postParams = new Bundle();
      postParams.putString("name", "Facebook SDK for Android");
      postParams.putString("caption", "Build great social apps and get more installs.");
      postParams.putString("description", "The Facebook SDK for Android makes it easier and faster to develop Facebook integrated Android apps.");
      postParams.putString("link", "https://developers.facebook.com/android");
      postParams.putString("picture", "https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png");
  
      Log.d("INFO","finish construct message");
  
      Request.Callback callback= new Request.Callback() {
          public void onCompleted(Response response) {
  
              Log.d("INFO","on request complete!");
  
              JSONObject graphResponse = response
                                         .getGraphObject()
                                         .getInnerJSONObject();
              String postId = null;
              try {
                  postId = graphResponse.getString("id");
              } catch (JSONException e) {
                  Log.i(TAG,
                      "JSON error "+ e.getMessage());
              }
              FacebookRequestError error = response.getError();
              if (error != null) {
                  Toast.makeText(getActivity()
                       .getApplicationContext(),
                       error.getErrorMessage(),
                       Toast.LENGTH_SHORT).show();
                  } else {
                      Toast.makeText(getActivity()
                           .getApplicationContext(), 
                           postId,
                           Toast.LENGTH_LONG).show();
              }
          }
      };
  
      Request request = new Request(session, "me/feed", postParams, 
                            HttpMethod.POST, callback);
  
      RequestAsyncTask task = new RequestAsyncTask(request);
      task.execute();
  }
  </code></pre>
  
  <p>}</p>
  
  <p>the problem is that when i execute the method above the program runs well until it pops up a authenticate publish permission window and the i allowed it, the screen continues again to a black screen with indeterminate progressbar on it and then the window just dismiss by itself.</p>
  
  <p>in fact, from the logcat i can conclude it doesn't make it through "on request complete" line.</p>
  
  <p>why this happening? any clue?</p>
  
  <p>Thanks!</p>