html - Opengraph 元标记 og :type set to "product" errors (like button & URL linter/debug)

标签 html tags facebook-like facebook-opengraph

我们最近注意到我们的 facebook like 按钮停止工作。为了调查,我通过 Facebook 的调试器(旧 URL Lint)工具运行了 URL,它给了我这个错误:

Object Type Not Allowed:    
Object at URL 'https://savingstar.com/coupons/boursin-cheese/4edfd63fec0f2532eb000106' of type 'og_products:product' is invalid because it the specified fb:app_id '111777372238952' is not the owner of specified og:type.

我怀疑这与新的 Open Graph Beta 类型有某种关系,但我似乎找不到任何证据。我怀疑我需要删除 `fb:app_id` 以支持 `fb:admins`,但很想知道是否有其他人遇到过这个问题并解决了它。

我们当前看到的示例 URL:
https://savingstar.com/coupons/boursin-cheese/4edfd63fec0f2532eb000106

这是相关元标记的略微编辑版本,Facebook URL scraper 看到它(使用调试器工具中的链接):

<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="grocery,coupon,coupons,ecoupon,ecoupons,grocery coupons,food coupons,groceries coupons,coupons for food" name="keywords">
<meta content="Get our exclusive Boursin Cheese coupon - expires 1/4/2012." name="description">
<meta content="Boursin Cheese Coupon" name="title">
<meta content="Buy ANY ONE (1) variety of Boursin Cheese, Save $1.00" property="og:title">
<meta content="product" property="og:type">
<meta content="https://savingstar.com/coupons/boursin-cheese/4edfd63fec0f2532eb000106" property="og:url">
<meta content="https://static1.savingstar.com/images/dyn/1897.png" property="og:image">
<meta content="SavingStar" property="og:site_name">
<meta content="Save big $$ on your groceries with SavingStar eCoupons. Nothing to clip. Nothing to print." property="og:description">
<meta content="111777372238952" property="fb:app_id">

如您所见,我正在将 og:type 设置为 product,如 facebook 点赞按钮文档中所述:https://developers.facebook.com/docs/opengraph/#types

更新 2011-12-14: 看起来我的问题很可能与此处报告和确认的错误有关 http://developers.facebook.com/bugs/285421101492706

当我确认这是我的问题的根本原因时,我会更新它。

最佳答案

如果您查看官方Open Graph Protocol,“产品”似乎没有og:type页。官方 Google Group 中没有对此进行讨论,但有 one question在 Facebook 群组上发布。

您要么需要 specify your own命名空间并键入或使用 built-ins 之一.

关于html - Opengraph 元标记 og :type set to "product" errors (like button & URL linter/debug),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8479503/

相关文章:

javascript - 多个 <select> 使用 selectize,已选择时删除选项

html - 如何将电脑上的两张图片做成轮播到手机上显示一张图片?

javascript - blogspot.com 同一标签的所有帖子列表

regex - 删除标签之外的文本

ios - 检查用户是否是粉丝页面 ios

html - 为什么 Transition css 在子选择器 css 中不起作用

html - 如何将内容包裹在div中?

tags - 如何使页面加载到 anchor 标记?

python - 如何使用 Python 获取 Facebook 上帖子的点赞数?

android - 就像来自应用程序本身的 facebook 中的 android 应用程序页面