Facebook image metatag

asked May 1, 2014 by carlo15 (450 points)
I am implementing the Facebook metatags on SeoToaster; wonderful how I can integrate the cheatsheet shortcodes to get the job done!

I just can't find how to obtain the page image teaser URL, using the shortcode {$page:preview} give me the whole HTML <img> tag.

This way I can't use the Facebook image metatag, and it keeps picking the wrong images when sharing content.

Does anyone knows how to solve this? Thanks, Carlo.

1 Answer

answered May 5, 2014 by Oleg Malii (1,080 points)
edited May 8, 2014 by seotoaster
Hello carlo15,
Unfortunately there is no option for  {$page:preview} widget, to return only image URL without <img> tag.
So for now you could manually inspect needed image, copy the URL and insert to facebook meta tag.
Or you can use {$plugin:widcard:bizLogo:url} token to get website logo image URL, it will be the same for each page, if it's ok for you.

If you do not use meta tags, Facebook analyze the page and picks the 1st image on the page by default.

And when sending news from SEO Samba (mojo.seosamba.com), you can specify the image that Facebook is using as preview image on top of sending news to PR distribution channels. However you do need a $99/monthly subscriiption for this.

Please contact us if you have any questions.
Thank you.
asked Jul 16, 2014 by carlo15 (450 points)
edited Jul 16, 2014 by seotoaster
Add facebook image metatag to layout.phml