Facebook登录:如何设置IOS应用程序的登录回调?

时间:2015-08-13 06:08:49

标签: ios facebook-graph-api facebook-login

我使用面向IOS的Facebook SDK在我的IOS应用程序中集成了Facebook登录。它工作正常,但我想将回调网址设置为我的服务器地址。我正在使用swift进行开发。我怎样才能做到这一点?

AppDelegate.swift

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        // Override point for customization after application launch.
        return FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
    }

   func application(application: UIApplication,
       openURL url: NSURL,
       sourceApplication: String?,
       annotation: AnyObject?) -> Bool {
           return FBSDKAplicationDelegate.sharedInstance().application(
               application,
               openURL: url,
               sourceApplication: sourceApplication,
               annotation: annotation)
   }

0 个答案:

没有答案