TheFootballSocialClub/FSCOAuth2FacebookGrantBundle — pull request #1 by ludofleury (2012-12-04 03:55:09+00:00)
Title: Add an optional way to keep the facebook access token for the current user

Since there is no event "post grant" nor no way to cleanly extends the main lib, this is a basic solution to keep the facebook access token used during the grant.

__Warning__: for the persistence layer, __it__ actually __relies__ heavily __on Doctrine__ UoW flush feature.
Yet, if you need to use another persistence layer which doe'snt provide this kind of feature but handles relations, you could provide your own access token manager service to the FOSOAuthServerBundle and use the updateToken method:

```php
getUser()->getFacebookAccessToken();
// sync with your storage...
}
```