No property attribute in facebook meta tag in w3c validation

can use meta name="fb:admins" instead meta property="fb:admins" to check w3c

+1
source share
2 answers

I answer this, although this is an old question, as I find it valuable for those who want to receive information about this in the future. Evan is probably right when he says that he will not pass the test, but I think the answer is that you want to keep the attribute property="". Having chosen exactly this question from the old Facebook developer forum post , your document should be an XHTML + RDFa document. This will be confirmed in the W3C, thanks to the announcement 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=""/>.

+8

, :

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.
0

All Articles