Objective-c – iOS 6 facebook sdk 3.1.1 login error

facebookios6iphoneobjective c

I tried to login using facebook followed the facebook tutorial in https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/ to implement it but after the alert view asking me to allow my app use your data and press ok the error

The operation could not be completed . (com.facebook.sdk error 2)

note that iam in the simulatore and i entered FB my account inside setting and it is logged correctly.

debugging the issue it and the result of the error is as following :

(NSError *) $1 = 0x0ac77290 Error Domain=com.facebook.sdk Code=2 "The operation couldn’t be completed. (com.facebook.sdk error 2.)" UserInfo=0xac77450 {com.facebook.sdk:ErrorLoginFailedReason=com.facebook.sdk:ErrorLoginFailedReason, com.facebook.sdk:ErrorInnerErrorKey=Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: no stored remote_app_id for app" UserInfo=0xaa91d40 {NSLocalizedDescription=The Facebook server could not fulfill this access request: no stored remote_app_id for app}}

Best Answer

You need to provide your app bundle id in app settings on developers.facebook.com

iOS 6 Facebook posting procedure ends up with "remote_app_id does not match stored id"

Related Topic