title: Facebook Like button for every item?
body: <p>I have Facebook iframe app where I am pulling content with JSON and representing it in a list with search criteria. </p>
  
  <p>On item click new content shows on the same page (using ajax), and that page shows more info about item.  I want to add a LIKE button for every clicked item.  </p>
  
  <p>But it must be a different URL so I can publish it on my FB wall.  So when I check link from Like button on wall, it will redirect me on that special item.</p>
  
  <p>Here are few issues:</p>
  
  <p>1) How to define Like button for every item?</p>
  
  <pre><code>&lt;div class="fb-like" data-href="LINK FOR LIKE BUTTON" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true" data-colorscheme="dark"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Here is LIKE button, I need to specify different data-href for every item.</p>
  
  <p>2) I need to send some parameters to url.  Let's say when clicking on item, I should send item id to URL.  Right now I can send item id to my URL but it is doing just in my iframe -- not in facebook URL.  How can I do this?</p>
  
  <p>I think second problem would give an answer for my first problem.</p>
  
  <p>Edit: I am doing this using jQuery.</p>
  
  <p>edit2:
  so, i am using jquery for my site, pulling content with JSON and representing it with html and jquery, i have, it is all the same page, but on click i hide some contents and show another, so my main content is a list of items, click on item  i hide main content, and i show item info content </p>
  
  <p>so, it is all one page, so it has the same URL (main content, item content,... all the same URL)</p>
  
  <p>so for adding LIKE buttons for every item, i need to make a difference between those items, so i done this</p>
  
  <pre><code>'window.location.href=window.location.href + "#id=" + propertyid;' 
  </code></pre>
  
  <p>so right now, every item has its own URL, which i done manually, so right now every item has own URL which i could use for LIKE button</p>
  
  <p>but, when i alert this new window.location.href is seems all right, i get this new location with #id=12345 included, but when i try to send that location to LIKE button data-href it is always just the main location, without this new part includind item id #id=12345 </p>