iOS Facebook SDK: An active access token must be used to query information about the current user

前端 未结 5 2187
温柔的废话
温柔的废话 2020-12-30 06:01

I have followed many examples and looked at many questions regarding this access token error, but I can\'t seem to find out why I am getting it or how to fix it.

I i

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-30 06:49

    you can try this too, works for me

    func application(_ application: UIApplication,
                          open url: URL, 
                           options: [String: AnyObject]) -> Bool
    {
        let delegate = FBSDKApplicationDelegate.sharedInstance()
    
        return delegate.application(application, open: url, 
                                    sourceApplication: options["UIApplicationOpenURLOptionsSourceApplicationKey"] as! String, 
                                           annotation: options["UIApplicationOpenURLOptionsAnnotationKey"])
    }
    

提交回复
热议问题