我需要在我的朋友墙上发帖,我正在使用facebook sdk 4.2,但是如果不能导入甚至需要使用下面的类方法在墙上发布的课程FBSDKWebDialog
+ (instancetype)showWithName:(NSString *)name
parameters:(NSDictionary *)parameters
delegate:(id<FBSDKWebDialogDelegate>)delegate;
我已导入以下类
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
#import <FBSDKShareKit/FBSDKShareKit.h>
我正在使用可可豆荚为facebook sdk 4.2
pod'FBSDKCoreKit','〜&gt; 4.2'
pod'FBSDKLoginKit','〜&gt; 4.2'
pod'FBSDKShareKit','〜&gt; 4.2'
帮助!!
答案 0 :(得分:0)
检查您是否做了以下事情: -
1. Included the latest Facebook SDK 2. Included the AdSupport, Social, Account, Security and libsqlite3.dylib. 3. Added the sample code from Facebook. 4. Added -lsqlite3.0 -ObjC to Other Linker Flags as well 5. Added the app id to the plist 6. Added the FBUserSettingsViewResources bundle and FacebookSDKResources.bundle to the project