Falling back to loading access token from NSUserDefaults because of simulator bug

谁都会走 提交于 2019-11-30 10:46:38

I have this problem, too. It seems to be caused by an the Facebook SDK's Login Access Token. It caches just fine on a real device, but not on the simulators. Try running the app from a physical device.

You can ignore this warning, it's hard coded in the FacebookSDK when using the iOS Simulator. The SDK does contain a bug though which prevents the simulator from caching the access token.

You can fix this by adding the following line:

key = [NSString stringWithFormat:@"%@_fix", key];

in FBSDKKeychainStore.m:94 and FBSDKKeychainStore.m:135 just before:

[[NSUserDefaults standardUserDefaults] setObject:value forKey:key];

I had the same problem. I tried to run in real device and this show error with OAuth Login Then I just turn OAuth Login on and everything works well

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!