naldikt
naldikt

Reputation: 53

FB SDK 3.0 Do I need to extend access token or is it automatic?

Based on http://developers.facebook.com/roadmap/offline-access-removal/ Exception (Section) 3: If I use the "newer" SDK, it'll save the access token for me and will extend it automatically.

My questions:

[1] When it says "newer" SDK - does anyone knows whether this is referring to 3.0?

[2] Is there a way to manually assign FBSession an access token? FBSession's accessToken property is read-only. My situation: in my app user logs in using their email address, and on my server the email address is linked to a facebook access token. Now if user logs in to my app in another device, my server will return FB access token in auth response; I would like FBSession to be assigned this same access token so they don't have to reauthenticate FB and hope the access token extending process is just happening magically.

Upvotes: 5

Views: 2446

Answers (1)

just.jimmy
just.jimmy

Reputation: 954

Pretty sure you don't have to worry about anymore. Looking at the code, FBSession takes care of extending the token & expiry date.

https://github.com/facebook/facebook-ios-sdk/blob/master/src/FBSession.m

Upvotes: 3

Related Questions