0
votes

I can store access token on my RESTful server with Facebook SDK 2.0 because it has Facebook.getAccessToken() and Facebook.setAccessToken(). Now I want to apply new SDK for my new app. SDK 3.0 doesn't have setAccessToken. How to do?

Ref link: https://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/#advanced

1

1 Answers

1
votes

If you check out v3.0.2b, there is a new method in the Session class that will allow you to import an access token:

openWithImportedAccessToken(String accessToken, Date expirationTime, Date lastRefreshTime, AccessTokenSource accessTokenSource, List permissions, Session.StatusCallback callback)

Opens a session based on an existing Facebook access token. You can find more details in the reference docs: https://developers.facebook.com/docs/reference/android/3.0/Session