Keyword

Facebook 'like' button

  • Duane Allam
  • Duane Allam's Avatar Topic Author
  • Offline
  • New Member
More
14 years 8 months ago #87111 by Duane Allam
Facebook 'like' button was created by Duane Allam
Hi All,I've just put together a simple plugin for displaying the facebook 'like' button (developers.facebook.com/docs/reference/plugins/like) on k2 content items.Feel free to download and try it out on your site, any feedback is much appreciated.:Duanefacebooklike.zip

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #87112 by August Paschalidis
Replied by August Paschalidis on topic Facebook 'like' button
Hello.

Thanks for the plugin. I would ask if possible to get the message in the language chosen by everyone on facebook.

Please Log in or Create an account to join the conversation.

  • Duane Allam
  • Duane Allam's Avatar Topic Author
  • Offline
  • New Member
More
14 years 7 months ago #87113 by Duane Allam
Replied by Duane Allam on topic Facebook 'like' button
Glad you guys like it :) I'm not actually using it myself, and probably wont develop it any further, instead I'm now using AddThis to get all my share/like/retweet buttons in one place.

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #87114 by Marisela Vieira
Replied by Marisela Vieira on topic Facebook 'like' button
Please I dont see the icon "facebook like" in my k2 articles. How implant this pluging?.
Already enabled in Extensions / Plugins
Thanks

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #87115 by william white
Replied by william white on topic Facebook 'like' button
extensions.joomla.org/extensions/social-web/republish/12376
extensions.joomla.org/extensions/social-web/republish/12391

to get the Like button to automatically appear on each item you will probably need to use a plugin designed to add it like the two examples above that work with k2
Other examples that google finds are bits of code that you can insert manually into each item

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #87116 by troponin
Replied by troponin on topic Facebook 'like' button
this plugin sets the "like it" Button next to the FullText in Cat and Item View.
Be sure you have enabled the Plugin in Backend.

Marisela Vieira said:Please I dont see the icon "facebook like" in my k2 articles. How implant this pluging?. Already enabled in Extensions / Plugins
Thanks

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #87117 by Nick
Replied by Nick on topic Facebook 'like' button
Hey i am trying to modify this plugin a bit. I want to be able to add it to the frontpage of my site, but all i need to know is how it is being called in the item view (the way it's currently displayed)

EDIT:

apparently it does display on the homepage but i want to move it around a bit.. how do i do that? can't find the code that is calling it...

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #87118 by Lubomir Christov
Replied by Lubomir Christov on topic Facebook 'like' button
thanks,
it's working like a charm!
And I definitely DON'T like AddThis

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #87119 by kire timov
Replied by kire timov on topic Facebook 'like' button
hi,
how can i disable showing this plugin in k2 category view? (is it actually supposed to do this)?

Please Log in or Create an account to join the conversation.

More
14 years 6 months ago #87120 by kire timov
Replied by kire timov on topic Facebook 'like' button
i am sorry for the stupid question earlier (it was ofc. to disable "load plugin"-or something like that... in categoryItemView)..

However i am having problem and it's not functional at all without this fixed. When you like an item it dose not fetch the thumbnail picture, actually on facebook some other picture is shwon from the site (this sux) can someone please help me fix this? It actually needs to force fetch the thumnail picture from category view (while you click like in itemView)

Thanks in advance

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #87121 by Russell English
Replied by Russell English on topic Facebook 'like' button
This is something I need to know how to do aswell.. The plugin is great, but it appears in a category view, so when you "Like" an item in the category view, it likes all of the items in that category!

kire timov said:
hi, how can i disable showing this plugin in k2 category view? (is it actually supposed to do this)?

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #87122 by Ryan James Ayres
Replied by Ryan James Ayres on topic Facebook 'like' button
Well one thing that would help is to not have it show during category view and only details view. Also, can you add twitter next to it?

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #87123 by Pete Stevens
Replied by Pete Stevens on topic Facebook 'like' button
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

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #87124 by Pete Stevens
Replied by Pete Stevens on topic Facebook 'like' button
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

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #87125 by Pete Stevens
Replied by Pete Stevens on topic Facebook 'like' button
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-link-content-image-j15

 

It does it by generating the necessary image_src meta tag, (slightly different format than I had specified in my experiment)

<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

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #87126 by Pete Stevens
Replied by Pete Stevens on topic Facebook 'like' button
kire see my post for solution

 

Pete

kire timov said:

i am sorry for the stupid question earlier (it was ofc. to disable "load plugin"-or something like that... in categoryItemView).. However i am having problem and it's not functional at all without this fixed. When you like an item it dose not fetch the thumbnail picture, actually on facebook some other picture is shwon from the site (this sux) can someone please help me fix this? It actually needs to force fetch the thumnail picture from category view (while you click like in itemView)

Thanks in advance

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #87127 by Julio Medina
Replied by Julio Medina on topic Facebook 'like' button
Thanks for this great plugin...

 

I'm new in Joomla and K2. My question is: can you change the position of the Facebook Like Button.

I want the button at the top of the item, not at the bottom.

 

Thank you and sorry if I made a mistake, english is not my first language.

Please Log in or Create an account to join the conversation.

More
14 years 3 days ago #87128 by Lgg Guayaquil
Replied by Lgg Guayaquil on topic Facebook 'like' button
I don't know how to use it or install it, please help me!!!

Please Log in or Create an account to join the conversation.

More
14 years 2 days ago #87129 by Ryan James Ayres
Replied by Ryan James Ayres on topic Facebook 'like' button
To Pete

 

I finally got around to using your example about disabling The K2 Plugins in order for it to only show in item view but not category view. When I disabled it in item view like you mentioned, that is exactly what it did. I could see it in category view still but not item view. I want to be able to just have it in item view and Not category view.. Any suggestions?

Please Log in or Create an account to join the conversation.

More
14 years 2 days ago #87130 by Ryan James Ayres
Replied by Ryan James Ayres on topic Facebook 'like' button
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

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum