Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7529851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:45:19+00:00 2026-05-30T04:45:19+00:00

i am using the facebook android sdk, which i just downloaded from github. i

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:45:20+00:00Added an answer on May 30, 2026 at 4:45 am

    The facebook android sdk make a connection to the refresh token service to extend the access token, but the service is part of Facebook android app, which means that your app user needs to install native Facebook first.

    Alternative:

    1. You can use graph api /auth/access_token described in
      developers.facebook.com/docs/offline-access-deprecation/

    2. I try the request from facebook iOS SDK and it works:

    GET api.facebook.com/method/auth.extendSSOAccessToken?access_token=

    or in json format.
    GET api.facebook.com/method/auth.extendSSOAccessToken?format=json&access_token=

    Please prefix https:// to all the urls above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i downloaded the facebook android application example from github and imported it using the
I am developing an application which is using facebook sdk for android to log
I have build an android application in which I've integrated faceboook using the facebook-sdk
I have a lot of apps published using the FB android sdk github.com/facebook/facebook-android-sdk All
I am using Facebook sdk, (https://github.com/facebook/facebook-android-sdk/) to show the NewsFeed. I can be show
I am using the following android fb connect library. http://github.com/facebook/facebook-android-sdk/ problem is after successful
I'm gleaning from this question [ Facebook Connect Won't Validate that using Facebook Connect
Good evening. I'm developing an android application that uses Facebook SDK. I've no problem
In my Android app, I log in using the Facebook SDK and display posts
I want to check in using facebook android sdk (graph api), I am trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.