[英]How to cusomize facebook's sharer.php to sharer images on chats and Timeline
以下是用於在Facebook中共享圖像的代碼:
<div><a href="#"
onclick="
window.open(
'https://www.facebook.com/sharer/sharer.php?m2w&u=[[Link to share]]&mode=message',
'facebook-share-dialog',
'width=626,height=436');
return false;"><img src="send.png(the image clicking on which the sharer window will open)"></a></div>
上面的代碼將以私人消息模式打開facebook sharer窗口。
如果我們在共享鏈接后刪除&mode =消息 ,則共享者窗口將在您的時間軸上顯示共享。 任何人都可以幫助我如何讓共享窗口打開,默認情況下“分享朋友時間線”或“分享群組”。
我不確定你要的是什么,
如果我們在共享鏈接后刪除&mode =消息,則共享者窗口將在您的時間軸上顯示共享。 任何人都可以幫助我如何讓共享窗口打開,默認情況下“分享朋友時間線”或“分享群組”。
無論如何,如果你想顯示默認顯示選項“分享在朋友的時間線上”,請添加&mode=friend
到分享結束對話框以及組使用&mode=group
<a id="share" href="#" data-share="https://www.facebook.com/sharer/sharer.php?m2w&u=http://flatuicolors.com/&mode=group" class="groupBtn">Share in Group</a>
<a id="share" href="#" data-share="https://www.facebook.com/sharer/sharer.php?m2w&u=http://flatuicolors.com/&mode=friend" class="friendBtn">Share on Friend's Timeline</a>
為了通過私人消息“共享”添加&mode =消息
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.