开发者

Should the following FB:Share code with meta title and descrition work?

开发者 https://www.devze.com 2023-02-23 05:14 出处:网络
<fb:share-button class=\"meta\" type=\"box_count\"> <meta name=\"title\" content=\"A sample title\"/>
<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"/>
...
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号