2014-01-28 49 views
0

我有一个iOS应用程序和用户通过Facebook或Twitter登录。我使用social.framework来验证用户身份,我需要将他们的访问令牌发送到服务器来验证他们的凭据。如何从ACAccount对象获取访问令牌Social.framework

如果[NCAccount凭证]始终对苹果文档返回空值,如何获取访问令牌?

https://developer.apple.com/library/ios/documentation/Accounts/Reference/ACAccountClassRef/Reference/Reference.html#//apple_ref/doc/uid/TP40011019

回答

-1

我使用这个库叽叽喳喳 https://github.com/kbegeman/Twitter-Reverse-Auth

而且facebook.framework对于Facebook用下面的函数

[FBSession openActiveSessionWithReadPermissions:permissions 
              allowLoginUI:YES 
            completionHandler:^(FBSession *session, FBSessionState state, NSError *error) {}]; 
相关问题