登录Facebook时出现com.facebook.sdk错误2

Seh*_*Lee 5 iphone ios cordova

我试图使用Facebook插件的电话差距但收到错误消息

"操作无法完成com.facebook.error 2"


我想我的捆绑标识符与Facebook不匹配,但我不确定
我错过了捆绑标识符匹配...检查我的代码是否缺少捆绑标识符匹配的东西?

deviceready功能:

document.addEventListener('deviceready', function() {
     try {
       alert('Device is ready! Make sure you set your app_id below this alert.');
       FB.init({ appId: "120048634820284", nativeInterface: CDV.FB, useCachedDialogs: false });
       document.getElementById('data').innerHTML = "";
     } catch (e) {
            alert(e);
     }
}, false);
Run Code Online (Sandbox Code Playgroud)

info.plist文件

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLName</key>
        <string>com.mycompany.myapp</string>
        <key>CFBUndleURLSchemes</key>
        <array>
            <string>fb120048634820284</string>
        </array>
    </dict>
</array>
Run Code Online (Sandbox Code Playgroud)

Dan*_*ert 7

我有同样的错误,最后解决了它.该应用程序配置为沙盒模式,我使用的Facebook用户未添加到测试人员组.

管理员可以在此处解决此问题:https://developers.facebook.com/apps