title: 'load-error: unknown' when trying to delete apprequest in Javascript SDK
body: <p>When I try to delete an app request using the Javascript SDK, it returns an error object to FireBug saying: "load-error: unknown."</p>
  
  <p>This is a test app using both PHP and JS SDKs.</p>
  
  <pre><code>&lt;?php
  
  // This loads the PHP SDK and pulls a user's apprequests
  require 'fb-sdk/facebook.php';
  $facebook = new Facebook(array(
    'appId'  =&gt; 'APP_ID',
    'secret' =&gt; 'APP_SECRET',
  ));
  $user = $facebook-&gt;getUser();
  if ($user) {
    try {
      $user_profile = $facebook-&gt;api('/me');
      $user_requests = $facebook-&gt;api('/me/apprequests');
      $apprequests = $user_requests['data'];
    } catch (FacebookApiException $e) {
      echo '&lt;pre&gt;'.htmlspecialchars(print_r($e, true)).'&lt;/pre&gt;';
      $user = null;
    }
  }
  ?&gt;
  
  // This spits out a table of requests with links to delete them.
  // The table doesn't reload when you delete a request so you have to refresh.
  &lt;table&gt;
  &lt;?php foreach ($apprequests as $apprequest) { ?&gt;
    &lt;tr&gt;
    &lt;td&gt;&lt;a href="" onClick="deleteRequest('&lt;?php echo $apprequest['id']; ?&gt;')"&gt;Delete&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;?php } ?&gt;
  &lt;/table&gt;
  
  // This loads the JS SDK and makes a function to delete requests.
  &lt;script&gt;
  function deleteRequest(requestId) {
    FB.api('/' . requestId, 'delete', function (response) {
      console.log(response);
      // Will have a function to reload the table...
    });
  }
  window.fbAsyncInit = function() {
    FB.init({
      appId: '&lt;?php echo $facebook-&gt;getAppID() ?&gt;',
      cookie: true,
      xfbml: true,
      oauth: true
    });
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
  &lt;/script&gt;
  </code></pre>
  
  <p>I know the deleteRequest works because I can delete a request manually using this webform:</p>
  
  <pre><code>&lt;input type="text" name="manReqId"&gt;&lt;/text&gt;
  &lt;input type="button"
    onClick="manDelRequest(); return false;"
    value="Delete request"
  /&gt;
  &lt;script&gt;
  function manDelRequest () {
    deleteRequest(document.getElementsByName("manReqId")[0].value);
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>This method returns "true" to FireBug.</p>
  
  <p>I'm assuming there's something wrong with the way I write the onClick value. Can someone help me?</p>