Either you set the token variables manually or you let the class retrieve them from some storage.
The default base class implementation uses sessions. That is not suitable for making calls to the API when the user is not present. So, if you do not set the variables manually before calling the class, you need to use a different storage for the tokens, like for instance a SQL database.
I have just published an article on this. Take a look here.
phpclasses.org/blog/package/7700/po
...
The tokens are not the only information that is stored. The class also stores for instance the expiry time for OAuth servers that limit the lifetime of a token.
The expiry time depends on the API. For LinkedIn it seems to be 60 days.