scaron / prettyphoto

prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrames. It’s a full blown media lightbox. The setup is easy and quick, plus the script is compatible in every major browser.
http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone/
553 stars 281 forks source link

Facebook social tool doesn't seem to work. #145

Open slvrdlphn opened 9 years ago

slvrdlphn commented 9 years ago

screen shot 2014-12-02 at 9 53 46 am I applied jquery,prettyphoto.min.js to my site and Facebook doesn't seem to want to integrate to the expanded image. When I replaced the js with jquery.prettyphoto.js the word "error" appears in its place. I tested it by typing the url in the address bar and got the same result.

screen shot 2014-12-02 at 9 56 20 am

This is the specific line of code in the js that doesn't seem to work properly at the moment: screen shot 2014-12-02 at 10 01 00 am

Twitter works fine. It is FB that is giving me a headache. I would truly appreciate your help as this is for a client. For more clarity you can visit my output at http://pennyatan.com/aftersmanila. It is loosely based on the dish theme from themeforest which I purchased. thanks!

slvrdlphn commented 9 years ago

Never mind, I was able to fix it on my own by inspecting the code of http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/#prettyPhoto. :)

screen shot 2014-12-02 at 11 35 15 am I included a comment at the bottom as a guide for future users. :)

My problem now is how to remove the "{" that appears after the like button.