Недавно мы заметили, что наши кнопки Facebook перестали работать. Чтобы исследовать, я запустил URL-адрес через инструмент Facebook Debugger (старый URL Lint), и он выдал мне эту ошибку:
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.
I am suspected this has something to do with the new Open Graph Beta types some how but i can't seem to find any evidence for this. My suspicion is that i need to remove the `fb:app_id` in favor of `fb:admins`, but would love to hear if any one else has run into this issue and resolved it.
Пример URL, где мы сейчас видим это:
https://savingstar.com/coupons/boursin-cheese/4edfd63fec0f2532eb000106
Вот слегка отредактированная версия соответствующих метатегов, поскольку URL-адрес Facebook скрейпер видит его (используя ссылку в инструменте отладчика):
<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
Я обновлю это, когда подтвержу, что это основная причина моей проблемы.