title: prettyPhoto lightbox social tools: all images have the same number of Facebook likes
body: <p><strong>Background:</strong> I have a site using a prettyPhoto lightbox to display photos. I've enabled social tools to display the 'tweet' and Facebook 'like' buttons on the lightbox, in hope to enable the ability to 'like' <em>only</em> the current photo being displayed to the one viewing it.</p>
  
  <p><strong>Problem:</strong> The Facebook 'like' button actually results in all photos in the same gallery being liked: all photos display the same number of likes in the lightbox; and on Facebook, the user's 'like' in their news feed or recent activity links to the gallery page rather than the actual photo that was liked.</p>
  
  <p><strong>What I've tried:</strong> I have tried editing the jquery.prettyPhoto.js file to add in the placeholder found in this answer: <a href="https://stackoverflow.com/a/11796964/2205165">https://stackoverflow.com/a/11796964/2205165</a></p>
  
  <p>I have also tried replacing 'location_href' with '{path}' to see if that used the photo's full path/URL, but it did not, or didn't appear to do so.</p>
  
  <p>I've tried the above with 'deeplinking' enabled and disabled, with no avail.</p>
  
  <p><strong>Help:</strong> If anyone has a solution to enable Facebook liking and Twitter tweeting of individual photos from the prettyPhoto lightbox, I'm all ears. Even if it's to the degree of photos displaying the correct number of likes, rather than all having the same number: I'm not too fussed at this stage about linking back to the individual photo: linking back to the main gallery page will suffice for that.</p>
  
  <p>Thank you!</p>