简体   繁体   中英

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 . I have created a Project using this Facebook SDK and was working ok till the Facebook native iPhone App was not installed. When I installed the Facebook App I can no longer authorize my App. When I try to authorize, the authorization is done in the Facebook's native app instead of Safari. I get an error "The operation couldn't be completed.(com.facebook.FBiOSSDK error 2.)"

I am also receiving this error url:

fb4* * *2://authorize#error_description=Invalid%2BIOS%2Bbundle%2BID&error=unknown%5Ferror

How can I solve this problem? any idea?

I am using xcode 4.2 in OSX Snow Leopard

It sounds like your settings under developer.facebook.com for the app is incorrect.

Make sure that under your app settings that;

"iOS bundle ID" under "Native iOS App" is set to your apps package name. 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM