title: Facebook API - post/share activity from my app to users wall
body: <p>I'm creating an facebook app for kart racing. I've users registrated with Facebook, with <code>publish_actions</code> scope.</p>
  
  <p>This gives me an opportunity to post to his wall his results, until the access token expires (2 hours).</p>
  
  <p>My clients would need to post a message or share a link or share an activity everytime the user finishes the race. </p>
  
  <p>The code I use now is:</p>
  
  <pre><code>$config = array(
          'appId' =&gt; 'xxxx',
          'secret' =&gt; 'xxxxx',
          'allowSignedRequest' =&gt; false // optional but should be set to false for non-canvas apps
      );
  
      $facebook = new Facebook($config);
  
          if($user_id) {
  
          // We have a user ID, so probably a logged in user.
          // If not, we'll get an exception, which we handle below.
          try {
              $ret_obj = $facebook-&gt;api('/'.$user_id.'/feed', 'POST',
                  array(
                      'link' =&gt; 'www.example.com',
                      'message' =&gt; 'Posting with the PHP SDK!'
                  ));
          }
  </code></pre>
  
  <p>Is there other permission I need to get to be able to post somehow to users wall, or share link? How can this be achieved?</p>
  
  <p>Edit: 
  Just to be more specific, the kart racing isn't a facebook online game, it's real world kart racing, and I would like to post the racer result to his wall somehow after the end of the race.</p>