Facebook closeAndClearTokenInformation

时间:2013-08-02 03:23:37

标签: iphone ios facebook ios6

我有从facebook登出的问题。它应该注销当前用户并返回主页面,但现在它返回到主页面,但它会弹回当前屏幕,其中包含我已使用closeAndClearTokenInformation清除的空字段。有人请帮忙。谢谢。

- (IBAction)LogOutAction {

       [appDelegate readPersonsFromDatabase:kPERSON_TYPE_OWNER withPersonName:@"" withPersonBirthday:NO];
    if ([appDelegate.myIPPersonArray count] > 0) {
        self.myIPPerson = [[IP_PERSON alloc] initWithInternalNum:@"1" personType:kPERSON_TYPE_OWNER personID:@"" personName:@"" personCompany:@"" personAddress1:@"" personAddress2:@"" personCity:@"" personState:@"" personPostcode:@"" personCountry:@"" personEmail:@"" personPhoto:@"" personDOB:@"" userDef1:@"" userDef2:@"" userDef3:@"" userDef4:@"" userDef5:@"" userDef6:@"" userDef7:0 userDef8:0 status:@"0"];
        [self.myIPPerson setPersonCredit:@"0"];
        [appDelegate insertOrUpdatePersonToDatabase:self.myIPPerson];
    }
    [FBSession.activeSession closeAndClearTokenInformation];
    [self.navigationController popToRootViewControllerAnimated:YES];
}

0 个答案:

没有答案