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