title: Can't post to facebook wall because of authentication problems?
body: <p>I can't get the following code to post to the wall of user with user id 514559322.  However, if I replace the value of $uid with the string 'me', I am able to post to my own wall.</p>
  
  <pre><code>&lt;?php
  require_once "../src/facebook.php";
  
  $app_id = "my app id";
  $app_secret = "my app secret";
  $uid = 514559322;
  
  // Init facebook api.
  $facebook = new Facebook(array(
          'appId' =&gt; $app_id,
          'secret' =&gt; $app_secret,
          'cookie' =&gt; true
  ));
  
  // Get the url to redirect for login to facebook
  // and request permission to write on the user's wall.
  $login_url = $facebook-&gt;getLoginUrl(
      array('scope' =&gt; 'publish_stream')
  );
  
  // If not authenticated, redirect to the facebook login dialog.
  // The $login_url will take care of redirecting back to us
  // after successful login.
  if (! $facebook-&gt;getUser()) {
      echo &lt;&lt;&lt; EOT
  &lt;script type="text/javascript"&gt;
  top.location.href = "$login_url";
  &lt;/script&gt;;
  EOT;
  
      exit;
  }
  
  // Do the wall post.
  $facebook-&gt;api("/$uid/feed", "post", array(
      message =&gt; "Hello win95",
      picture =&gt; "http://cdn.papyimg.com/wp-content/uploads/2011/03/Windows-95-500x312.png",
      link =&gt; "http://en.wikipedia.org/wiki/Windows_95",
      name =&gt; "Go windows 95",
      caption =&gt; "Caption - this is the best operating system in the world!"
  ));
  ?&gt;
  </code></pre>
  
  <p>How do I allow my php script to post the wall of user with uid 514559322?  </p>
  
  <p>After adding a try catch loop around the api call, here's the Exception message I got:</p>
  
  <pre><code>OAuthException: (#1) An error occured while creating the share
  </code></pre>
  
  <p>So where in my code do i supply authentication information?  Or appropriate  auth tokens?</p>