Html 如何将自定义参数传递给 Facebook 分享链接
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14249266/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to pass custom parameters to Facebook share link
提问by Michael J. Calkins
Possible Duplicate:
How does Facebook Sharer select Images?
可能的重复:
Facebook Sharer 如何选择图像?
How do I make a link that I can customize the title, image, link, and description that's shared?
如何制作可以自定义共享的标题、图像、链接和描述的链接?
回答by Michael J. Calkins
This no longer works as of 18/12/2013. See comments for alternatives.
从 2013 年 12 月 18 日起,这不再有效。有关替代方案,请参阅评论。
http://www.facebook.com/sharer.php?s=100&p[title]=titleheresexily&p[url]=http://www.mysexyurl.com&p[summary]=mysexysummaryhere&p[images][0]=http://www.urltoyoursexyimage.com
http://www.facebook.com/sharer.php?s=100&p[title]=titleheresexily&p[url]=http://www.mysexyurl.com&p[summary]=mysexysummaryhere&p[images][0]=http://www.urltoyoursexyimage.com
http://blog.cjgammon.com/?p=336
http://blog.cjgammon.com/?p=336
I was tired of scouring sites on google for this.
我厌倦了为此在谷歌上搜索网站。
回答by Robin Manoli
You do so by using facebook's open graph meta tags. Take a look here: http://davidwalsh.name/facebook-meta-tags
您可以通过使用 facebook 的开放图元标签来实现。看看这里:http: //davidwalsh.name/facebook-meta-tags