0
我正在使用以下JS代碼在Facebook上分享。Facebook自定義分享按鈕不顯示說明
function openFbPopUp() {
var fburl = 'http://54.251.121.6/cnc/cupcakes-n-chai-side-table';
var fbimgurl = 'http://imageURL';
var fbtitle = 'Your title';
var fbsummary = "This is the description blah blah blah";
var sharerURL = "http://www.facebook.com/sharer/sharer.php?s=100&p[url]=" + encodeURI(fburl) + "&p[images][0]=" + encodeURI(fbimgurl) + "&p[title]=" + encodeURI(fbtitle) + "&p[summary]=" + encodeURI(fbsummary);
window.open(
sharerURL,
'facebook-share-dialog',
'width=626,height=436');
return false;
}
在彈出窗口中,說明文字看起來很好。但是當在臉書上看到時,說明並未顯示
分享時,說明(摘要文本)可以看到。
但是描述(概要)不顯示在臉書上。
謝謝@Aashish Tripathee。我無法使用元描述標記,因爲有些頁面需要在頁面的不同塊上使用3-4個不同的元描述標記。 –
然後嘗試使用JS SDK。當涉及到像你的情況一樣分享多個內容時,這絕對有效並且非常好。 – tripatheea