使用共享URL的图像参数显示facebook共享图像的问题

时间:2012-09-05 17:40:54

标签: html facebook

我正在使用facebook共享网址,但是在显示网址的图片参数时遇到问题,是否有人可以告知我可能出错的地方?

HTML

<a title="Share this on Facebook"
      href="http://www.facebook.com/sharer.php?
      s=100
&p[url]='http://www.test.com'
      &p[images][0]='http://www.meandmrsjoneshotel.com/wp-content/themes/child-theme/img/fb-thumbs/home.png'
      &p[title]='This is the title'
      &p[summary]='This is the share description'"
      target="_blank" class="fb ir">
      Share this page on Facebook
      </a>​

JS Fiddle http://jsfiddle.net/pUMZb/

由于

1 个答案:

答案 0 :(得分:0)

尝试删除撇号。你的代码应该是这样的

<a title="Share this on Facebook"
      href="http://www.facebook.com/sharer.php?
      s=100
&p[url]='http://www.test.com'
      &p[images][0]=http://www.meandmrsjoneshotel.com/wp-content/themes/child-theme/img/fb-thumbs/home.png
      &p[title]='This is the title'
      &p[summary]='This is the share description'"
      target="_blank" class="fb ir">
      Share this page on Facebook
      </a>​