ColdFusion Facebook Share button with Title using Custom image and description -
currently, use anchor create facebook share button can customize image, title , description.
<a target="_blank" href="http://www.facebook.com/sharer/sharer.php?s=100&p [url]=#cgi.server_name##cgi.path_info#?#cgi.query_string#p [images][0]=mysiteimage.jpg&p [title]=#pagetitlegoeshere#&p [summary]=my site facebook button sharer"> <img src="/images/chicklets/facebook_share.png"> </a> how can current page title can put in #pagetitlegoeshere# value?
why not make current page title variable , output both in url , tags?
<cfset pagetitle = "your title"> <title>#pagetitle#</title> <a target="_blank" href="http://www.facebook.com/sharer/sharer.php?s=100&p [url]=#cgi.server_name##cgi.path_info#?#cgi.query_string#p [images][0]=mysiteimage.jpg&p [title]=#pagetitle#&p [summary]=my site facebook button sharer"> <img src="/images/chicklets/facebook_share.png"> </a>
Comments
Post a Comment