是否可以自定义/更改fb共享按钮的描述内容? [英] Is it possible to customize / change the description content of a fb-share button?
本文介绍了是否可以自定义/更改fb共享按钮的描述内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的代码,来自Facebook,非常简单:
This is my code, it's from Facebook, it's quite simple:
<div class="fb-share-button" data-href="http://www.mysite.com/" data-type="button_count"></div>
但是,当我单击共享"按钮时,发现无法控制网站的描述内容.其他一些网站也做了,但我不知道他们是怎么做到的.
But when I click on the share button, I found that I can't control the description content of the website. Some other sites did but I don't know how they did it.
是否可以更改?
谢谢
推荐答案
Facebook具有完整的说明,您可以在 The开放图谱协议站点
Facebook Has complete instruction and the available properties you can add on The Open Graph protocol site
基本元标记是
<meta property="og:title" content="{My Title}" />
<meta property="og:type" content="{Site Type}" />
<meta property="og:url" content="http://example.com" />
<meta property="og:image" content="http://example.com/images/og_image.jpg" />
如果要添加它们,还有更多选择
And there's more options if you want to add them
这篇关于是否可以自定义/更改fb共享按钮的描述内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文