Share any link with custom message on Facebbok

Facebook link sharing allows us to share any type of link with our custom message. use the below code to share your link:
http://apps.facebook.com/itpotli/?ref=bookmarks


< ?php
$title=urlencode('Title of Your iFrame Tab');
$url=urlencode('http://apps.facebook.com/youriframetab');
$summary=urlencode('Custom message that summarizes what your tab is about, or just a simple message to tell people to check out your tab.');
$image=urlencode('http://www.yourdomain.com/images/share-thumbnail.jpg');
? >

< a onClick="window.open('http://www.facebook.com/sharer.php?s=100&p[title]=< ?php echo $title;? >&p[summary]=< ?php echo $summary;? >&p[url]=< ?php echo $url; ? >&&p[images][0]=< ?php echo $image;? >', 'sharer', 'toolbar=0,status=0,width=548,height=325');" target="_parent" href="javascript: void(0)" >Insert text or an image here. < /a >

 Note Just remove the extra spcaing before < and > brackets.


DEMO link http://apps.facebook.com/itpotli/?ref=bookmarks


for more information please visit:
http://www.daddydesign.com/wordpress/how-to-create-a-custom-facebook-share-button-for-your-iframe-tab/



Comments

Popular posts from this blog

Leap Year Calculator

PDF form validation using javascript

CSS Mouse Cursors and Custom Cursors