How to share custom data on social network site !!!

How to share custom data on social network site !!!

For Facebook share

<a id="ref_fb" href="http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $ftitle;?>&amp;p[summary]=<?php echo $fdescription;?>&amp;p[url]=<?php echo urlencode($fshare_url);?>&amp;
p[images][0]=<?php echo $fimage_url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600'); return false;">&nbsp;</a>

For Twitter share

<a id="ref_tw" href="http://twitter.com/home?status=<?php echo $ttitle; ?>+<?php echo urlencode($tshare_url);?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600');return false;">&nbsp;</a>
 

For Linkedin share

<a id="ref_lkd" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo urlencode($lshare_url);?>&title=<?php echo strip_tags($ltitle); ?>&source=<?php echo urlencode($siteurl);?>"onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600');return false;">&nbsp;</a>

For Google+ share

<a id="ref_gp" href="https://plus.google.com/share?url=<?php echo urlencode($gshare_url);?>"
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600');return false">&nbsp;</a>
Please define  values  of varibles for better result !!!  

Leave a Comment