我正在尝试配置一个应用程序以使用社交帐户登录(twitter、facebook 和 G+)我正在使用此 GitHub 中的 SimpleAuth首先使用 Facebook,我创建了一个帐户并注册了我的包标识符,然后我从 facebook 获取了我的 app_id 并将其提供给配置
SimpleAuth.configuration[@"facebook"] = @{@"app_id":@"1075396712543857"};
然后我在单击菜单项后调用了 auth 函数:
[SimpleAuth authorize:@"facebook" completion:^(id responseObject, NSError *error) {
NSLog(@"\nResponse: %@\nError:%@", responseObject, error);
但是我从 API 收到了这个错误
2016-07-27 18:56:58.982 Deals[6922:2710218]
Response: (null)
Error:Error Domain=SimpleAuthErrorDomain Code=102 "(null)" UserInfo=
{NSUnderlyingError=0x156852770 {Error Domain=com.apple.accounts Code=7 "The
Facebook server could not fulfill this access request: Error validating access
token: Session does not match current stored session. This may be because the
user changed the password since the time the session was created or Facebook
has changed the session for security reasons. (452)" UserInfo=
{NSLocalizedDescription=The Facebook server could not fulfill this access
request: Error validating access token: Session does not match current stored
session. This may be because the user changed the password since the time the
session was created or Facebook has changed the session for security reasons.
(452)}}}
任何人都可以指出我做错了什么,或者是否有其他工具可以用来实现社交登录
谢谢
最佳答案
@Mhand7 你需要先登录 Facebook 。转到设置->单击 Facebook-> 并提供您的登录 ID 和密码。您的问题将得到解决。
关于ios - 使用 iOS 简单验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38618145/