首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用共享url的图像参数显示facebook共享图像的问题

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

Stack Overflow用户
提问于 2012-09-05 17:40:53
回答 1查看 3.2K关注 0票数 0

我正在使用facebook共享url,但是在显示url的图像参数时遇到了问题,有人能告诉我这可能出了什么问题吗?

代码语言:javascript
复制
<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/

谢谢

EN

回答 1

Stack Overflow用户

发布于 2012-12-07 07:06:18

试着去掉撇号。您的代码应该如下所示

代码语言:javascript
复制
<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>​
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12286927

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档