Shahar Nechmad
Shahar Nechmad

Reputation: 119

How to extend access token with the new iOS SDK 3?

Using the new iOS SDK 3.0, how do you extend access tokens? Is this still necessary?

Upvotes: 0

Views: 826

Answers (2)

Nils Munch
Nils Munch

Reputation: 8845

The Facebook SDK handles it itself.

You can reach it any time like so:

NSString *accessToken = [FBSession activeSession].accessToken;

This will return the accessToken or a nil if no token is set. You can even define a token caching ruleset on the session. Enjoy.

Upvotes: 2

just.jimmy
just.jimmy

Reputation: 954

I think when you use FBSession it handles that internally.

Upvotes: 0

Related Questions