【发布时间】:2014-09-14 01:53:25
【问题描述】:
我正在使用 facebook 分享。 这是我的示例代码:
function fbShare(url, title, descr, image, winWidth, winHeight) {
var winTop = (screen.height / 2) - (winHeight / 2);
var winLeft = (screen.width / 2) - (winWidth / 2);
window.open('http://www.facebook.com/sharer.php?s=100&p[title]=' + encodeURIComponent(title) + '&p[summary]=' + encodeURIComponent(descr) + '&p[url]=' + encodeURIComponent(url) + '&p[images][0]=' + encodeURIComponent(image), 'sharer', 'top=' + winTop + ',left=' + winLeft + ',toolbar=0,status=0,width=' + winWidth + ',height=' + winHeight);return false;
}
我有一些文章想分享到 facebook。有一些文章成功的标题,内容和图像。但有些文章只共享标题或内容。 我检查了我的元标记,这很好。所以我不知道现在会发生什么。 有人可以帮帮我吗?
非常感谢。
【问题讨论】:
标签: javascript facebook share