hi

all is in the title...how can i do that ?

thanks

Comments

ahoymehearties’s picture

Seconded. I'm trying to code this in myself but having trouble. :(

aiphes’s picture

i try with service link module but have trouble to style FB like button..but it's better solution i think

shaunpv’s picture

<a name="fb_share" type="button" share_url="<?php
$options = array('absolute' => TRUE);
$targetPath = url('node/'.drupal_get_normal_path(arg(1)), $options); print $targetPath; ?>" href="http://www.facebook.com/sharer.php?u=<?php print $targetPath; ?>">Share</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

duvahazard’s picture

What I'm doing is this:

print $node->content['facebookshare']['#value'];
NenadP’s picture

For me it works like this:

First enable it for content type

Then, in the content type tpl.php hide it like this:

hide($content['facebookshare']);

Then add it where you want it like this:

print render($content['facebookshare']);
aiphes’s picture

thanks for tips... ;)