Due to some popular demand here's a Coppermine plugin to put a selection of buttons for a few social networks on the picture page.
Now that I am finished as far as this, I notice there is already an existing plugin which seems to do similar things,
Facebook Sharer.
Now if you also want to try this one, it has quite a bunch of config options, as I wanted to hardcode only as little as possible.
Specifically in Facebook it seems to be actually quite a puzzle to predict when or when not a thumbnail will be shown. Although all elements are always provided with a thumbnail image by this plugin, I have managed to only get Facebook to display it right away when either using the old sharer.php, or the Like button but then needing to enter something into the balloon that turns up when liking something. As all of this seems to be functionality inside Facebook, I would not be surprised if it may change every once in a while. If anyone knows a way to provision Facebook into always displayng the thumbnail -- please let me know and/or contribute.
This plugin works together with
fb_oauth but can also be used independently of it.
Install via the plugin manager. Check the configuration options; I hope the inline explanations with them are clear.
Important: On a picture page double-check the HTML code that arrives in the browser to make sure that it contains OpenGraph metatags:
<!-- BEGIN OpenGraph metatags -->
<meta property="og:site_name" content="..." />
[...]
<meta property="og:url" content="..." />
<!-- END OpenGraph metatags -->
These tags missing is a known issue with the XFeed plugin and possibly others that also use the page_meta hook. Please fiddle with the plugins order in the plugin manager until these tags really appear in the picture page header. For Facebook you might also find the
Facebook Linter useful to check what those information mean for Facebook.
Many thanks for lots of useful ideas and testing go to Thomas Behlke of the
Fotofreunde Rathenow who, just as myself, is amazed with all the opportunities that Coppermine and its plugins can offer.
If you like this and can implement even more additions or social networks or improve the (default) layout, please feel free to contribute and extend the code and share it back in this thread.
Now I hope that this may be really some use for some people out there :-)
Best Regards,
Roland