Javascript 好友请求错误
我正在尝试创建一个包含多个好友请求的iframe应用程序。对话框正在显示,但您选择了好友,提交时会告诉您没有发送请求,但该人会收到请求,当他们接受时,会将他们带到应用程序而不是风扇页面。我需要的是重定向到风扇页面而不是应用程序的请求,并修复no-invests-sent错误Javascript 好友请求错误,javascript,facebook,Javascript,Facebook,我正在尝试创建一个包含多个好友请求的iframe应用程序。对话框正在显示,但您选择了好友,提交时会告诉您没有发送请求,但该人会收到请求,当他们接受时,会将他们带到应用程序而不是风扇页面。我需要的是重定向到风扇页面而不是应用程序的请求,并修复no-invests-sent错误 // 0) { 对于(变量i=0;i apprequest用于应用程序请求,而不是风扇页面 请阅读更多 及 <div id="fb-root"></div>
// 0) {
对于(变量i=0;i
apprequest用于应用程序请求,而不是风扇页面
请阅读更多
- 及
<div id="fb-root"></div>
<a href="#" onclick="sendRequests();return false;"><img src="images/invite.jpg" width="136" height="33"></a>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script type='text/javascript'>//<![CDATA[
FB.init({
appId: 'appIDkey',
status: true,
cookie: true,
xfbml: true
});
function sendRequests() {
FB.ui({
method: 'apprequests',
message: 'Invite as many friends to win VIP tickets to Sting Festival!!!.',
data: 'tracking information for the user'
}, function(response) {
if (response != null && response.request_ids && response.request_ids.length > 0) {
for (var i = 0; i < response.request_ids.length; i++) {
alert("Invited: " + response.request_ids[i]);
}
} else {
alert('No invitations sent');
}
});
}
//]]>
</script>