Hi, as the topic states i am trying to hardcode a facebook like button into my blog site. I tried cheating and copying the already intergrated twitter feed code but when navigating to the site it told me there was a server error.
This is the twitter code i tried:
<div class="twitter_link">
<a target="_blank" title="Share this article with your Twitter followers" href="http://twitter.com/home?status=Reading%3A+<?php the_title(); ?> - <?php
$turl = getTinyUrl(get_permalink($post->ID));
echo $turl;
?>" rel="nofollow" class="social-bookmark">Tweet Article</a>
<img alt="Tweet Article" src="<?php bloginfo('template_directory'); ?>/images/twitter.png"/>
</div>
but replaced it with the following:
<div class="facebook_link">
<a target="_blank" title="Share this article with facebook" href=""http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?
echo $turl;
?>" rel="nofollow" class="social-bookmark">Like Article</a>
<img alt="Like Article" src="<?php bloginfo('template_directory'); ?>/images/fbr.png"/>
</div>
Any ideas where im going wrong? I am adding the appropriate CSS code to work with the php but i just get internal server errors.
Here is a link to my site so you can see where i want it: http://www.photosbystuart.co.uk
Thanks in advance
Stuart