Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 219
codinginthevoid Avatar asked Oct 15 '10 16:10

codinginthevoid


Video Answer


1 Answers

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.

like image 107
Eddie Avatar answered Sep 19 '22 15:09

Eddie