NativeScript / nativescript-facebook

NativeScript plugin, wrapper of native Facebook SDK for Android and iOS
Apache License 2.0
79 stars 50 forks source link

Error: The operation couldn’t be completed. (com.facebook.sdk.core error 3.) #55

Closed bonlemuel closed 7 years ago

bonlemuel commented 7 years ago

Hi! Great Nativescript plugin! I've managed to follow all guide. But I'm getting this error. Did I miss something? Thanks!

angeltsvetkov commented 7 years ago

Hi, @bonlemuel. I am sorry for the problem you experienced with nativescript-facebook plugin. Could you share for which platform (Android/iOS) you faced this issue? Also, whether your NativeScript app is Angular or not? Did you manage to build and run any of the demo apps?

bonlemuel commented 7 years ago

It runs on Angular. I'm currently testing it on iOS. But I've managed to solved the issue by adding the code below.

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>fbxxxxxxxxxxxxxxxxx</string>
        </array>
    </dict>
</array>
<key>FacebookAppID</key>
<string>{AppID}</string>
<key>FacebookDisplayName</key>
<string>{AppName}</string>
<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbauth2</string>
    <string>fbapi</string>
    <string>fb-messenger-api</string>
    <string>fbshareextension</string>
</array>

Thank you.

angeltsvetkov commented 7 years ago

Awesome!