title: How to resolve "API Error code 4202" error while Facebook share using mobile web
body: <p>Iam developing a web application using mvc. In my application iam using facebook graph api to share something to facebook. I had done it with javascript.
  My code is</p>
  
  <pre><code>    var fbResponse;
      var code = $("#c_Test").val();
      if (code) {
          url = url + "/" + code;
      }
      FB.init({
          appId: appId,
          xfbml: true,
          version: 'v2.0'
      });
      FB.login(function (response) {
          if (response.authResponse) {
              console.log(response);
              var fbResponse = response.authResponse;
              FB.ui(
                {
                    app_id: appId,
                    method: 'send',
                    link: url
                },
                function (response) {
                    if (response) {
                    } else {
                    }
                }
              );
              FB.api('/me', function (response) {
                  $("#c_Name").val(response.name);
              });
          } else {
          }
  </code></pre>
  
  <p>Its works perfects in desktop web browsers. While using my application in iphone iam getting an error like </p>
  
  <blockquote>
    <p>API Error Code: 4202
    API Error Description: This dialog can not be displayed on this device
    Error Message: This method is not supported for this display type.</p>
  </blockquote>
  
  <p>How can we solve this api error ? please help me</p>