title: Android Facebook SDK Share dialog: never return Completion Gesture
body: <p>I am using facebook android sdk v3.5 in my app for messsage sharing. For statistics I need to track if the message was successfully posted or not. However I always get null by getting <code>FacebookDialog.getNativeDialogCompletionGesture</code> in <code>onActivityResult()</code></p>
  
  <p>The code I use is very standard.</p>
  
  <p>Code to call facebook share dialog:</p>
  
  <pre><code>    private void sendToFacebook()
      {
          if (!FacebookDialog.canPresentShareDialog(getActivity().getApplicationContext(),        FacebookDialog.ShareDialogFeature.SHARE_DIALOG))
          {
           return;
          }
  
          FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(getActivity())
                  .setName(getString(R.string.refer_friend_facebook_name))
                  .setDescription(getString(R.string.refer_friend_facebook_description))
                  .setCaption(getString(R.string.facebook_app_name))
                  .setLink(getString(R.string.web_endpoint))
                  .setPicture(getString(R.string.facebook_picture_90))
                  .build();
  
          activity.getFacebookUiHelper().trackPendingDialogCall(shareDialog.present());
  
      }
  </code></pre>
  
  <p>Code I use to process call result: </p>
  
  <pre><code>    @Override
      public void onActivityResult(int requestCode, int resultCode, Intent data)
      {
              facebookUiHelper.onActivityResult(requestCode, resultCode, data, new FacebookDialog.Callback()
              {
                  @Override
                  public void onError(FacebookDialog.PendingCall pendingCall, Exception error, Bundle data)
                  {
                   // track on error                                                   
                  }
  
                  @Override
                  public void onComplete(FacebookDialog.PendingCall pendingCall, Bundle data)
                  {
                      if (FacebookDialog.getNativeDialogDidComplete(data))
                      {
                          if (FacebookDialog.getNativeDialogCompletionGesture(data) == null 
                                || FacebookDialog.COMPLETION_GESTURE_CANCEL.equals(FacebookDialog.getNativeDialogCompletionGesture(data)))
                          {
                              // track cancel                                                   
                          }
                          else
                          {
                              // track post
                          }
                      }
                      else
                      {
                          // track cancel              
                      }
                  }
              });
  }
  </code></pre>
  
  <p>In facebook sdk documentation it is stated that:</p>
  
  <blockquote>
    <p>FacebookDialog.getNativeDialogCompletionGesture - Only available if the user logged into your app using Facebook and did complete is true. Value is either "post" or "cancel".</p>
  </blockquote>
  
  <p>But I can not understand what exactly do they mean by this phrase.</p>