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

I am using the latest version of Facebbok Sdk, i.e. 4.8.0, for sharing photos from my application. Everything works fine if the Facebook application is installed on my device, but it displays a warning

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

if I uninstall the Facebook application and I can no longer share photos. I also set up 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 also used various links, but nothing helped me. Thanx for any help in advance.

+4
source share
1 answer

Do you have this

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fb518113611684599</string>
            <string>fbauth2</string>
        </array>
    </dict>
    <dict>
+2
source

Source: https://habr.com/ru/post/1621057/


All Articles