swift 2 parse facebookSDK ios9

kalafun picture kalafun · Jun 9, 2015 · Viewed 15.1k times · Source

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 still getting the error saying:

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

Can you please help me with that?

Answer

Mark A. Durham picture Mark A. Durham · Jun 10, 2015

From the WWDC 2015 "Privacy and Your App" video, add the following to your info.plist file:

    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>fbauth</string>
    </array>