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&amp;p            [url]=#cgi.server_name##cgi.path_info#?#cgi.query_string#p            [images][0]=mysiteimage.jpg&amp;p            [title]=#pagetitlegoeshere#&amp;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&amp;p        [url]=#cgi.server_name##cgi.path_info#?#cgi.query_string#p        [images][0]=mysiteimage.jpg&amp;p        [title]=#pagetitle#&amp;p        [summary]=my site facebook button sharer"> <img src="/images/chicklets/facebook_share.png"> </a> 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -