我正在尝试使用以下代码邀请登录的 facebook 用户的朋友参加某个活动:-
FB.ui({method: 'apprequests',
message : user.name + " has invited you to an event",
title : "Invite friends to go along with you",
},function(response){
for(i=0;i<response.to.length;i++){
FB.api('/'+eventId+'/invited/'+user.id,'post',function(resp){
alert(resp);});
}
});
但我收到此错误
error:{"message":"(#200) ","type":"OAuthException","code":200}
我有来自用户的 create_event、manage_pages、publish_stream、photo_upload 权限。谁能给我指点我哪里出错了。