(null):"_ ACFacebookAppIdKey",引自:ERROR

Har*_*ish 0 sdk facebook ios6

我正在尝试按照 https://developers.facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/文档获取访问令牌以代表用户访问Facebook服务.

添加后 - (void)sessionStateChanged:(FBSession*)会话状态:(FBSessionState)状态错误:(NSError*)错误

    - (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI {
    return [FBSession openActiveSessionWithReadPermissions:nil
                                          allowLoginUI:allowLoginUI
                                     completionHandler:^(FBSession *session,
                                                         FBSessionState state,
                                                         NSError *error) {
                                         [self sessionStateChanged:session
                                                             state:state
                                                             error:error];
                                     }];
    }
Run Code Online (Sandbox Code Playgroud)

我得到(null):"_ ACFacebookAppIdKey",引用自:ERROR,它们是其中的24个.我不确定到底发生了什么.

有人可以帮我解决这个问题吗?

谢谢

Har*_*ish 10

好吧,我明白了.它主要是错过了框架.根据

https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/ documentation,

我们需要添加3个框架(AdSupport,Accounts,Social).但是,我们应该在libsqllite3.dylib列表中添加一个以及上面的3到framework文件夹.