是否可以使用来自其他主机的开放图形图像?
Is it possible to use open graph image rom another host?
我一直在四处寻找我的问题的答案。运气不好。
如果我 运行 一个网站 https://www.x.com, can my og:image be from https://www.y.com?
<meta property="og:image" content="https://www.y.com/images/thumb.jpg" />
是的,可以。
fb 文档中的示例:
<html prefix="og: http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
...
</head>
...
</html>
内容随心所欲
是,所有 og
元标记都可以展示不同的域,甚至 url
,如据称 discovered by Barak Tawily last month。 og
元标记旨在指示网站上有哪些内容可用,但在用户单击链接之前无法知道 实际上 有什么内容。请注意,虽然这可以合法使用,但也可以用于恶意目的。
Interestingly, Tawily found that Facebook does not validate if the link mentioned in 'og:url' meta tag is same as the page URL, allowing spammers to spread malicious web pages on Facebook with spoofed URLs by just adding legitimate URLs in 'og:url' Open Graph meta tag on their websites.
Tawily's video 在欺骗其他 og
标签的同时展示欺骗 og:image
:
您需要做的就是将 content
属性设置为辅助域。
希望对您有所帮助! :)
我一直在四处寻找我的问题的答案。运气不好。
如果我 运行 一个网站 https://www.x.com, can my og:image be from https://www.y.com?
<meta property="og:image" content="https://www.y.com/images/thumb.jpg" />
是的,可以。
fb 文档中的示例:
<html prefix="og: http://ogp.me/ns#">
<head>
<title>The Rock (1996)</title>
<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
...
</head>
...
</html>
内容随心所欲
是,所有 og
元标记都可以展示不同的域,甚至 url
,如据称 discovered by Barak Tawily last month。 og
元标记旨在指示网站上有哪些内容可用,但在用户单击链接之前无法知道 实际上 有什么内容。请注意,虽然这可以合法使用,但也可以用于恶意目的。
Interestingly, Tawily found that Facebook does not validate if the link mentioned in 'og:url' meta tag is same as the page URL, allowing spammers to spread malicious web pages on Facebook with spoofed URLs by just adding legitimate URLs in 'og:url' Open Graph meta tag on their websites.
Tawily's video 在欺骗其他 og
标签的同时展示欺骗 og:image
:
您需要做的就是将 content
属性设置为辅助域。
希望对您有所帮助! :)