facebook ios sdk log:奇怪的消息 [英] facebook ios sdk log : strange message

查看:126
本文介绍了facebook ios sdk log:奇怪的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个按钮来分享一个图像,每次点击它,我在日志中有这个消息,我不明白:

I've got a button to share an image and every times I click it, I've got this message in the log, I dont understand :


2012-08-12 19:21:30.511 AvisOcean [2239:707] FBSessionManualTokenCachingStrategy类的一个实例0xe6b8fe0被释放,而关键值观察者仍然注册。观察信息被泄漏,甚至可能被误认为附加在其他对象上。在NSKVODeallocateBreak上设置一个断点,以便在调试器中停止。这是当前的观察信息:

上下文:0xa5e90,属性:0x245310>
上下文:0xa5e90,属性:0x28c400>

2012-08-12 19:21:30.511 AvisOcean[2239:707] An instance 0xe6b8fe0 of class FBSessionManualTokenCachingStrategy was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info: ( Context: 0xa5e90, Property: 0x245310> Context: 0xa5e90, Property: 0x28c400> )

任何想法?

推荐答案

我有同样的问题。我想我发生了什么,我已经初始化了Facebook的其他地方,当我尝试重新初始化它,并再次调用一个对话代表从另一个实例给我错误。

I was having the same problem. I think what had happend is I had initialized Facebook else where and it was giving me errors when I tried to re-initialize it and again invoke a dialog delegate from a different instance.

我正在保持实际的应用初始化和配置的实例与调用对话框的实例不同。当我更正了文档之后,它被解决了。

The instance where i was keeping actual app initialization and accesstoken were different from the one which was invoking the dialog. When I corrected that after going over the documentation, it was solved.

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

这篇关于facebook ios sdk log:奇怪的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆