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 に答える