2016-09-14 2 views
1

In AppDelegateWas nutzt FBSDKApplicationDelegate während der Facebook-Anmeldung?

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 
     FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions) 

     return true 
    } 



    func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool { 

    return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation) 
    } 

func applicationDidBecomeActive(application: UIApplication) { 
     FBSDKAppEvents.activateApp() 


    } 

Auch ich bin mit diesen Methoden nicht, arbeitet Anmeldung feine und in meinem Abmeldeverfahren

FBSDKAccessToken.setCurrentAccessToken(nil) 
     FBSDKProfile.setCurrentProfile(nil) 
     loginView.logOut() 

Was dann Anwendung dieser Methoden in AppDelegate Klasse ist?

Antwort

2

Im Allgemeinen FBSDKApplicationDelegate Postprozess die Ergebnisse von Facebook Login oder Facebook Dialoge (oder jede Aktion, die Umstellung auf die native Facebook-App oder Safari erfordert). Weitere Erläuterungen finden Sie unter official doc

+0

Können Sie bitte diese URL .. es ist etwas anders gesagt – RakeshDipuna

+0

http://StackOverflow.com/Questions/16226240/Handling-Different-URL-Schemes-in-IOS-Facebook-and -Instagram – RakeshDipuna