FBSDKApplicationDelegate Class Reference
Inherits from | NSObject |
Declared in | FBSDKApplicationDelegate.h |
Overview
The FBSDKApplicationDelegate is designed to post process the results from Facebook Login or Facebook Dialogs (or any action that requires switching over to the native Facebook app or Safari).
The methods in this class are designed to mirror those in UIApplicationDelegate, and you should call them in the respective methods in your AppDelegate implementation.
Instance Methods
application:didFinishLaunchingWithOptions:
Call this method from the [UIApplicationDelegate application:didFinishLaunchingWithOptions:] method of the AppDelegate for your app. It should be invoked for the proper use of the Facebook SDK.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
Discussion
Parameter application: The application as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:].
Parameter launchOptions: The launchOptions as passed to [UIApplicationDelegate application:didFinishLaunchingWithOptions:].
Returns: YES if the url was intended for the Facebook SDK, NO if not.
Declared In
FBSDKApplicationDelegate.h
application:openURL:options:
Call this method from the [UIApplicationDelegate application:openURL:options:] method of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs.
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
Discussion
Parameter application: The application as passed to [UIApplicationDelegate application:openURL:options:].
Parameter url: The URL as passed to [UIApplicationDelegate application:openURL:options:].
Parameter options: The options dictionary as passed to [UIApplicationDelegate application:openURL:options:].
Returns: YES if the url was intended for the Facebook SDK, NO if not.
Declared In
FBSDKApplicationDelegate.h
application:openURL:sourceApplication:annotation:
Call this method from the [UIApplicationDelegate application:openURL:sourceApplication:annotation:] method of the AppDelegate for your app. It should be invoked for the proper processing of responses during interaction with the native Facebook app or Safari as part of SSO authorization flow or Facebook dialogs.
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
Discussion
Parameter application: The application as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:].
Parameter url: The URL as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:].
Parameter sourceApplication: The sourceApplication as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:].
Parameter annotation: The annotation as passed to [UIApplicationDelegate application:openURL:sourceApplication:annotation:].
Returns: YES if the url was intended for the Facebook SDK, NO if not.
Declared In
FBSDKApplicationDelegate.h