I'm trying to add the FBLoginViewDelegate protocol like this:
#import <UIKit/UIKit.h>
#import <FBSDKLoginKit/FBSDKLoginKit.h>
@interface ViewController : UIViewController<FBLoginViewDelegate>
@property (weak, nonatomic) IBOutlet FBSDKLoginButton *loginButton;
@end
However, I'm getting Cannot find protocol declaration for 'FBLoginViewDelegate'
I've added the FBSDKLoginKit.framework to my Xcode project.
These two answers say to add FacebookSDK.framework to my project and import it:
How to make Xcode find file FacebookSDK.h?
Cannot find protocol declaration for 'FBLoginViewDelegate'
However, the zip that I downloaded and extracted doesn't have a FacebookSDK.framework in it. Here is what I have:
and I downloaded it from Facebook here: https://developers.facebook.com/docs/ios/getting-started
Does anyone know how I can fix this? Or why I don't have FacebookSDK.framework? Thanks!
