title: Custom Facebook Share Integration
body: <p>I'm working on an eCommerce website, in which the Shopping Cart page needs to have the Facebook Share button for all product items, with the following requirements:-</p>
  <p>Let's assume that there are 4 Product Items in the shopping cart page - &quot;p1&quot;, &quot;p2&quot;, &quot;p3&quot; &amp; &quot;p4&quot;.</p>
  <ol>
  <li><p>When the user clicks the &quot;Share&quot; button for &quot;p4&quot; item, he will be asked to login, if he is not logged into FB. This has been accomplished using the &quot;<code>fb:login-button</code>&quot; FBML tag.</p>
  </li>
  <li><p>After login, the user will be able to provide a Custom Message in the pop-up in my website. That pop-up will also contain the name of the Product for the &quot;p4&quot; item, along with an image.</p>
  </li>
  <li><p>When the user clicks the &quot;Share&quot; / &quot;Submit&quot; button, the message with the Product name &amp; image for the &quot;p4&quot; item will get posted / published in the user's Facebook wall. Both the points #2 &amp; #3 have been done using the &quot;<code>FB.init</code>&quot; &amp; &quot;FB.ui&quot; core methods of JavaScript SDK.</p>
  </li>
  <li><p>Now in my website, the Shopping Cart page will show me that for the &quot;p4&quot; item, the Facebook Share is completed &amp; so there will be no more &quot;Facebook Share&quot; button, even when the page is refreshed again or when more such products are added into the Shopping Cart. Here I'm not able to perform the disabling of the &quot;Share&quot; button.</p>
  </li>
  <li><p>The user will be able to click the &quot;Share&quot; button for the other products &quot;p1&quot;, &quot;p2&quot; &amp; &quot;p3&quot;. but the pop-up for the Share message will show the Product name &amp; image for the corresponding products &amp; not for the last item &quot;p4&quot;. However, here the pop-up always provides the information for only the last item &quot;p4&quot;. Instead what I actually want is the multiple instances of the Facebook Share functionality.</p>
  </li>
  </ol>
  <p>I'm particularly in need of assistance for points #4 &amp; #5.</p>