1
我想配置一個應用程序來使用社交帳戶進行登錄(twitter,facebook和G +)我使用SimpleAuth從這個GitHub首先與Facebook,我創建了一個帳戶並註冊我的包標識符,然後我從我的Facebook和APP_ID提供的配置使用iOS SimpleAuth
SimpleAuth.configuration[@"facebook"] = @{@"app_id":@"1075396712543857"};
然後我點擊菜單項後調用的函數權威性:
[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)}}}
任何人都可以請點我什麼,我做錯了,或者如果存在可用於實現社會登錄
感謝
爲什麼我得到-1?我試過這個答案,它的工作。 –