[英]unable to authorize using Facebook ios sdk v3 when FB Native App is installed in the device
Hi Guys I am having a problem with the Facebook ios SDK 3.0.6 beta . 嗨,大家好我在Facebook ios SDK 3.0.6 beta中遇到问题。 I have created a Project using this Facebook SDK and was working ok till the Facebook native iPhone App was not installed.
我已经使用此Facebook SDK创建了一个项目,并且在未安装Facebook本机iPhone App之前可以正常工作。 When I installed the Facebook App I can no longer authorize my App.
安装Facebook App后,我将无法再授权我的App。 When I try to authorize, the authorization is done in the Facebook's native app instead of Safari.
当我尝试授权时,授权是在Facebook的本机应用程序而非Safari中完成的。 I get an error "The operation couldn't be completed.(com.facebook.FBiOSSDK error 2.)"
我收到错误消息“操作无法完成。(com.facebook.FBiOSSDK错误2。)”
I am also receiving this error url: 我也收到以下错误网址:
fb4* * *2://authorize#error_description=Invalid%2BIOS%2Bbundle%2BID&error=unknown%5Ferror fb4 * * * 2:// authorize#error_description =无效%2BIOS%2Bbundle%2BID&error =未知%5Ferror
How can I solve this problem? 我怎么解决这个问题? any idea?
任何想法?
I am using xcode 4.2 in OSX Snow Leopard 我在OSX Snow Leopard中使用xcode 4.2
It sounds like your settings under developer.facebook.com for the app is incorrect. 听起来您在developer.facebook.com下针对该应用的设置不正确。
Make sure that under your app settings that; 确保在您的应用设置下;
"iOS bundle ID" under "Native iOS App" is set to your apps package name. 将“本机iOS应用程序”下的“ iOS捆绑包ID”设置为您的应用程序包名称。 That way the native app know which app to redirect back to once auth is complete.
这样,本机应用程序将在身份验证完成后知道重定向回哪个应用程序。
I have the same problem like you, I double check my iOS Bundle ID as Pork said and found a missed letter, after fixing it works ok. 我遇到了与您相同的问题,我按照Pork的说明再次检查了我的iOS捆绑软件ID,并在修复正常后找到了丢失的字母。 So, check your iOS Bundle ID in your Facebook app settings for Native iOS App is 'exactly' the same as in your Bundle identifier defined in XCode for your target app.
因此,请在您的本机iOS应用程序的Facebook应用程序设置中检查您的iOS捆绑包ID是否与在XCode中为目标应用程序定义的捆绑包标识符“完全相同”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.