加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

html – Opengraph元标记og:类型设置为“产品”错误(如按钮和UR

发布时间:2020-12-14 18:39:46 所属栏目:资源 来源:网络整理
导读:我们最近注意到我们的Facebook按钮停止工作.为了调查我通过Facebook的调试器(旧的URL Lint)工具运行URL,它给了我这个错误: Object Type Not Allowed: Object at URL 'https://savingstar.com/coupons/boursin-cheese/4edfd63fec0f2532eb000106' of type 'og
我们最近注意到我们的Facebook按钮停止工作.为了调查我通过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,但是很想知道是否有其他人遇到过这个问题并解决了它.

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

以下是Facebook URL剪贴板看到的相关元标记的略微编辑版本(使用调试工具中的链接):

<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设置为产品,如facebook like-button文档中所述:https://developers.facebook.com/docs/opengraph/#types

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

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

解决方法

如果您查看官方的 Open Graph Protocol页面,看起来似乎没有og:“产品”类型.官方谷歌集团没有讨论它,但Facebook集团有 one question.

您将需要specify your own命名空间并键入或使用其中一个built-ins.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读