title: How to send app requests to friends through Facebook Android SDK
body: <p>Currently I'm developing an Android app for that I'm using the Facebook SDK. It's working fine for posting messages to the wall etc., but through this SDK I'm unable to send an app request to others.</p>
  
  <p>Can anyone help me out?</p>
  
  <p>here is my code snippet:</p>
  
  <pre><code>Bundle params = new Bundle();
  params.putString("message", getString(R.string.request_message));
  Utility.mFacebook.dialog(Hackbook.this, "apprequests", params, new AppRequestsListener());
  </code></pre>
  
  <p>and <em>AppRequestsListener</em>:</p>
  
  <pre><code>public class AppRequestsListener extends BaseDialogListener {
      @Override
      public void onComplete(Bundle values) {
          Toast toast = Toast.makeText(getApplicationContext(), "App request sent", Toast.LENGTH_SHORT);
          toast.show();
      }
  
      @Override
      public void onFacebookError(FacebookError error) {
          Toast.makeText(getApplicationContext(), "Facebook Error: " + error.getMessage(), Toast.LENGTH_SHORT).show();
      }
  
      @Override
      public void onCancel() {
          Toast toast = Toast.makeText(getApplicationContext(), "App request cancelled", Toast.LENGTH_SHORT);
          toast.show();
      }
  }
  </code></pre>