BASIC PROBLEM: I want my app to be able to make calls to the Facebook graph api about authorized users even while the user is away.
For example, I want
In the last Facebook PHP SDK 3.2.0 you have a new function setExtendedAccessToken() that you have to call before getAccessToken();
setExtendedAccessToken()
getAccessToken();
Like this:
$user = $facebook->getUser(); $facebook->setExtendedAccessToken(); //long-live access_token 60 days $access_token = $facebook->getAccessToken();