title: facebook like button
body: <p>I have implemented a image gallery where in each image is differentiated by its record id . the like button works properly for rest of images only for two images its not working as intended , this is the post content sent by the image that is working properly </p>
  
  <pre><code>connect_text    0
  edge_type   like
  fb_dtsg AQC7N-EB
  href    http://www.mydomain.com/images/p.php?id=2422
  iframe_referer  http://www.mydomain.com/index.php
  is_personalized false
  layout  button_count
  lsd 
  node_type   link
  now_connected   true
  page_id 
  post_form_id    7500ee8867c2d00acc75d7b6dfe2c733
  post_form_id_source AsyncRequest
  ref 
  </code></pre>
  
  <p>and the facebook response for this is :</p>
  
  <pre><code>for (;;);{"__ar":1,"payload":{"requires_login":false,"error_info":null,"show_error":false,"node_type":"ExternalLink","node_id":"10150246004339081","edge_type":"ExternalLinkLike","connect_text":0,"success":true,"already_connected":true,"user_profile":{"name":"Mamamia","profile_url":"http:\/\/www.facebook.com\/profile.php?id=100002607508082","pic_square":"http:\/\/profile.ak.fbcdn.net\/static-ak\/rsrc.php\/v1\/yo\/r\/UlIqmHJn-SK.gif"},"story_fbid":107571802673069,"is_admin":false,"admin_url":""},"invalidate_cache":[0]}
  </code></pre>
  
  <p>while for the faulty image post data is </p>
  
  <pre><code>connect_text    0
  edge_type   like
  fb_dtsg AQC7N-EB
  href    http://www.mydomain.com/images/p.php?id=2420
  iframe_referer  http://www.mydomain.com/index.php
  is_personalized false
  layout  button_count
  lsd 
  node_type   link
  now_connected   true
  page_id 
  post_form_id    7500ee8867c2d00acc75d7b6dfe2c733
  post_form_id_source AsyncRequest
  ref 
  </code></pre>
  
  <p>and its response is</p>
  
  <pre><code>for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":false,"error_info":null}}
  </code></pre>
  
  <p>can any body tell me why like buttons are working on some images are not working on others t ? the images content is brought from database and is linked in the page by looping the array in foreach condition so hyperlinks are same except for the id of image,the hyperlink is </p>
  
  <pre><code>http://www.facebook.com/plugins/like.php?href=http://www.mydomain.com/images/p.php?id=&lt;?php echo $array[id]; ?&gt;
  </code></pre>
  
  <p>thanks  in advance</p>