facebook/facebook-php-sdk-v4 — pull request #154 by yguedidi (2014-07-15 17:27:46+00:00)
Title: [WIP] Better AccessToken

- It now serializable, as it the main credential data to call graph, it should be stored.

I have a problem with `isValid()`, I think sometimes you want check validity only with expires, without made an addition Graph API call to `/debug_token`.
I propose to have two access token classes:
- a `SimpleAccessToken` class like the current one, without full validity checks
- an `AccessToken` class than extends above one, and perform the graph call in constructor, and have accessors to all new useful data like user ID, scope, ... that are deeply associated to the access token.

About naming, I'm not sure, it can be `AccessToken` for the simple one and `FullAccessToken` for the second one.

@gfosco, @SammyK some thoughts ?