title: FAcebook graph API - URL supplied invalid OAuthException: (#1500)
body: <p>I am trying to post a link via the php-dsk graph API. When I typed my URL at <a href="http://developers.facebook.com/tools/debug" rel="nofollow">http://developers.facebook.com/tools/debug</a> , it was successful showing response code - 200.
  But when I am trying to post a link to the facebook wall, the following error appears :-</p>
  
  <pre><code>Fatal error: Uncaught OAuthException: (#1500) The url you supplied is invalid thrown     
  in /home/a1395850/public_html/src/base_facebook.php on line 1254
  </code></pre>
  
  <p>I have the following in my scope :- 'email,publish_stream,publish_actions,user_likes'</p>
  
  <p>The following is my code to post a link to the user's wall :-</p>
  
  <pre><code>&lt;?php
   error_reporting(E_ALL); ini_set('display_errors', 'On'); 
   require 'src/facebook.php';
   include 'app_details.php';
   $user = $facebook-&gt;getUser();
   if ($user) {
     try {
       $user_profile = $facebook-&gt;api('/me');
     } catch (FacebookApiException $e) {
       error_log($e);
       $user = null;
     }
   }
  
  
  
   $permissions = $facebook-&gt;api("/me/permissions");
   if( array_key_exists('publish_stream', $permissions['data'][0]) ) {
  // Permission is granted!
  // Do the related task
   $args = array(
  'message'   =&gt; 'Hello from app',
  'link'      =&gt; 'laafo.uni.me',
  'caption'   =&gt; 'Facebook API Tutorials!'
   );
   $post_id = $facebook-&gt;api("/me/feed", "post", $args);
  
   } else {
  // We don't have the permission
  // Alert the user or ask for the permission!
  header( "Location: " . $facebook-&gt;getLoginUrl(array("scope" =&gt; "publish_stream")) );
   }
  
  
   ?&gt;
  </code></pre>
  
  <p>Please help me...Thanks in advance.</p>