开发者

How to share an url on Facebook using more than one external image as thumbnails

开发者 https://www.devze.com 2023-03-30 16:14 出处:网络
I achieved Facebook sharing with a single external image using this syntax: 开发者_如何学C<a href=\"http://www.facebook.com/sharer.php?s=100&amp;p[title]=test&amp;p[url]=http://www.example

I achieved Facebook sharing with a single external image using this syntax:

开发者_如何学C<a href="http://www.facebook.com/sharer.php?s=100&amp;p[title]=test&amp;p[url]=http://www.example.com&amp;p[images][0]=http://www.example.com/image1.png&amp;p[summary]=Description">

is it possible to use more than one image? I tried with this syntax

...p[images][0]=http://www.example.com/image1.png&amp;p[images][1]=http://www.example.com/image2.jpg...

but it did not work.


You can put as many Open Graph img urls as you want. They need to go inside the head:

<meta property="og:image" content="http://ia.media-imdb.com/rock.jpg"/>

Make sure that img url is absolute :)

source: http://developers.facebook.com/docs/opengraph/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号