0

我正在使用 facebook 分享 url,但无法显示 url 的图像参数,任何人都可以告诉我哪里可能出错了吗?

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 小提琴 http://jsfiddle.net/pUMZb/

谢谢

4

1 回答 1

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>​
于 2012-12-07T07:06:18.567 回答