从Facebook好友谁接受了我的邀请请求
问题描述:
private function InviteMyFriends(e:MouseEvent):void{
var dat:Object = new Object();
dat.message = "Let's invite friends for our Super Krish QuizGame Facebook App to get bonus points";
dat.title = 'Super Krish QuizGame Facebook App';
// filtering for non app users only
dat.filters = ['app_non_users'];
//You can use these two options for diasplaying friends invitation window 'iframe' 'popup'
Facebook.ui('apprequests', dat, onUICallback, 'popup');
}
private function onUICallback(dat):void{
var result:Object = dat;
if(result == null){
mtline.trace2_txt.text = "User closed the pop up window without inviting any friends";
return
}
var invitedUsers:Array = new Array();
invitedUsers = result.request_ids as Array;
mtline.trace2_txt.text ="You Have Invited " + invitedUsers.length+ " friends";
//Simple if else if you want user to invite certain amount of friends
if(invitedUsers.length > 1){
mtline.trace2_txt.text = "GREAT, USER IS GENERATING TRAFFIC";
}else{
mtline.trace2_txt.text = "No Good, User invited only one friend ";
}
}
嗨获得通知,在这里我已经使用这个代码到我的Facebook游戏邀请发送到使用Facebook的API与工作完美动作scripting.its我的朋友,但我需要找出我的朋友谁接受了我的邀请,因为我必须向邀请被接受后向他的朋友发送邀请的用户提供500点积分。请对此有所帮助。从Facebook好友谁接受了我的邀请请求
在此先感谢
答
你提议的工作流程是明确反对Facebook的政策和您的应用程序可能会失去发送请求的结果,仅仅是知道的,你继续进行之前,任何的能力。
至于如何跟踪已接受的请求,当用户点击“接受”时,您已经必须读取和删除请求,因此您应该在发送时记录请求ID并更新记录处理已接受的请求