多个fb:admin上的Facebook Open Graph警告 [英] Facebook Open Graph warning on multiple fb:admins

查看:64
本文介绍了多个fb:admin上的Facebook Open Graph警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在fb:admins元值中放置两个管理员时,我收到Facebook Open Graph调试器警告.一个管理员,它就可以通过,但是两个管理员,我会得到一个警告.一切正常,但我的OCD希望正确处理.有帮助吗?

I'm getting a Facebook Open Graph debugger warning when I put two admins in the fb:admins meta value. With a single admin, it passes fine, but with two I get a warning. Everything works fine, but my OCD wants to get it right. Any help?

这是我的代码:

<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">

    <meta property="fb:app_id" content="122146944552301"/>
    <meta property="fb:admins" content="15901643,15932442"/>
    <meta property="og:type" content="article" />
    <meta property="og:url" content="http://uamedia.missouri.edu/mizmag/facebook-test.html" />
    <meta property="og:site_name" content="UA Media" />
    <meta property="og:title" content="Facebook Test" />

    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <title>Facebook Test</title>
</head>

我收到此错误:

解析器元数据不匹配.此元数据的解析器结果与输入的元数据不匹配.可能是由于数据引起的 被以一种意想不到的方式排序,为一个 仅期望一个值或给定值的属性值的属性 属性不匹配.这是一些输入属性 在解析结果中看到:'fb:admins'

Parser Mismatched Metadata The parser's result for this metadata did not match the input metadata. Likely, this was caused by the data being ordered in an unexpected way, multiple values being given for a property only expecting a single value, or property values for a given property being mismatched. Here are the input properties that were not seen in the parsed result: 'fb:admins'

有什么想法吗?

推荐答案

您必须使用数组格式 [http://ogp.me/#array]

在您的示例中:

代替

<meta property="fb:admins" content="15901643,15932442"/>

您必须使用

<meta property="fb:admins" content="15901643"/>
<meta property="fb:admins" content="15932442"/>

这篇关于多个fb:admin上的Facebook Open Graph警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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