I think it is a very easy part, but I can`t understand..
I see "https://developers.facebook.com/docs/facebook-login/ios" and I want to add Facebook login to the project.
However, adding the source code to the App Delegate is difficult.
I added it this simple, but it does not work.
import FBSDKCoreKit
class AppDelegate: UIResponder, UIApplicationDelegate
{
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[FBSDKApplicationDelegate sharedInstance]
application:application
didFinishLaunchingWithOptions:launchOptions];
return YES;
}
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
annotation:options[UIApplicationOpenURLOptionsAnnotationKey]
];
return handled;
}
}
Please tell me where to put the source code correctly.