title: How to send message to feed dialog using facebook sdk in android
body: <p>i am creating an app for share something to facebook. here when i click on a button the feed dialog box will come for sharing, there is a text box for adding message, my need is that i need to send a data to the text box from my code. how can i send it ??</p>
  
  <p>and this is my code to show the feed dialog box.</p>
  
  <pre><code>private void showFeedDialog() {
          Bundle postParams = new Bundle();
          postParams.putString("description","message from me ");
          postParams.putString("link", "https://www.google.com");
          WebDialog feedDialog = new WebDialog.FeedDialogBuilder(this, Session.getActiveSession(),postParams)
          .setOnCompleteListener(new OnCompleteListener() {
              @Override
              public void onComplete(Bundle values, FacebookException error) {
                  if(error==null)
                  {
                      final String postId=values.getString("post_id");
                      if(postId!=null)
                          Toast.makeText(getApplicationContext(), "Posted Successfully", Toast.LENGTH_SHORT).show();
                      else
                          Toast.makeText(getApplicationContext(), "Post canceled", Toast.LENGTH_SHORT).show();
                  }
                  else
                      if(error instanceof FacebookOperationCanceledException)
                          Toast.makeText(getApplicationContext(), "Publish canceled",Toast.LENGTH_SHORT).show();
                      else
                          Toast.makeText(getApplicationContext(), "connection error", Toast.LENGTH_SHORT).show();
              }
          }).build();
          feedDialog.show();
  
      }
  </code></pre>