<fb:share-button class="meta" type="box_count">
<meta name="title" content="A sample title"/>
<meta name="description" content="A sample title"/>
<link rel="image_src" href="path_to_img" />
<link rel="target_url" href="a sample url"/>
</fb:share-button>
The above code displays the number of shares (or likes) and indeed shares the开发者_如何学JAVA link on FB, but it does not make use of the meta title or description. I would like to push the title/description to Facebook. Is it possible and if so, what am I doing wrong?
Update : ultimately, i would like to use the share functionality as 'i support cause X'. So when a user clicks the share button, it offers to send to that user's feed: I supported cause x on www.site.com. Does this make any sense?
Put the title and description in of the page you are sharing as described here:
<head>
<meta property="og:site_name" content="HeartBooth"/>
<meta property="og:title" content="HeartBooth gallery"/>
...
精彩评论