Debugger is returning this error - facebook

I have a problem..the Debugger is returning this error:
Errors That Must Be Fixed
More Than One OG URL Specified:
More Than One OG URL Specified Object at URL 'http://www.health-alternative.com/' of type 'website' is invalid because it specifies multiple 'og:url' values: http://www.health-alternative.com/, http://health-alternative.com/.
Could you tell me what it can be?
Thank you

When called without the “www” prefix, http://health-alternative.com/, your site automatically redirects to the version with www, http://www.health-alternative.com/
But your meta tags say, the version without www is the correct one:
<meta property="og:url" content="http://health-alternative.com/">
So you should decide on one of the two options … right now, you are contradicting yourself in what the page actually does and what the meta tag says.

Related

Facebook open graph tags not working

This is our page http//:www.playtown-game.com. If you view the source you will see that we define the open graph tags for facebook to show the image and description that we want. However it does not seem to work and we have tried using lint to clear facebook's cache.
Lint complains that:
Inferred Property: The 'og:url' property should be explicitly provided, even if a valuec an be inferred from other tags.
Inferred Property: The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
... even though we have defined those in the meta tags.. Any ideas? Thank you...
I think the problem is with the relocate method you are using to redirect users to site http://www.playtown-game.com/playtown/app/portal/
<meta http-equiv="Refresh" content="0; URL=http://www.playtown-game.com/playtown/app/portal/">
This is the markup facebook scraped https://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fplaytown-game.com%2F
Your options are:
add the facebook open graph properties to the html file that is redirecting your users
or use some other redirect method for example PHP
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.playtown-game.com/playtown/app/portal/");
?>

Why is my meta info not sharing properly?

I have recently finished my site http://wwww.cute-or-not.com
When I share it on Facebook, no meta info or image comes through even though I have set this in WordPress using SEO Yoast. Am I missing something obvious
http://wwww.cute-or-not.com is most likely not what you want, maybe you meant http://www.cute-or-not.com
Using the debugger, http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.cute-or-not.com%2F
More Than One OG URL Specified: Object at URL 'http://www.cute-or-not.com/' of type 'article' is invalid because it specifies multiple 'og:url' values: http://www.cute-or-not.com/, http://www.cute-or-not.com/.
You are defining the OG meta tags twice. Remove it from the "Easy Facebook Share Thumbnails" plugin.

Dynamic OpenGraph Object URL not working

I am trying to post an open graph activity. Actually it's working with a static .html file. But if i point to a url with url params i get an error. The sourcecode on both pages is 100% the same, trust me.
# Dynamic call
/me/somesandbox:drive?car=http://www.domain.com/object/?og:type=somesandbox:car&og:title=Some%20car
# Static call
/me/somesandbox:drive?car=http://www.domain.com/static_car.html
Error:
"Object at URL 'http://www.domain.com/object/?og:type' of type 'website' is invalid because a required property 'og:type' of type 'string' was not provided."
If you look at the error, you ll see, that Facebook didnt get the whole url. The params are missing, right. Please help!
The Open Graph object url you are trying to use is this?
http://www.domain.com/object/?og:type=somesandbox:car&og:title=Some%20car
My guess is, since Facebook is already parsing : colon characters for the action names (i.e. graph.facebook.com/me/recipebox:cook?recipe=), they might not be safe to use as your own parameters.
Also, there might be some confusion: so far as I know, Open Graph properties of objects are not passed in URLs like this og:title=Some%20car. They are actually uncoded in the page the URL points to, via the open graph meta tags: <meta property="og:title" content="Some car" />. So if you trying to set the Object properties with the URL, it won't work.
Don't forget to use the Lint Debug Tool to test out your Open Graph Object URLs!
You probably do know this, though, and are just using the URL's GET parameters to set the meta tags. Something like this?
<meta property="og:title" content="<? echo $_GET['og:title'] ?>" />
If this is the case, just try it without the : colons. There is some debate about whether they are safe in URLs anyway, but if Facebook is also parsing them it'll be safest to just leave them out, like this:
// http://www.domain.com/object/?ogtype=somesandbox:car&ogtitle=Some%20car
<meta property="og:type" content="<? echo $_GET['ogtype'] ?>" />
<meta property="og:title" content="<? echo $_GET['ogtitle'] ?>" />
I have not tested this, just giving some suggestions to try. Good luck!
Facebook has this nice tool to find out what the facebook see: https://developers.facebook.com/tools/debug just put the url, and watch the debug.
Don't forget, these meta tags have to be placed in section.
Got it.
#thaddeusmt: Was already on the right track.
Which it super important - of course it is - you have to encodeURIComponent(yoururl?with=vars)
Solved
If you pass your url like this:
/me/somesandbox:drive?car=http://www.domain.com/object/?og:type=somesandbox:car&og:title=Some%20car
Make sure to encode the object-url. E.g. with Javascript
encodeURIComponent(http://www.domain.com/object/?og:type=somesandbox:car&og:title=Some%20car)

sharing issue (weird description)

I'm having a weird experience with fb sharing. Whenever me or anyone share's my blog post, in the description area my ad codes are visible. This is hammering my adsense. I tried using facebook debugging tool and I got the following issues but I am unable to resolve it. Any help would be highly appreciable.
Errors That Must Be Fixed: Body Meta: You have tags ouside of your . This is either because your was malformed and they fell lower in the parse tree, or you accidentally put your Open Graph tags in the wrong place. Either way you need to fix it before the tags are usable.
**Warnings That Should Be Fixed: Inferred Property: The og:url property
should be explicitly provided, even if a value can be inferred from
other tags. Inferred Property: The og:title property should be
explicitly provided, even if a value can be inferred from other tags.
Inferred Property: The og:image property should be explicitly
provided, even if a value can be inferred from other tags. Inferred
Property: The og:locale property should be explicitly provided, even
if a value can be inferred from other tags.
It sounds like the meta tags are in the wrong place but because you haven't given us a link to your site it's hard to be sure; they should be in the section of the page. This would be causing the first error.
The second error refers to missing tags, but they might be 'missing' by virtue of not being in the correct place, so fix the first problem first
{edited after seeing your page}
The main error at the top is because you've a
<meta name="alexaVerifyID" content="{snipped}" /> tag outside the <head></head> section of your page.
The rest of the errors are because you haven't added any open graph tags at all - each page should have meta tags telling Facebook what title/description/image to use when sharing, as well as which app/user should be allowed to see the analytics and insights information for the shared links
For more information on how this works, see https://developers.facebook.com/docs/opengraph/
If you want to just get up and running quickly, try the tool at Step 2 of the Like Button Documentation to generate some sample tags

Other Open Graph og:type not being parsed correctly by Facebook linter

As per Open Graph's documentation at http://developers.facebook.com/docs/opengraph , we can specify our own og:types.
If your object does not fit into one of the types above, you can
specify your own type. This will be represented as type other on
Facebook. We will monitor the most commonly used types and graduate
them to fully supported og:types. If you are specifying your own type
we recommend that you use your own namespace.
Running the linter on a page on my website
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fznood.com%2Fachkar_tools returns the following errors:
Object at URL 'http://znood.com/places/dcGPdl0Psuc' is invalid because
the configured 'og:type' of 'znoodcom:store' is invalid
On my other page wich og:type is "city", if you check the linter up top, the og:type is set to "website" (which is bad!)
http://developers.facebook.com/tools/debug/og/object?q=znood.com%2Fcities%2FbIYWj4uRhCc
Can someone clarify how to set up custom types that Open Graph can pick? Also, why is the "city" type being replaced with "website" on my page?
Try visiting the Open Graph tool inside your app and declare your Object Type.
https://developers.facebook.com/docs/beta/opengraph/define-objects/
Are you passing in your namespace links in your head tag? Like:
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# yourns: http://ogp.me/ns/fb/yourns#`">
where yourns is your namespace.