Facebook API - getting a token that never expires -


i generate token never expire.

i have "manage_pages" permission, , if user has "fanpage" token never expire.

but if user doesnt have fanpages created, token expire after 2 months.

i using newest api (php sdk).

this login:

$session = $helper->getsessionfromredirect();  $token = $session->gettoken(); 

and after that, doing that:

$accounts = new facebookrequest($session,  'get',  '/me/accounts?fields=picture,access_token,name'); 

would nice if of have idea how can token never expires allthough user hasnt fanpage

the tokens valid forever app access tokens , extended page access tokens. can´t user token valid forever, , never need anyway. if user did not visit app more 2 months, not use app anymore. can refresh user token though, using fb.getloginstatus whenever user visits app.

here´s need know access tokens:


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -