i am using the facebook android sdk, which i just downloaded from github.
i understand that the access token is just valid for a very limited time and needs to be extended every time the app gets started as described in the doc. https://developers.facebook.com/docs/mobile/android/build/#extend_token
there are 2 problems with this:
1) the function extendAccessTokenIfNeeded() does not update when the token has already expired (after just one or two hours!)
2) the other problem, when i bypass the first one, is that the required intent for extending the token can not be found.
from the SDK source:
Intent intent = new Intent();
intent.setClassName("com.facebook.katana",
"com.facebook.katana.platform.TokenRefreshService");
...
ResolveInfo resolveInfo =
context.getPackageManager().resolveActivity(intent, 0);
if (resolveInfo == null) {
return false;
}
resoveInfo is allways null here.
any ideas on how to extend the token? i don't wanna call the authenticate() function all the time the toked expires. that would totally destroy the user experience!
thx Simon