Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Facbook share thumbnail / image problem


Go to End


2 Posts   1565 Views

Avatar
Optic Blaze

Community Member, 190 Posts

1 July 2011 at 7:10pm

Edited: 01/07/2011 7:11pm

Hi,

I have recently built a blog that is working well. However when someone tries to share the link on Facebook, the thumbnails of the images in the blog does not show up in the Facebook post box.

After doing some research i figured out that i have to create the following meta tag in my <head> tag ...... < link rel="image_src" href="http://www.example.com" /> that is supposed to list all the images that i have on the page so that the person that wants to share the page can have a selection of thumbnails to choose from when sharing the link.

I assume that i have to replace the href with the url to images on my page using the <% control %> feature, but i am unsure if i must use $url or $image or $file????? I have attached a screenshot.

Some help would be appreciated

Attached Files
Avatar
sajok

Community Member, 82 Posts

6 December 2011 at 12:48pm

I wonder if you have found a solution to that problem? I'm having the same issue with facebook like button ..!

?