尝试从 iPhone 应用程序更新 facebook 状态,它第一次更新状态,但第二次失败给出错误消息
(com.facebook.sdk error5.)
Error: HTTP status code: 400
我正在使用他们的示例代码,这里是
NSString *message = [NSString stringWithFormat:@"Check Out location at my App"];
[FBSession openActiveSessionWithPermissions:[NSArray arrayWithObject:@"publish_actions"] allowLoginUI:YES
completionHandler:^(FBSession *session,
FBSessionState status,
NSError *errr)
{
[ FBSession setActiveSession:session];
// session might now be open.
if (FBSession.activeSession.isOpen) {
[FBRequestConnection startForPostStatusUpdate:message
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
[self showAlert:message result:result error:error];
}];
}
}];
当我尝试重新更新状态时,它会出现上面提到的错误,我正在为 iOS 5 开发