title: Facebook php-sdk link wall post is not good
body: <p>first ask for permission:</p>
  
  <pre><code>if(!$data["user_id"]) {
  
    $app_id = "175403625997298";
  
      $redirect_url = urlencode("https://www.facebook.com/szalagavatoszeged/app_175403625997298?app_data=haho"); 
      $scope = "publish_stream";
      $auth_url = "https://www.facebook.com/dialog/oauth?client_id=" . $app_id . "&amp;redirect_uri=" . $redirect_url . "&amp;scope=" . $scope;
      echo("&lt;script&gt; top.location.href='" . $auth_url . "'&lt;/script&gt;");
      $login_url=$facebook-&gt;getLoginUrl($scope);
      fb_publish();
  }
  </code></pre>
  
  <p>After checking the arguments that I gave in the link:</p>
  
  <pre><code>if($szavazott=='haho'){
      header('Location: szavazott.php');
  
  }
  </code></pre>
  
  <p>and post:</p>
  
  <pre><code>try {
      $ret_obj = $facebook-&gt;api('/me/feed', 'POST',
      array('link' =&gt; 'https://www.facebook.com/szalagavatoszeged/app_175403625997298','message' =&gt; 'Posting with the PHP SDK!',));
  
      print 'haha';
  
  } catch(FacebookApiException $e) {
  
  }   
  </code></pre>
  
  <p>But this code not posting:S What could be wrong?</p>