Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sarfarajali Kadiwala
Add Facebook, Twitter and Google+ Like button to Blog
February 27, 2012 4:47 AM
Answer

Sarfarajali Kadiwala

Rank: New Member

Posts: 12

Join Date: September 17, 2010

Recent Posts

Hi,
I want to add Facebook, Twitter and Google+ Like button in my blog portlet.
i have downloaded facebook Hook its working and i tried for twiitter going throug twitter's official like button code but its not working good
i found that in facebook hook some tag is used like

<div class="facebook-like">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="<%= viewEntryURL %>" show_faces="true" width="450"></fb:like>
</div>


here <fb:like> </fb:like> is used so my questins are
1. Is this tag is available in liferay portal TagLib
2. If not then how it works.
3. Is there similar tags for twiiter and google+
so i can easily add like buttons like facebook.

can any one explain how to add like buttons
thanks
James Falkner
RE: Add Facebook, Twitter and Google+ Like button to Blog
February 27, 2012 6:27 AM
Answer

James Falkner

Community Moderator

Rank: Liferay Legend

Posts: 1406

Join Date: September 17, 2010

Recent Posts

Sarfarajali Kadiwala:
Hi,
I want to add Facebook, Twitter and Google+ Like button in my blog portlet.
i have downloaded facebook Hook its working and i tried for twiitter going throug twitter's official like button code but its not working good
i found that in facebook hook some tag is used like

<div class="facebook-like">
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="<%= viewEntryURL %>" show_faces="true" width="450"></fb:like>
</div>


here <fb:like> </fb:like> is used so my questins are
1. Is this tag is available in liferay portal TagLib
2. If not then how it works.
3. Is there similar tags for twiiter and google+
so i can easily add like buttons like facebook.

can any one explain how to add like buttons
thanks



Check out this thread. There is a plugin referenced there with source code that you could add to your own blogs portlet, or just use the plugin as-is to add additional social bookmarking links to the out-of-the-box blogs portlet.