Web Translate

Label

Friend Connect

About Me

Sharing Can Make Your Live Easier
Lihat profil lengkapku
Minggu, 03 Januari 2010

Share on Facebook' Code

you can make blogger automatically place a 'share on facebook' link at the end of each post. Add this code after the body of the post:
for layouts

(in the "Edit HTML" pane with the "Expand Widget Templates"

check box checked):
<b:if cond='data:post.url'>

<br/>share <a expr:href='data:post.url' title='permanent link'>this</a>: <a expr:href='&quot;http://www.facebook.com/share.php?u=&quot; + data:post.url'>facebook</a>
</b:if>

for classic templates:
share <a href="<$BlogItemPermalinkURL$>" title="permanent link">this</a>: <a href="http://www.facebook.com/share.php?u=<$BlogItemPermalinkURL$>">facebook</a>

 

When someone shares a page on Facebook, the webmaster can specify the title, the description and the default thumbnail image.

The title doesn't have to be the same as the the page's title tag, and is specified with:

<meta name="title" content="different page title"/>

The description is taken from the standard description meta tag:

<meta name="description" content="page description"/>

The thumbnail used for Facebook sharing, and other places too, can be specified with:

<link rel="image_src" href="[your thumbnail's web address]"/>

Place the code in the head section of the web page replacing "[your thumbnail's web address]" with the URL to your thumbnail image, and both the title and description with what you want to have appear when the item is shared on Facebook.

 

0 komentar:

Posting Komentar