I'm encountering an issue resulting from the use of relative paths for my article images in this form <img src="../../images/myimage.jpg" />
The Open Graph module faithfully replicates my paths in the meta tags, the various browsers parse these paths correctly, but Facebook does not.
I've tried other pages from the same site where the up directory (../) directive is not being used and the images show correctly. Also I have checked that the size and or proportions of the images are not the real issue. Even though some of them are not optimally sized for FB and the debugger gives a warning, they will still load if I dispense with the up directory (../../) directive from the path.
The trouble is, I need to use the up directory (../../) relative URL syntax to get my images to display. Therefore I'm wondering how to fix it.
I guess I need to somehow force the OG module to convert relative URLs into absolute URLs. Or interrupt the output somewhere to re-write as absolute. Could anyone help?
Using the Facebook Object Debugger on a problem page (https://developers.facebook.com/tools/debug) I get the following
Open Graph Warnings That Should Be Fixed
Unable to download og:image The image referenced by the url of og:image tag could not be downloaded.
Object Properties
og:url http://youthoncall.com.au/blog/introducing-youth-calls-new-skin-resurfacing-treatment
og:type website
og:title New: Youth on Call Skin Resurfacing Equipment
og:image
og:description We have recently invested in the Palomar 1540 IPL hand-piece – offering FRACTIONAL NON-ABLATIVE SKIN RESURFACING
og:site_name Youth on Call
og:updated_time 136799003
Raw Open Graph Document Information
Meta Tag <meta property="og:title" content="New: Youth on Call Skin Resurfacing Equipment" />
Meta Tag <meta property="og:description" content="We have recently invested in the Palomar 1540 IPL hand-piece – offering FRACTIONAL NON-ABLATIVE SKIN RESURFACING" />
Meta Tag <meta property="og:image" content="http://youthoncall.com.au/../../../images/dermal-fillers1.jpg" />
Meta Tag <meta property="og:url" content="http://youthoncall.com.au/blog/introducing-youth-calls-new-skin-resurfacing-treatment" />
Meta Tag <meta property="og:site_name" content="Youth on Call" />
Comments
Comment #0.0
bonzo46 commentedtypo correction
Comment #1
torotil commentedHi,
I'm the new maintainer of opengraph_meta. Sorry for the long silence in the issue queue.
Sadly I don't have the resources to care for the Drupal 6 version. Unless and until someone steps up to maintain it I'm therefore closing all D6 issues as WONTFIX.
Feel free to re-open the issue if it is still valid in one of the Drupal 7 branches.
Thanks!