我们最近注意到我们的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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。