Take the 2-minute tour ×

Possible Duplicate:
How does Facebook Sharer select Images?

Want to have share thumbnail when user shares site url using share button on site which uses http://www.facebook.com/sharer.php to achieve that.

Site dose not have img tags, all images are defined in css.

I added meta tags for image:

<meta property="og:image" content="/images/branding/branding-logo.png"/>


<link rel="image_src" href="/images/branding/branding-logo.png"/>

but it's not working :(

share|improve this question
add comment



3 Answers

up vote 13 down vote accepted

Use the full list of Open Graph Meta Tags:

  • og:title - The title of the entity.

Also use absolute URLs instead of relative!

Please note that Facebook caches webpages for specific periods so you may not notice your changes right away. A good way to check if Facebook is/will actually take your changes is by faking a parameter in your URL.
for example if your URL reads: http://example.com/index.php
Add something like: http://example.com/index.php?123 and then use it in the URL Linter. ;-)

You could directly use the Facebook Linter (now called Debugger), but be aware that some data cannot be changed in some cases, described here:

Editing Meta Tags


share|improve this answer
Tried with absolute URL, it did't work :( –  MatejB Feb 12 '11 at 17:44
Yes, caching was the problem! :) –  MatejB Feb 14 '11 at 16:14
add comment

Paste your ulr here http://developers.facebook.com/tools/lint/ . The facebook url linter will tell you exactly what is reading from your page. And also will update facebook cache of your page so it can try to read images from it again.

share|improve this answer
add comment

As ifaour said, you have to use absolute URLs or they won't be displayed. The <link> tag should work fine.

share|improve this answer
add comment
