我正在按照此处的文档创建“邀请”apprequest。这是我的代码:
let req = FBSDKGraphRequest(graphPath: "me/apprequests", parameters: ["action_type": "INVITE", "message": "this guy is inviting you", "ids": "comma separated string of ids and invite tokens", HTTPMethod: "POST")
req.startWithCompletionHandler({ (connection: FBSDKGraphRequestConnection!, result: AnyObject!, error: NSError!) in
})
我收到了这个错误:
<FBSDKGraphRequestConnection: 0x13e531300, 1 request(s): (
parameters: {
"access_token" = <a_token>;
"action_type" = INVITE;
format = json;
ids =
"<invite_token>";
"include_headers" = false;
message = "this guy is inviting you";
sdk = ios;
}>
)>
Error Domain=com.facebook.sdk.core Code=8 "(null)" UserInfo={com.facebook.sdk:FBSDKGraphRequestErrorCategoryKey=0, com.facebook.sdk:FBSDKGraphRequestErrorHTTPStatusCodeKey=400, com.facebook.sdk:FBSDKErrorDeveloperMessageKey=Invalid token: "me". An ID has already been specified., com.facebook.sdk:FBSDKGraphRequestErrorGraphErrorCode=2500, com.facebook.sdk:FBSDKGraphRequestErrorParsedJSONResponseKey={
body = {
error = {
code = 2500;
"fbtrace_id" = At0eLFYxe68;
message = "Invalid token: \"me\". An ID has already been specified.";
type = OAuthException;
};
};
code = 400;
}}