Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting access token from facebook SDK in iOS

Tags:

facebook

ios5

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

like image 200
Naveen Avatar asked Nov 28 '22 08:11

Naveen


1 Answers

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]

like image 133
Sugendran Avatar answered Dec 07 '22 00:12

Sugendran