在iOS中从Facebook SDK获取访问令牌 [英] Getting access token from facebook SDK in iOS

查看:116
本文介绍了在iOS中从Facebook SDK获取访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在iOS 5中获取登录用户的访问令牌吗?如果是这样,可以如何实现?

Is it possible to get the access token for the logged in user in iOS 5? If so, how this can be achieved?

推荐答案

如果您使用当前版本(此时为v3.2.1)的SDK,您可以使用以下内容获取用户的访问令牌:

If you're using the current version (v3.2.1 at this time) of the SDK you can get to the user's access token with the following:


[[[FBSession activeSession] accessTokenData] accessToken]

这篇关于在iOS中从Facebook SDK获取访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆