我在使用我喜欢的按钮在我的网站上工作时遇到了很多困难。当我点击“赞”按钮时,我会看到以下消息:
* 该页面无法提供有效的管理员列表。它需要使用“fb:app_id”元标记指定管理员,或使用“fb:admins”元标记指定以逗号分隔的Facebook用户列表。*
对于我的页面:http://tutorio.nl/fb/bmw.html我有以下代码设置。
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<title>BMW Auto</title>
<meta property="og:title" content="Dikke BMW X6"/>
<meta property="og:type" content="product"/>
<meta property="og:url" content="http://www.tutorio.nl/fb/bmw.html"/>
<meta property="og:image" content="http://www.tutorio.nl/fb/bmw-x6.jpg"/>
<meta property="og:site_name" content="tutorio.nl"/>
<meta property="fb:admins" content="100000369901095"/>
<meta property="fb:app_id" content="160395427395748"/>
<meta property="og:description"
content="De BMW X6 crossover een geliefde auto voor vele."/>
</head>
<body><p><img src="bmw-x6.jpg" title="Mercedes E-Klasse Coupe"/></p>
<iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftutorio.nl%2Ffb%2Fbmw.html&send=false&layout=standard&
width=450&show_faces=false&action=like&colorscheme=light&font&height=35&appId=160395427395748"
scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
</body>
我已经浏览了文档,所以很多人都看不到我出错的地方。
答案 0 :(得分:2)
查看facebook为我们提供的这个伟大工具:
https://developers.facebook.com/tools/debug
它将允许您调试og:tags
- 并告诉您丢失的内容以及不接受的值。从快速浏览一下,og_products:product
和fb:app_id
参数之间似乎存在冲突。查看链接,将您的网址提供给该工具,它应该可以帮助您解决此问题
此外,Facebook上的Open Graph Protocol Documentation应该对参数的含义以及接受的值有所了解。