Facebook add thumbnail when sharing your site

How can I add a thumbnail when using the facebook.com/sharer.php?u=mysite.com? I've added this to the header: <link rel="image_src" href="http://mysite.com/image.jpg"/>

But: 1. It's not working (yet). 2. It's not valid XHTML.

Is there anyother way or am I doing something wrong?

Thank you.


First, image dimensions matter. It must be at least 50x50 pixels, and images must be up to three times as wide as they are tall.

Second, you can use a meta tag to specify the page image, e.g. <meta property="og:image" content="http://mysite.com/image.jpg"/>

Also notice that Facebook caches pages, so if you want to be sure how Facebook handles your latest version, use their URL Linter.

See information for example here and here and here.

Need Your Help

goroutines causing major slowdowns and headaches

concurrency go goroutine

I'm having something of a problem with goroutines. Why is it that this code executes in ~125ms (note sequential execution):