iOS 9 Facebook login simulator -canOpenURL: failed for URL: “fbauth2:///” - error: “(null)”

前端 未结 9 2628
情话喂你
情话喂你 2020-11-27 19:38

I\'ve updated to Xcode 7 and the latest iOS SDK. I\'ve added the appropriate entries in my app\'s plist:

My app\'s Facebook login works fine on device. Howe

相关标签:
9条回答
  • 2020-11-27 20:06

    I downgraded my Facebook SDK from version 4.7 to 4.5.1 and worked fine on both Simulator and iphone device(without Facebook app installed).

    0 讨论(0)
  • 2020-11-27 20:06

    1] Authentication in Developer.facebook and generate Facebook Id like :=>460481580805052

    2] Set Bitcode : No From Build Settings

    3] Set up Plist File

    <key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>fb460481580805052</string>
            </array>
        </dict>
    </array>
    
    <key>FacebookAppID</key>
    <string>460481580805052</string>
    
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
        <dict>
            <key>akamaihd.net</key>
            <dict>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
                <false/>
            </dict>
            <key>facebook.com</key>
            <dict>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
                <false/>
            </dict>
            <key>fbcdn.net</key>
            <dict>
                <key>NSIncludesSubdomains</key>
                <true/>
                <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
                <false/>
            </dict>
        </dict>
    </dict>
    
    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>fbapi</string>
        <string>fbapi20130214</string>
        <string>fbapi20130410</string>
        <string>fbapi20130702</string>
        <string>fbapi20131010</string>
        <string>fbapi20131219</string>
        <string>fbapi20140410</string>
        <string>fbapi20140116</string>
        <string>fbapi20150313</string>
        <string>fbapi20150629</string>
        <string>fbauth</string>
        <string>fbauth2 </string>
        <string>fb-messenger-api20140430</string>
        <string>fb-messenger-platform-20150128</string>
        <string>fb-messenger-platform-20150218</string>
        <string>fb-messenger-platform-20150305</string>
    </array>
    

    4] Download 4 Sdk Framework like

    =>Bolts.framework
    =>FBSDKCoreKit.framework
    =>FBSDKLoginKit.framework
    =>FBSDKShareKit.framework
    
    0 讨论(0)
  • please use LSApplicationQueriesSchemes or affffd into plist your app id .

    0 讨论(0)
提交回复
热议问题