Facebook Open Graph warning on multiple fb:admins - facebook

I'm getting a Facebook Open Graph debugger warning when I put two admins in the fb:admins meta value. With a single admin, it passes fine, but with two I get a warning. Everything works fine, but my OCD wants to get it right. Any help?
Here's my code:
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
<meta property="fb:app_id" content="122146944552301"/>
<meta property="fb:admins" content="15901643,15932442"/>
<meta property="og:type" content="article" />
<meta property="og:url" content="http://uamedia.missouri.edu/mizmag/facebook-test.html" />
<meta property="og:site_name" content="UA Media" />
<meta property="og:title" content="Facebook Test" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Facebook Test</title>
</head>
And I get this error:
Parser Mismatched Metadata The parser's result for this metadata did not match the input metadata. Likely, this was caused by the data
being ordered in an unexpected way, multiple values being given for a
property only expecting a single value, or property values for a given
property being mismatched. Here are the input properties that were not
seen in the parsed result: 'fb:admins'
Any ideas?

you have to use the array format [http://ogp.me/#array]
In your example:
instead of
<meta property="fb:admins" content="15901643,15932442"/>
you have to use
<meta property="fb:admins" content="15901643"/>
<meta property="fb:admins" content="15932442"/>

I've updated Facebook's documentation to include the right directions for more than one admin. Sorry for the confusion.

in my oppinion, only the last meta tag will count for the code that uses the property value.
although meta should go in the head, you can use them anywhere and anytime on the page. just keep in mind the parser goes through the code and compiles all the lines in order.
you can even use the [IF] to select the code to be parsed according to certain global conditions.

Related

Facebook not recognizing open graph tag og:title

I keep getting the below error from Facebook -
Object at URL 'https://qa.recrouter.com/displayJob/Y6LtGNI0WH1rVndaKCwv4PUZkM925mcq' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.
However when I go to the debugger and see what the scraper sees, I see the below information is indeed contained in the page -
<meta property="og:type" content="website">
<meta property="og:title" content="Pega Developer for Insurance Claims">
<meta property="og:description" content="
We are a leading provider of insurance products for commercial and institutional customers through one of the world’s most far-reaching property casualty networks. We offer some of the industry’s most extensive ranges of products and services, ...">
<meta property="og:site_name" content="Recrouter">
<meta property="og:url" content="https://qa.recrouter.com/displayJob/Y6LtGNI0WH1rVndaKCwv4PUZkM925mcq">
<meta property="og:image" content="https://qa.recrouter.com/img/logo512h.png">
<meta property="og:image:type" content="image/png">
What am I missing?
I don't get this error when I check your URL on the debugger, the og:title tag seems to work perfectly. Try to have a look again ;)
I fixed it - essentially, the error was due to a modification I had made to the tag. To accomodate google sharing, I had modified the HTML tag to be as follows -
<!DOCTYPE html itemscope itemtype="schema.org/website">
I changed this back to <!DOCTYPE html> and everything works

Why is my og:image not working?

I am using Wordpress and WP Yoast SEO plugin and I want to get an image if I post my link on Facebook. That's not happening and I don't know why. I have used Facebook's debugger tool and I got this:
The parser's result for this metadata did not match the input metadata. Likely, this was caused by the data being ordered in an unexpected way, multiple values being given for a property only expecting a single value, or property values for a given property being mismatched. Here are the input properties that were not seen in the parsed result: 'article:publisher'
Why is this? It does not say a thing about my image.... Besides, I can see it in the fetched results on Facebook debugger, so that must not be a problem either. The article:publisher was wrapped in single quotes like this: ' and I changed it to ", but it still gives me the same problem.
This is the scraped url:
<meta property="og:locale" content="blabla">
<meta property="og:type" content="website">
<meta property="og:title" content="blablablbla">
<meta property="og:url" content="http://blablablblabla">
<meta property="og:site_name" content="blablablabala">
<meta property="article:publisher" content="https://www.facebook.com/pages/blbalblbalab">
<meta property="og:image" content="http://blblalblba.png">
And this the ruwe open graph document information
Metatag: <meta property="og:locale" content="blabla" />
Metatag: <meta property="og:type" content="blbalbae" />
Metatag: <meta property="og:title" content="blablbla" />
Metatag: <meta property="og:url" content="http://blablbal.com/" />
Metatag: <meta property="og:site_name" content="blblablba" />
Metatag: <meta property="article:publisher" content="https://www.facebook.com/pages/blblbalab" />
Metatag: <meta property="og:image" content="http://blbalblab.jpg" />
Solved it by changing the image to an image that is exactly 200x200...
Damn it, why does Facebook not say that in the debugger tool? Anyhow, it's solved.

How to use a custom property of another object in an open graph object?

Sorry I am very new to open graph and have been having difficulty to post an action the way I want it to be...
If I have two custom objects (book and author) and an action (read) that connects with "book". I also added in the "book" object a custom property of the type "author".
Q1) How do I get the "read" action post to include a link to the "author" object? Is that even possible? So far I do not see where I can use the custom property of type "author" anywhere.
Q2) If the custom property name is "myapp:author", in the meta tag what exactly should I put in the content?? as in <meta property="myapp:author" content="??????">
please if anyone can shed some light I would greatly appreciate it. I can't seem to find any fb documentation or stackoverflow post describing how exactly to use custom property and i have been trying to figure this out for two days...
This documentation page describe what I can do, but exactly how do I do it???
"Using the same cooking app example, if we wanted to add the author to the recipe object, we could simply add a property “author” to the object where we would provide the author’s name as a string. Another way to model this would be to have the “author” property point to a “profile” object that has meta data on the author’s first name, last name, profile picture etc."
so back to my two questions
Q1) If I have a "cook" "recipe" action post, in the post can I have a reference to "author" (e.g. User cooked a recipe by author on myapp)
Q2) What should be in the content of the meta tag for the "author" property???
You can see Bultin Object Book to understand how to define custom properties
<html>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#
book: http://ogp.me/ns/book#">
<meta property="fb:app_id" content="YOUR_APP_ID">
<meta property="og:type" content="book">
<meta property="og:url" content="URL of this object">
<meta property="og:image" content="URL to an image">
<meta property="og:description" content="Description of content">
<meta property="og:title" content="Name of book">
<meta property="book:release_date" content="DateTime">
<meta property="book:author" content="Who wrote this">
<meta property="book:isbn" content="ISBN Number">
<meta property="book:tag" content="keywords">
</head>
<body>
<!--a wonderful book -->
</body>
</html>
For Custom types, like referring / using an an object in another object, See this complex object type
<html>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#
your-og-app: http://ogp.me/ns/apps/your-og-app#">
<meta property="fb:app_id" content="YOUR_APP_ID">
<meta property="og:type" content="your-og-app:restaurant">
<meta property="og:title" content="Sample Restaurant">
<meta property="og:description" content="A great sample restaurant">
<meta property="og:image" content="https://your-great-image">
<meta property="your-og-app:owner:street_address"
content="1601 S. California St.">
<meta property="your-og-app:owner:locality" content="Palo Alto">
<meta property="your-og-app:owner:region" content="California">
<meta property="your-og-app:owner:postal_code" content="94304">
<meta property="your-og-app:owner:country_name" content="United States">
<meta property="your-og-app:owner:email" content="nospam#fb.com">
<meta property="your-og-app:owner:phone_number" content="111-111-1111">
<meta property="your-og-app:owner:fax_number" content="111-111-1111">
<meta property="your-og-app:owner:website"
content="http://www.facebook.com">
</head>
<body>
<!--a wonderful web page of Sample Restaurant -->
</body>
</html>
For more information You should read the open graph protocal.

Wrong value for 'og:type' in facebook debugger

On a site I'm developing, I've set the og:type as "non_profit" as per Facebook's docs.
When I examine the page with the Facebook debugger / linter, the type is picked up as "profile". I can't seem to find anything wrong with my implementation: it all seems to obey FB's docs.
Anyone out there got an idea what I'm doing wrong?
Update: Here is a link to the site: http://www.hncc.co.uk/
And the code looks like this:
<html xmlns:og="http://ogp.me/ns#">
<head>
<meta property="og:site_name" content="Highgate Newtown Community Centre" />
<meta property="og:title" content="Highgate Newtown Community Centre" />
<meta property="og:type" content="non_profit" />
<meta property="og:url" content="http://www.hncc.co.uk" />
<meta property="og:image" content="http://www.hncc.co.uk/...link-to-image.png" />
...
"profile" is the default object type that Facebook reports for OG objects that report an invalid type. In your case, "non_profit" isn't a built-in type
https://developers.facebook.com/docs/technical-guides/opengraph/built-in-objects/#external_profile
You either need to use one of the built-in types or create a custom type. More info on that here:
https://developers.facebook.com/docs/technical-guides/opengraph/defining-an-object/

Who is adding Facebook meta tags

I added the following to the HTML of my front page (right from the top of the page):
<html xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="description" content="Blah-Blah-Blah This is my web site">
<meta name="keywords" content="why,does,facebook,suck,so,much">
<meta name="distribution" content="Global">
<meta name="revisit-after" content="30 days">
<meta name="rating" content="General">
<meta name="robots" content="follow,index">
<meta name="author" content="www.me-at-my-wonderful-site.com">
<meta property="og:title" content="My Title" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://www.my-company-url.com/" />
<meta property="og:image" content="http://www.my-company-url.com/images/facebook_pic.png" />
<meta property="og:site_name" content="My Company Name" />
<meta property="og:description" content="Blah-Blah-Blah" />
<meta property="fb:app_id" content="123456789012345"/>
<meta property="og:latitude" content="56.340609"/>
<meta property="og:longitude" content="-152.435136"/>
<meta property="og:street-address" content="123 1st St."/>
<meta property="og:locality" content="Seattle"/>
<meta property="og:region" content="WA"/>
<meta property="og:postal-code" content="98765"/>
<meta property="og:country-name" content="USA"/>
<meta property="og:phone_number" content="360-123-4567"/>
<title>Title for my web page - Home Page</title>
<link href="icon.ico" rel="SHORTCUT ICON">
<link href="styles.css" type=text/css rel=stylesheet>
<!-- Regular HTML follows -->
Let's say the following can be accessed by logging in to http://www.my-company-url.com and I can see the HTML above in a web browser (view source). But when I load the same URL into http://developers.facebook.com/tools/debug I get the following:
Errors That Must Be Fixed
Object Invalid Value: Object at URL 'http://www.my-company-url.com' of type 'website' is invalid because the given value '123456789012345' for property 'fb:app_id' could not be parsed as type 'fbid'.
Missing Required Property: The og:url property is required, but not present.
Missing Required Property: The og:type property is required, but not present.
Missing Required Property: The og:title property is required, but not present.
and then this
Warnings That Should Be Fixed
Extraneous Property: Objects of this type do not allow properties named og:latitude.
Extraneous Property: Objects of this type do not allow properties named og:longitude.
Extraneous Property: Objects of this type do not allow properties named og:street-address.
Extraneous Property: Objects of this type do not allow properties named og:locality.
Extraneous Property: Objects of this type do not allow properties named og:region.
Extraneous Property: Objects of this type do not allow properties named og:postal-code.
Extraneous Property: Objects of this type do not allow properties named og:country-name.
Extraneous Property: Objects of this type do not allow properties named og:phone_number.
Now WTF is this? Didn't I specify all those parameters above in my HTML??? And as you can see I made it "company" and not the "website"...
PS. 123456789012345 is not my real facebook ID, but it has the same number of digits as my actual ID.
Object Invalid Value: Object at URL 'http://www.my-company-url.com' of type 'website' is invalid because the given value '123456789012345' for property 'fb:app_id' could not be parsed as type 'fbid'.
123456789012345 is not my real facebook ID, but it has the same number of digits as my actual ID.
The fb:app_id tag is supposed to be the ID number of a Facebook application, not your personal Facebook profile's ID. If you want to manage a page through your Facebook profile, you should be using fb:admins, not fb:app_id. I suspect that this error is having some sort of cascading effect, preventing Facebook's parser from dealing with the rest of your OpenGraph tags.
For more details, see the Page Administration section of Facebook's OpenGraph documentation.
It looks like you didn't specify the Open Graph name space.
<html xmlns:fb="http://ogp.me/ns/fb#"
xmlns:og="http://ogp.me/ns#">
More information on the API here
http://developers.facebook.com/docs/opengraph
I got the same issue on a wordpress based site I run, I was able to fix it by adding the open graph meta tags again at the body and as weird as it sounds, it actually worked.
I might be of a greater help if you post the site in discussion.