Add to Facebook Block for Drupal
I know there are many modules like "service links" or social bookmarking services like addthis/sharethis etc. but I just want to have a small block on top-right side for my users with a facebook account.
<?php $fb_title = drupal_get_title(); $fb_url = "http://".$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]; $fb_url = rawurlencode($fb_url); $fb_title = rawurlencode($fb_title); $fb_url = "http://www.facebook.com/sharer.php?u=$fb_url&t=$fb_title"; echo <<<hrd Share this page on <a href="$fb_url"><b>Facebook!</b></a> hrd; ?>
Similar entries
- List of Domains with Google PageRank 10
- How to add new sites to Drupal's service links module?
- Social bookmarking Client for multiple update
- Web trends 2009 and 2010
- You have too many groups. You must leave one to join this one.
- Get Full Url Path excluding PHP Script's name
- Our automated system will not approve this name (Facebook)
- What is my IP Address and HostName?
- Dmoz is dead, long live web 2.0 / social media!
- Page generation time and http-referers with PHP
- How to make website popular
- Redirect webpages with HTML, PHP, .htaccess, Java+Script, CGI-Perl, ASP.NET and ColdFusion
- Please answer a few security questions
- PHP Block for Custom Role under Drupal 6
- Let your visitors run Drupal cron for you
- Pure CSS Mouseover Menu without Javascript
- DropDown / Rollover Menu with pure CSS / HTML
- Web2 Style CSS Dynamic Menu with Arrows and Background-Images
- Facebook error
- Redirect a query to multiple search engines with one form and javascript

Post new comment