This does actually add the image url, but unfortunately it displays is like so:
Code:
<meta property="og:type" content="article" /> <meta property="og:image" content="http://www.domainnamehere.com/attachment.php?attachmentid=7251" /> <meta property="og:image" content="http://www.domainnamehere.com/attachment.php?attachmentid=7252" /> <meta property="og:image" content="http://www.domainnamehere.com/attachment.php?attachmentid=7253" />
Which is not and cannot be parsed by Facebook. The only way to get this to work and display the image correctly is to link to an eternal image in order to get the url to resolve with an extension that Facebook will actually parse, example:
Code:
<meta property="og:image" content="http://www.domainnamehere.com/images/image.jpg" />
I use vbSEO and it will rewrite images to a readable URL, but unfortunately, it appears to rewrite them AFTER this mod executes, so they aren't displayed.
Currently the mod populates the og:image tag, but unfortunately it returns the code as
attachment.php?attachmentid=xx
I would like to alter it so that it displays the rewritten vbseo url into the og>:image tag (source code)
the code is:
Code:
$ogimages[] = $vbulletin->options['bburl'] . "/attachment.php?attachmentid=" . $thisattach['attachmentid'].
my attachment rewrite conditions are:
mydomain.com/ content/attachments/[attachment_id]-[original_filename]
I would like to rewrite the code so that it will publish the url in the same format as vbSEO does...
Could someone please help me with the correct syntax to use in this case??