Facebook SDK4.0 [FBSDKInternalUtility isFacebookAppInstalled]:无法识别的选择器发送到类

时间:2015-08-26 04:50:32

标签: ios facebook

代码:

FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
    [login logInWithReadPermissions: @[@"public_profile"]
     handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
         if (error) {
             NSLog(@"Process error");
         } else if (result.isCancelled) {
             NSLog(@"Cancelled");
         } else {
             NSLog(@"result:%@", result);

             if ([FBSDKAccessToken currentAccessToken]) {
                 [[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:@{@"fields": @"id, name, first_name, last_name, birthday, picture"}]
                  startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
                      if (!error) {
                          NSLog(@"fetched user:%@", result);


                      }
                  }];
             }
             NSLog(@"Logged in");
         }
     }];

我使用上面的代码进行facebook登录集成。它提供了预测" + [FBSDKInternalUtility isFacebookAppInstalled]:无法识别的选择器发送到班级"。我哪里出错?任何帮助将不胜感激。

0 个答案:

没有答案