Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store'n'load access token #8

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

mastacheata
Copy link

As I already mentioned in the comments of your blog I wanted to have the ability to store user's access tokens to somewhere and reload them if needed in order to make offline requests on their behalf.
Therefore I changed your library to inlcude getters and setters for the access token.

If you like, feel free to add this patch to your original project.

{
$token = $this->_get('token');

if ( !empty($token) && (empty($token->expires) || $token->expires == 0 ) )
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Storing the token somewhere else than in the user's session only makes sense if it's an offline access token that doesn't expire.

nicholasruunu and others added 6 commits April 17, 2011 18:09
Conflicts:
	application/libraries/facebook.php
Native support for background storage of access tokens.
Exception handling is still to be completed and an option for multicurl is planned
Native support for background storage of access tokens.
Exception handling is still to be completed and an option for multicurl is planned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants