When I run my Facebook Open Graph object (http://www.21dads.com/testobject) through the Object Debugger, I'm getting the following errors:
Object Invalid Value: Object at URL 'http://www.21dads.com/testobject' of type 'thetestasdf:recipie' is invalid because the given value 'www.21dads.com/testobject' for property 'og:url' could not be parsed as type 'url'.
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.
Here is the HTML on the object page:
<html xmlns="http://www.w3.org/1999/xhtml"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# thetestasdf: http://ogp.me/ns/fb/thetestasdf#"> <meta property="fb:app_id" content="325291980834949" /> <meta property="og:type" content="thetestasdf:recipie" /> <meta property="og:url" content="www.21dads.com/testobject" /> <meta property="og:title" content="Cookie Recipie!" /> <meta property="og:description" content="Tastiest recipe ever" /> <meta property="og:image" content="http://cdn.techpatio.com/wp-content/uploads/2009/11/cookie_law_eu.gif" /> <title> Cookie Recipie</title> <head/> <body> <p> Test object page </p> </body> </html>
The URL "www.21dads.com/testobject" is my controller which then generates the HTML from a view file. Why can't this URL be parsed?
Why am I getting the other "missing required property" errors when they are already included?
Thanks.
You should have scheme in front of og:url
content (like http://
or https://
), or this isn't URL.
In your specific case you should replace www.21dads.com/testobject
with http://www.21dads.com/testobject
Roundup / checklist of possible issues to check for:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With