简体   繁体   English

iPhone Facebook状态更新第二次失败

[英]iphone facebook status update fails second time

Trying to update facebook status from iPhone app, it updates the status first time but the second time fails giving error message 尝试从iPhone应用程序更新Facebook状态,它第一次更新状态,但是第二次失败并给出错误消息

(com.facebook.sdk error5.)
 Error: HTTP status code: 400

I am using their sample code, here it is 我正在使用他们的示例代码,这是

    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];
                                             }];

                         }
     }];

when i try to reupdate status it fail giving the error mentioned above I am developing for iOS 5 当我尝试更新状态时,无法给出上述错误,我正在为iOS 5开发

If you uploded same status again then may be facebook block it 如果您再次提升了相同的身份,则可能是Facebook阻止了它

try different status. 尝试其他状态。 you cannot update same status again twice. 您不能再次更新同一状态两次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM