title: Facebook offline wall posting
body: <p>I do have website for Restaraunt which has facebook registration module for the users to register. There are two kinds of user for my website, one is normal registered user and second user is Facebook Registered user. This seems to work correctly upto this moment.In the website, all the users are allowed to post their own review about hotels,favorites etc.</p>
  
  <p>I need a way for automatic sharing of reviews, likes and favourites to the users Facebook wall in the Facebook website by using there Fb details(Fbid) that i have stored in my database. Each the reviews need to be posted to the FB wall using his/her own fb-id without fb login. Is there is any php-Facebook plugin /JSSDK to meet this requirement?</p>
  
  <p>I have used the following lines of library codes, but nothing happend yet now.</p>
  
  <p>
  
  <pre><code>require_once 'facebook.php';
  $api_key = 'yyyyyyyyyyyyyyyyyyy';
  $secret = 'xxxxxxxxxxxxxxxxxxxx';
  $name = 'Publish feed code example';
  $id='100001948358224';
  $name_href = 'http://forum.developers.facebook.com/viewtopic.php?id=44721';
  $caption = 'A simple code caption text';
  $description = 'The new Facebook.streamPublish code to pop up a publish feed form';
  $img_1 = 'http://www.applications.junkieyard.com/fbfgsfy/images/smileys/smiley-09-05.png';
  $img_1_href = 'http://apps.facebook.com/fbfgsfy/profile.php';
  $action_links_text = 'Facebook?';
  $action_links_href = 'http://www.facebook.com/';
  $attachment = array('name' =&gt; $name, 'href' =&gt; $name_href, 'caption' =&gt; $caption, 'description' =&gt; $description, 'media' =&gt; array(array('type' =&gt; 'image', 'src' =&gt; $img_1, 'href' =&gt; $img_1_href)));
  $action_links = array(array('text' =&gt; $action_links_text, 'href' =&gt; $action_links_href));
  if ($id) {
  
      $target_id = $id;
      ?&gt;
      &lt;script&gt;
          var message = "";
          var attachment = &lt;?=json_encode($attachment)?&gt;;
          var action_links = &lt;?=json_encode($action_links)?&gt;;
          var target_id = &lt;?=$target_id?&gt;;
          alert(Facebook.streamPublish(message, attachment, action_links, target_id));
      &lt;/script&gt;
      &lt;?php
  }
  </code></pre>
  
  <p>?></p>