我正在使用以下代码在 facebook 上分享图片,但是当显示对话框时它不显示图片,上传后 facebook 只显示图片链接。
<a name="share" type="button" href="https://www.facebook.com/sharer.php?u=www.example.com/myimage" target="_blank">share</a>
最佳答案
这应该是这样的
<a href="http://www.facebook.com/sharer.php?s=100&p[title]=Our Site Title&p[url]=http://us.oursite.com/default.aspx&p[images][0]=http://www.history.malc.eu/globe.jpg&p[summary]=Our facebook description that is used on the FB share page." target="_blank">
Share this
</a>
关于php - 分享照片时 Facebook 不显示缩略图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17618398/