title: Application not shown the dialog for permission of publish_action from facebook?
body: <p>I am using this code...</p>
  
  <p>I used the logInWithPublishPermissions for login... </p>
  
  <pre><code>    FacebookSdk.sdkInitialize(getApplicationContext());
  
      callbackManager = CallbackManager.Factory.create();
  
      shareDialog = new ShareDialog(this);
      java.util.List&lt;String&gt; permissionNeeds = Arrays.asList("publish_actions");
  
      //this loginManager helps you eliminate adding a LoginButton to your UI
  //  LoginManager = LoginManager.getInstance();
  
      LoginManager.getInstance().logInWithPublishPermissions(
              FacebookShareActivity.this,
              Arrays.asList("publish_actions"));
  
      LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback&lt;LoginResult&gt;() {
          @Override
          public void onSuccess(LoginResult loginResult) {
              sharePhotoToFacebook();
          }
  
          @Override
          public void onCancel() {
              System.out.println("onCancel");
          }
  
          @Override
          public void onError(FacebookException exception) {
              System.out.println("onError");
          }
      });
  </code></pre>
  
  <p><strong>sharePhotoToFacebook</strong></p>
  
  <pre><code>private void sharePhotoToFacebook(){
  
  
      SharePhoto photo = new SharePhoto.Builder()
              .setBitmap(bitmap)
              .setCaption("Caption")
              .build();
  
      SharePhotoContent content = new SharePhotoContent.Builder()
              .addPhoto(photo)
  
              .build();
      ShareApi.share(content,shareCallback);
  
  //  Toast.makeText(getApplicationContext(),"Snapshot shared On Facebook",Toast.LENGTH_SHORT).show();
  
  
              //shareDialog.registerCallback(callbackManager, FacebookCallback&lt;Sharer.Result&gt;(), REQUEST_CODE);
  
  
  
  }
  </code></pre>
  
  <p><strong>But I want the app ask for permission it's not show the dialog of ask permission of publish.</strong></p>