这是关于在Facebook上发帖的第三个问题.
虽然这可能是Mac OS X的重复Facebook登录失败 - 没有为应用程序存储remote_app_id但我决定发布单独的问题,因为我们在这里有iOS而不是MAC OS.
前几天我发布了一个问题iOS 6 Facebook发布程序最终以"remote_app_id与存储的id不匹配"错误问题仍然是一样的我无法执行帖子但现在我有一个错误:
error is: Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: remote_app_id does not match stored id." UserInfo=0xa260270 {NSLocalizedDescription=The Facebook server could not fulfill this access request: remote_app_id does not match stored id.}
您在我之前的问题中可能找到的代码.
有谁知道发生了什么?
什么是远程和存储的应用程序ID?
我正在使用Facebook SDK 3.1.1在我的iOS应用程序中实现FB Connect.这在新的FB集成(在iOS上登录)或通过Web视图回退到正常授权(在两种情况下都没有安装本机Facebook应用程序)的简单情况下工作正常.我在iOS级别切换帐户时会出现此问题.注销并使用其他FB用户帐户登录.
要登录/授权我执行:
[FBSession openActiveSessionWithReadPermissions:nil allowLoginUI:allowLoginUI
completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {
[self sessionStateChanged:session state:state error:error];
}];
Run Code Online (Sandbox Code Playgroud)
如果然后每次获得FBSessionStateClosedLoginFailed,即使我执行了closeAndClearTokenInformation达到该状态的时间:
- (void)sessionStateChanged:(FBSession *)session
state:(FBSessionState) state
error:(NSError *)error
{
NSLog(@"Session State Changed: %u", [[FBSession activeSession] state]);
switch (state) {
case FBSessionStateOpen:
break;
case FBSessionStateClosed:
case FBSessionStateClosedLoginFailed:
NSLog(@"FBSessionStateClosedLoginFailed ERROR: %@", [error description]);
[[FBSession activeSession] closeAndClearTokenInformation];
break;
default:
break;
}
Run Code Online (Sandbox Code Playgroud)
但是,每次重试都会收到相同的状态.我的日志说明如下:
FBSDKLog: FBSession **INVALID** transition from FBSessionStateCreated to FBSessionStateClosed
FBSDKLog: FBSession transition from FBSessionStateCreated to FBSessionStateCreatedOpening
FBSDKLog: FBSession transition from …Run Code Online (Sandbox Code Playgroud)