Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opengraph meta tag og:type set to "product" errors (like button & URL linter/debug)

We recently noticed our facebook like buttons stop working. To investigate i ran the URL thru Facebook's Debugger (old URL Lint) tool and it gave me this error :

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.

Example URL where we are currently seeing this :
https://savingstar.com/coupons/boursin-cheese/4edfd63fec0f2532eb000106

Here is a slightly edited version of the relevant meta tags as the Facebook URL scraper seeing it (using the link in the debugger tool) :

<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">

As you can see i am setting the og:type to product as stated in the facebook like-button documentation here : https://developers.facebook.com/docs/opengraph/#types

UPDATE 2011-12-14 : looks like my issue is most likely related to a reported and confirmed bug here http://developers.facebook.com/bugs/285421101492706

I'll update this when i have confirmed this is the root cause of my issue.

like image 680
george Avatar asked Dec 12 '11 19:12

george


People also ask

What is OG type in meta tag?

Open Graph meta tags are snippets of code that control how URLs are displayed when shared on social media. They're part of Facebook's Open Graph protocol and are also used by other social media sites, including LinkedIn and Twitter (if Twitter Cards are absent). You can find them in the <head> section of a webpage.

What is Open Graph tag?

The image meta tag defines the image you want to display. This Open Graph tag is the most essential. It helps your content stand out, attract clicks, and encourage engagement. HTML Example: <meta property="og:image" content="your-image-url.png" /> Best Practices: The image resolution, file size, and type matter.

How do you check OG tags?

If you have implemented OG tags in your website and you want to check them. You can go to smallseotools.com and use the OG checker tool. Once you navigate to the website; enter the URL of the website you want the meta og checker tool to check. It will run a check and if it finds the tags it will display them.

How do you use OG tags?

og:type This particular Open Graph protocol tag can be important if the content represents something in real-life. For example, if you are sharing a book and a user 'likes' your content on Facebook, then the book will then appear in her Interest section on Facebook.


1 Answers

It looks like there is no og:type for "product" if you look at the official Open Graph Protocol page. There's no discussion of it in the official Google Group but there is one question out on the Facebook Group.

You'll either need to specify your own namespace and type or use one of the built-ins.

like image 125
bbrown Avatar answered Oct 06 '22 02:10

bbrown