ios - 使用 iOS 简单验证

标签 ios facebook authorization

我正在尝试配置一个应用程序以使用社交帐户登录(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/

相关文章:

ios - iOS 8 上的 Facebook 登录;登录切换后应用程序无法运行

angularjs - Angular JS $locationChangeStart 获取下一个 url 路由对象

node.js - 使用 Web3.js HttpProvider 调用 API 时如何向 Ankr 提供凭据?

sql - Apache Spark 中的授权

sql - SQLite 中的 Select 语句识别行号

ios - 禁止用户在编辑文本字段时与 UI 交互(键盘除外)

ios - CCLabelTTF 文本对齐

ios - swift 中的 dispatch_block_t 相当于什么?

javascript - 如何使用 Cordova 在 iOS 上向 Facebook 好友发送邀请?

facebook - 尝试创建 Facebook Chatbot 时获取和 "Error, wrong validation token"