I did in my AppDelegate:
@interface AppDelegate : UIResponder <UIApplicationDelegate, FBSessionDelegate> {
Facebook *facebook;
}
And followed the tutorial on Facebook Developers, but it is still doing four-times like:
-
Method declared here (
Facebook.h):(void)fbDidNotLogin:(BOOL)cancelled;
-
Required for direct or indirect protocol
FBSessionDelegate(AppDelegate.h):@interface AppDelegate : UIResponder <UIApplicationDelegate, FBSessionDelegate> { Facebook *facebook; }
Is there something I forgot?
As your AppDelegate states to follow the FBSessionDelegate protocol, it needs to implement all required methods from this protocol.
So you need to implemented the fbDidNotLogin method in your AppDelegate.m like