如何使用"og"(开放图谱)元标记进行Facebook分享 [英] How to use the 'og' (Open Graph) meta tag for Facebook share

查看:245
本文介绍了如何使用"og"(开放图谱)元标记进行Facebook分享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook从我的网站中获取所有图片.

Facebook fetches all pictures from my site.

我只想共享该页面上的一张照片.

I want to share only one picture which is on that page.

我听说过og元标记,但是我不知道如何放置它.

I heard about the og meta tag, but I don't know how to put it.

推荐答案

使用:

<!-- For Google -->
<meta name="description" content="" />
<meta name="keywords" content="" />

<meta name="author" content="" />
<meta name="copyright" content="" />
<meta name="application-name" content="" />

<!-- For Facebook -->
<meta property="og:title" content="" />
<meta property="og:type" content="article" />
<meta property="og:image" content="" />
<meta property="og:url" content="" />
<meta property="og:description" content="" />

<!-- For Twitter -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="" />
<meta name="twitter:description" content="" />
<meta name="twitter:image" content="" />

根据页面内容填充内容="...".

Fill the content =" ... " according to the content of your page.

有关更多信息,请访问

For more information, visit 18 Meta Tags Every Webpage Should Have in 2013.

这篇关于如何使用"og"(开放图谱)元标记进行Facebook分享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆