【发布时间】:2015-03-06 10:31:16
【问题描述】:
我想在我的 iOS 项目中集成 Facebook 登录 SDK。问题是我在启动应用程序时收到此错误消息。
2015-01-08 18:33:06.591 XXXXX[24994:2533100] *** Terminating app due to uncaught exception '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'
我已经将此行包含在我的info.plist 中,但它仍然无法正常工作。
信息列表
<key>FacebookAppID</key>
<string><1025024xxxxxxxx></string>
<key>FacebookDisplayName</key>
<string>XXXXXX</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb<1025024xxxxxxxx></string>
</array>
</dict>
</array>
我怀疑它没有检测到我的 Facebook ID。我正在使用 Xcode6.1。
【问题讨论】: