我正在为我的项目使用ActionScript-Facebook API。 Facebook现在让我们在使用后删除应用邀请。
在他们的文档中,他们有一个JavaScript代码片段来完成我需要做的事情:
FB.api(requestId, 'delete', function(response) {console.log(response);});
冷却。 AS3 API调用如下:
Facebook.api(referID, callback, "POST");
对于我的生活,我不知道该怎么做。我试过了:
Facebook.api(referID, function(){trace("callback");}, "delete");
Facebook.api(referID, function(){trace("callback");});
Facebook.api(referID, {access_token:accessTokenString}, "delete");
这是文档:
https://developers.facebook.com/docs/reference/dialogs/requests/#deleting
答案 0 :(得分:1)
以下内容有助于删除申请请求:
var full_request_id : String = request_id + "_" + user_id;
var method : String = "/" + full_request_id;
Facebook.deleteObject(method, callback);
@see AbstractFacebook.as actionscript-api然后会添加属性'方法'有价值的'删除'到你的电话参数:
protected function deleteObject(method:String, callback:Function = null):void {
var params:Object = {method:'delete'};
api(method, callback, params, URLRequestMethod.POST);
}
if (params.access_token == null) { params.access_token = accessToken; }