Eric
Eric

Reputation: 5215

Facebook linter (aka "object debugger") complains about my URL, but everything seems ok

My site has some URLs that are rewritten by .htaccess... i.e. this:

 http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica

is invisibly re-written to:

      http://lastminuteislandvacation.com/villa.php?id=15

However, when I plug all this in the Facebook Linter, I get this error message:

"Errors That Must Be Fixed: There was an error in fetching the object at URL 'http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica', or one of the the URLs specified via a redirect or the 'og:url' property including one of http://www.lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica."

What does that mean, and is it a problem I need to worry about or is it just the Linter complaining?

FWIW as far as I can tell, all my open graph tags on the page are fine, and there's nothing unusual about rewriting a URL via .htaccess. My shares on Facebook seem to look and work correctly, with all the right metadata, image, etc. In other words: there's no problem that I can see, but that whole "Errors That Must Be Fixed" part has me mildly concerned.

Upvotes: 0

Views: 1008

Answers (1)

Nitzan Tomer
Nitzan Tomer

Reputation: 164139

When I try your urls in the debugger the results I get are just fine, there are no errors what so ever.

For the short (.php) version I get this:

Fetched URL:    http://lastminuteislandvacation.com/villa.php?id=15
Canonical URL:  http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica
URL for Likes:  http://lastminuteislandvacation.com/villa.php?id=15

And for the longer one I get this:

Fetched URL:    http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica
Canonical URL:  http://lastminuteislandvacation.com/villa/15/st-john-rental-villa-angelica

In the Scrape Information section.

Also, at the bottom (Urls section) you can see that they both get the same Graph API url

Upvotes: 1

Related Questions