swift 2 parse facebookSDK ios9

前端 未结 4 876
旧巷少年郎
旧巷少年郎 2021-01-31 08:50

I am trying to Log In a user via Facebook. In the previous version of swift 1.2 everything worked perfectly, but after migration I can\'t seem to log in via my FB account I am s

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-31 09:18

    Follow this link to see Facebook's reccommended updates for iOS 9 https://developers.facebook.com/docs/ios/ios9

    In order to fix this specific error

    -canOpenURL: failed for URL: "fbauth://authorize/?client_id=... error: "This app is not allowed to query for scheme fbauth"
    

    For Facebook SDK version 4.6+ go to your info.plist file and add the following:

    LSApplicationQueriesSchemes
        
            fbapi
            fb-messenger-api
            fbauth2
            fbshareextension
        
    

    For version 4.5 or older:

    LSApplicationQueriesSchemes
    
        fbapi
        fbapi20130214
        fbapi20130410
        fbapi20130702
        fbapi20131010
        fbapi20131219    
        fbapi20140410
        fbapi20140116
        fbapi20150313
        fbapi20150629
        fbauth
        fbauth2
        fb-messenger-api20140430
    
    

提交回复
热议问题