If you have a blogger blog, and want your visitors to easily share your posts with their facebook friends, 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='"http://www.facebook.com/share.php?u=" + 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>
and you'll also have a permalink before the 'share on facebook' link.
Where to put the code: It depends where you want the share links to appear, probably below the post. Likely after the <$BlogItemBody$> for classic templates and somewhere in the <div id='main-wrapper'> code for layouts. The specifics depend on your template/layout and your preference.
Control title and description: You can make facebook sharing look good: specify the picture, title and description facebook will use; apply the tips on your post pages.
You can also add a link for sharing and saving for other social networking and social bookmarking sites too. If you'd like the code for that, please read the comments.
Actor David August's blog about everything that isn't news about his work nor about acting in Los Angeles or acting in Chicago.
Friday, May 30, 2008
Blogger 'Share on Facebook' Code
Friday, May 16, 2008
Thursday, May 15, 2008
Britain's Got Talent: Andrew Johnston (flash)
13 year old Andrew Johnston sings Pie Jesu (rated PG).
Friday, May 2, 2008
Subscribe to:
Posts (Atom)