我们可以使用meta name="fb:admins"
吗而不是meta property="fb:admins"
用于w3c验证??
我会回答这个问题,尽管这是一个老问题,因为我认为这对未来想要了解这方面信息的人来说都有价值。Evan说它不会通过验证,这可能是对的,但我认为答案是你想保留property=""
属性。从Facebook开发者论坛上一篇关于这个问题的旧帖子中可以确切地看出,您的文档应该是XHTML+RDFa文档。这将在W3C中得到验证,这要归功于DOCTYPE
声明:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
version="XHTML+RDFa 1.0"
xmlns:og="http://ogp.me/ns#"
xml:lang="en">
<head>
<title>Virtual Library</title>
<meta property="og:title" content="My Website"/>
</head>
<body>
<p>Moved to <a href="http://example.org/">example.org</a>.</p>
</body>
</html>
您可以在W3C的RDFa规范以及<meta property=""/>
的这个特定示例中找到更多信息。
不,你只会得到这个:
Line 1, Column 123: Bad value fb:app_id for attribute name on element meta: Keyword fb:app_id is not registered.
…="fb:app_id" content="176557225718913"><meta charset="utf-8"><meta name="descr…
Syntax of metadata name:
A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself.