If you do not want your Facebook access_token to expire, you need to include 
offline_access in the scope when requesting it.

-- Dick

On Feb 13, 2012, at 1:12 PM, Tiziano Rossi wrote:

> Hi to all!
> 
> I use everyauth in my app for permit facebook authentication...
> After that i want to use tha accessToken to performe some graph api
> call... (maybe client side for performance reason).
> What is the correct way to do this?
> I got the accessToken returned from findOrCreateUser, but this can
> become invalid for variuos reason... How everyauth handle the
> exiration of facebook accessToken?
> In case that i save the accessToken in database (in order to use it in
> future session) i can't know when it become invalid...
> 
> I think that is the same thing for other platform (twitter, github,
> etc...)
> 
> How do you handle this scenario?
> 
> Thanks to all!
> Tiziano.
> 
> P.S. One possibility is to ask another accessToken from client-side bu
> javascript (but i think that this is not a clean solution).
> 
> -- 
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to