WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to show Facebook comments and share buttons in the lightbox modal dialog (image overlay) that pops-up when I click on an image in gallery.

A lot like what they have done on this website for instance (if you click on one of the thumbs nails you will see what i mean.)

How do I do it?

share|improve this question
The picutres that they are commenting on are funn pictures that i have found and people have uploaded such as on funnyjunk where people leave comments and like the image it works very well and i have the same sort of thing on one of my other sites and it worked amazingly well in promoting the website and i got an insane amount of viewers because people shared and liked the content on my other site. – Lucas May 8 '12 at 11:00
can anyone help at all? – Lucas May 8 '12 at 22:40

You can show Facebook and Pinterest sharing tools on the Nextgen lightbox with this tool:


You want a facebook comment box. Unfortunately, this doesn't do that. This plugin puts Facebook and Pinterest sharing buttons at the bottom of the image browser.

It may help you if you just want to get people stared sharing your NextGen gallery images...

Disclosure: This is my own plugin, my first one actually, and any feedback is much appreciated.

share|improve this answer

THIS IS A MODIFICATION OF COLORBOX/LIGHTBOX PLUGIN .Colorbox/LIGHTBOX with facebook,twitter,google plus sharing and facebook comments integration.

This also works with Nextgen or another gallery.
I just searched over internet for this but unfortunately I came with empty handed.

Here is my solution in a wordpress site

Here is the demo http://maruf.sahajjo.com/wp_mr_workshop/photo-gallery/

If you think , this suits your need, then download the code. https://www.dropbox.com/s/fietxxohy4lxgh4/lightboxsocialshare.zip

You may be have a look @ line 233 of shutterreloade.js This line simply tells you to load the socialsharingzone.php in the ifame after the image.There I just send url of the image to share using FB api,twiiter api,gplus api.

var v = $("#lightbox-image")[0].src;
$('#shComments').attr('src', 'socialsharingzone.php?w='+(intWidth)+ "&url="+ v);

ALSO look at line 30-34 of shuterreload.js


I think rest things are pretty easy.

Try to use with a real{SERVER} url of the picture .Otherwise, Facebook like and comments will not work[SEE THE FACEBOOK RULES] If you find any difficulties, let me know. I am happy to answer you.

share|improve this answer
Please clean this answer up by removing UNNECESSARY CAPITALIZATION, (use editor tools to indicate emphasis, strong, etc.). Also please remove unnecessary information such as how much you enjoy the site, your life story, etc. This extra reading doesn't help users find information. Thanks. – GhostToast Aug 27 '13 at 16:04
I spent too much time on writing this code.I just share my opinion.I just share this plugin with everyone, so everyone can use it at free of cost. – Rocker Maruf Aug 28 '13 at 6:27
I spent too much time reading this answer :/ – Michal Mau Aug 29 '13 at 9:46
@michal-mau, Can you please tell if this plugin meets your need?If not ,let me know.I am happy to answer you.I am new here at stackexchange – Rocker Maruf Aug 30 '13 at 14:31
This is looking much better. Thanks @RockerMaruf for your edits! – GhostToast Aug 30 '13 at 15:17

Is that what you're looking for ?


Flexo is a addon to the Nextgen gallery plugin, adding Facebook comments and likes to each photo.

share|improve this answer

You can also use http://www.socialgalleryplugin.com - that adds social commenting (facebook and disqus) and sharing (twitter, facebook likes and pinterest)

...it also works with NextGen

share|improve this answer
You must disclose your affiliation. – toscho Sep 21 '12 at 22:21
Sorry...Creator.. – Woody Hayday Sep 22 '12 at 12:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.