我可以问一下我的代码是什么问题,以及为了让整个工作正常工作,我想要做什么,就像当我点击超链接来测试我的代码时它似乎没有工作也没有弹出一个页面将显示我的Facebook朋友,并为我发送通知给我的Facebook app.i需要它弹出,让我选择我想要的朋友,并发送通知
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
//accepting a request
http://apps.facebook.com/depressionapp/?request_ids=[REQUEST_IDs]
//reading requests
{
request: 'REQUEST_OBJECT_ID'
to:[array of USER_IDs] // what am i suppose to add here also?
}
</script>
<script>
FB.init({
appId:'445459218940505',
cookie:true,
status:true,
xfbml:true,
oauth : true,
frictionlessRequests : true
});
function FacebookInviteFriends()
{
FB.ui({
method: 'apprequests',
message: 'Your Message diaolog'
to:{'edmundOHJK'},
action_type:'send',
object_id:''
}, function(response){
console.log(response);
});
}
</script>
<script type='text/javascript'>
if (top.location!= self.location)
{
top.location = self.location
}
</script>
<div id="fb-root"></div>
<a href="#" onclick="FacebookInviteFriends();"> 'Facebook Invite Friends Link
</a>
</html>