1
我可以选择在我的网站上邀请Facebook朋友,我使用下面给出的代码。但问题是它在弹出窗口中打开,Chrome和Firefox会阻止弹出窗口。我如何让它出现在新标签页或窗口中?或者有什么办法让我的弹出不会被阻止?我可以避免在您的网站上阻止“邀请您的Facebook好友”弹出窗口被阻止吗?
<html>
<head>
<title>my website</title>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js">
</script>
<script>
FB.init({
appId:'xxxxxxxxxxxxxxx', cookie:true,
status:true, xfbml:true
});
FB.ui({ method: 'apprequests',
message: 'Take a look at this new website.'});
</script>
</body>
</html>