[New Gallery2 Module] Facebook Meta Block

kblake

Joined: 2005-06-26
Posts: 19
Posted: Sun, 2010-01-31 22:36

This is hardly even a module - but I couldn't find another easier way to do it through themes alone.. This one adds in the meta tags necessary for Facebook to know more about the link people are posting to your gallery / photo page (such as the correct thumbnail).

E.g.
http://www.blakepics.com/misc/facebook-linked-images.JPG.html

Quote:
<meta name="title" content="Gallery2 Module to thumbnail linked images" />
<meta name="description" content="Demo of Gallery2 module adding meta tags to Gallery2 pages, for parsing by Facebook" />
<link rel="image_src" href="http://www.blakepics.com/d/90457-4/facebook-linked-images.JPG" />

Once installed, just add the 'Facebook meta tags' image block to your theme's album or photo pages.

Releasing it to the wild for feedback, cheap bug testing, etc ;) Let me know what you think.

AttachmentSize
facebookmetablock.v1.00.zip3.46 KB
 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2010-02-01 00:59

kblake,
Thanks for your contribution. Can you please fill out a codex page as well:
http://codex.gallery2.org/Gallery2:Modules:FacebookMetaBlock

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
nmelcam

Joined: 2010-11-13
Posts: 4
Posted: Mon, 2010-11-29 21:31

I can't get this to work I have Gallery 2.3.1 and activated the module, and added it in my themes settings but the facebook like button does not appear anywhere. I even added it to all 3 sections just in case, to the sidebar, the album and the photo but still no facebook like button, anything else I have to do? Thanks in advance

Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.12 cgi
Webserver = Apache/2
Database = mysqli 5.0.83-log, lock.system=flock
Toolkits = ArchiveUpload, Getid3, Exif, jpegtran, ImageMagick, G