0

我目前正在尝试使用 Xcode 将 Facebook 集成到我的 iOS 应用程序中。我正在尝试遵循https://developers.facebook.com/docs/mobile/ios/build/上的 Facebook 教程, 但是当我尝试添加 Facebook 类时,我收到一个错误。我已成功将 fbconnect 文件夹添加到我的应用程序中,并将 src 目录添加到构建设置中的标题搜索路径中。我刚刚开始本教程,并且已经收到错误消息。请帮忙

这是我收到问题的代码... //AppDelegate.h

#import <UIKit/UIKit.h>
#import "FBConnect.h"

@class ViewController;

@interface AppDelegate : NSObject <UIApplicationDelegate,FBRequestDelegate,FBSessionDelegate,FBDialogDelegate>{

Facebook *fb; //This is where the error is

}

@property (strong, nonatomic) UIWindow *window;

@property (strong, nonatomic) ViewController *viewController;

@property(nonatomic,retain)Facebook *fb;   //This is where the error is
@end
4

1 回答 1

0

将这一行添加到代码的顶部怎么样?

" #import "Facebook.h"

于 2012-05-18T01:12:38.357 回答