0
我想在Facebook分享按鈕中提供不同的網址,而不是當前網頁網址。facebook分享按鈕的不同網址
我試圖在asp.net後面更改url,但我沒有成功。
如果有人可以幫忙,我會很感激。
我用過的一些代碼,你可以看到下面的代碼。
這是前側腳本
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript">
</script>
<script type="text/javascript">
function fbs_click() {
u = location.href;
t = document.title;
window.open('http://www.facebook.com/share.php?u=' + encodeURIComponent(u) +
'&t=' + encodeURIComponent(t), 'share', 'toolbar=0,status=0,width=626,height=436');
return false;
}
</script>
這是分享按鈕
<a name="fb_share" runat="server" id="aFbShare" type="button" class="sharelink">Paylaş</a>
這是我做的背後側
string wishListUrl = SEOHelper.GetWishlistUrl(NopContext.Current.User.CustomerGuid);
aFbShare.Attributes.Add("onclick", "fbs_click()");
aFbShare.Attributes.Add("target", "_blank");
aFbShare.HRef = "http://www.facebook.com/share.php?u=" + wishListUrl;
請提高您的接受率 – 2012-07-24 12:34:30