我正在開發一個PhoneGap 2.2.0/IOS應用程序,並需要使用FaceBook插件'我按照GIT中所述的安裝過程,當我使用從示例文件夾 「簡單」的樣品我得到的設備準備好對話,告訴我把我的appid到位,我這樣做,然後我按OK和應用程序是通過IOS與此錯誤拋出:PhoneGap/Cordova 2.2.0 Facebook插件在IOS FB.init失敗
'com.facebook.sdk:InvalidOperationException', reason: 'FBSession: No AppID provided; either pass an AppID to init, or add a string valued key with the appropriate id named FacebookAppID to the bundle *.plist'
,聽到是我FB.init
document.addEventListener('deviceready', function() {
try {
alert('Device is ready! Make sure you set your app_id below this alert.');
FB.init({ appId: "fb245065455620705", nativeInterface: CDV.FB, useCachedDialogs: false });
document.getElementById('data').innerHTML = "";
} catch (e) {
alert(e);
}
}, false);
這是項添加到我的plist文件
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.mdsitg.amisrael</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb245065455620705</string>
</array>
</dict>
</array>
任何幫助,歡迎!
這是我第一次嘗試,我刪除它,仍然得到相同的結果,你知道一個很好的示例準備好使用項目的ios,即時消息這個問題4天現在沒有成功 –
,你可以看到我發現我的問題,你的評論是正確的,我沒有提供所有的plist,所以你不能看到我在項目中遇到的所有問題,無論如何,你是對的,你告訴我 –