Facebook ios sdk log: weird post

I have a button for sharing the image, and every time I click on it, I have this message in the log, I do not understand:

2012-08-12 19: 21: 30.511 AvisOcean [2239: 707] Instance 0xe6b8fe0 of class FBSessionManualTokenCachingStrategy was released, and observers with key values ​​were still registered with it. Observational information has leaked and may even be erroneously tied to another object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here is the current observation information: (Context: 0xa5e90, Property: 0x245310> Context: 0xa5e90, Property: 0x28c400>)

Any ideas?

+5
source share
4 answers

. , , Facebook -, , .

, accesstoken, , . , , .

if (nil == self.facebook) {
    self.facebook = [[Facebook alloc]
                     initWithAppId:FBSession.activeSession.appID
                     andDelegate:nil];

    // Store the Facebook session information
    self.facebook.accessToken = FBSession.activeSession.accessToken;      
    self.facebook.expirationDate = FBSession.activeSession.expirationDate;
}

[self.facebook dialog:@"feed" andParams:params andDelegate:self];
+2

accessToken expirationDate, , . , , Facebook.

// Initiate a Facebook instance
if(!_facebook)
    _facebook = [[Facebook alloc] initWithAppId:FBSession.activeSession.appID andDelegate:nil];

// Store the Facebook session information
[_facebook logout];
_facebook.accessToken = FBSession.activeSession.accessToken;
_facebook.expirationDate = FBSession.activeSession.expirationDate;
+1

, Facebook . SDK 3.0.8. , Facebook tokenCaching, dealloc. , , FB. , .

0

All Articles