简体   繁体   中英

-canOpenURL: failed for URL: “fbauth2:/” - error: “(null)”

I am using the latest version of Facebbok Sdk,ie 4.8.0, for sharing the photos from my app. Everything is working fine if I have Facebook App installed on my device, but it is showing warning

-canOpenURL: failed for URL: "fbauth2:/" - error: "(null)"

if I uninstall Facebook App, and I am no longer able to share photos. I have also configured my info.plist like this ->

<key>LSApplicationQueriesSchemes</key>
    <array>
        <string>fbapi</string>
        <string>fb-messenger-api</string>
        <string>fbauth2</string>
        <string>fbshareextension</string>
    </array>

I have also gone through various links, but nothing helped me. Thanx for any help in advance.

Have u added this one

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb518113611684599</string>
            <string>fbauth2</string>
        </array>
    </dict>
    <dict>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM