Facebook连接 - 整合到iOS应用程序错误

问题描述:

我目前正在尝试使用Xcode将Facebook整合到我的iOS应用程序中。我试图按照Facebook教程https://developers.facebook.com/docs/mobile/ios/build/ 但是当我尝试添加Facebook类时,我收到一个错误。我已经成功地将fbconnect文件夹添加到我的应用程序以及src目录中,以将其添加到Build Settings中的页眉搜索路径中。我刚刚开始教程,并且已经出现错误。请帮助Facebook连接 - 整合到iOS应用程序错误

这是我收到的问题的代码... //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 

如何加入这一行代码的顶部?

#import "Facebook.h

+0

该类现在已被公认,但没有找到Facebook.h文件。 –

尝试此链接

Facebook iOS SDK

希望这会很有用