Facebook sharer.php, how to have multiple og:image tags?

codinginthevoid picture codinginthevoid · Oct 15, 2010 · Viewed 65.2k times · Source

Possible Duplicate:
How does Facebook Sharer select Images?

We are using Facebook's sharer.php service to share pages on our site. Right now this works great, but we are now having difficult trying to find out how to offer users more than one thumbnail to pick from (the sharer.php page offers a UI for multiple images, so it must be possible somehow).

We have this meta tag currently:

<meta property="og:image" content="http://www.mysite.com/myimage.jpg" />

We couldn't find anything suggesting how to do this. Does anybody have any ideas?

Answer

Eddie picture Eddie · Apr 6, 2011

I've been using multiple images for a while now. Use multiple og:image meta tags like this:

<meta property="og:image" content="http://www.example.com/image01.jpg">
<meta property="og:image" content="http://www.example.com/image02.jpg">

Any pages that have already been shared (with one image) can be updated by loading the link in the debugger/linter here: https://developers.facebook.com/tools/debug/

The debugger/linter will not show a preview of all the images – it just shows the last one (I believe below it does mention what images it has pulled through) however it does work.