This plugin to generate the graphic doesn't seem to show up on K2 items for me. I have looked at the view source on K2 content and cannot see any of the script loading. On regular articles I can.
Pete Stevens said:
further update - solution to chosen facebook image
found what seems like a nice simple plugin that picks the first image from article/item (or category if you have not disabled like at category level - see my earlier reply) and passes it through to facebook.So you just need to enable this plugin after installing and then make the image you want in facebook to be your first image in your article/item.
www.perfect-web.pl/download/joomla/plugins/file/7-facebook-l...
It does it by generating the necessary image_src meta tag, (slightly different format than I had specified in my experiment)
span class="start-tag">link href="http://www.url-imagepath/imagename.jpg" rel="image_src" />
but I guess it's the same thing
hope you guys can now get your k2 facebook like plugin to work how you want now, I'm happy with mine ;)
Pete
Pete Stevens said:
update:
I did an experiment. I've found that adding an image src tag into the template html tells facebook which image to use:
e.g.in the head section I added a tag of this format:
<link rel="image_src" href="http://www.url-imagepath/imagename.jpg"/>
facebook then used this specified image in the like link. Great.so then tech people, how can we dynamically generate this code so that the html for each item page includes a image-src tag for the image associated with the item?
n.b can add description and keyword metatags for each item using metadata information parameters but there is no option to add image meta as far as i can tell)
Pete
Pete Stevens said:
Hi Ryan,
to disable it from category view (so only shows on items):
go to each category where you want it disabled, or if you have set your categories to 'inherit parameter options from (a specified) category' then you can just disable it there so that all categories inherit the setting.
from the parameters select 'item view options in category listings' - scroll down to Advanced and change 'Enable k2 plugins' from yes to No
I don't think this plugin is for twitter to but you can use it in conjunction with AddThis (you can search the forum for AddThis info).
Unfortunatly I haven't yet cracked the problem that Kire is experiencing. I too am seeing an image (from the same page I think) other than the one I have associated with the item on the liked link in facebook.
Any ideas?
Pete