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 8285321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:26:30+00:00 2026-06-08T11:26:30+00:00

I just realised that I don’t get any more information about the expiration date

  • 0

I just realised that I don’t get any more information about the expiration date of the access token. Precisely I’m talking about the facebook SDK for android where I call the authorize() method with a DialogListener callback as shown in the code below.

I haven’t looked at it for some weeks btu I know it was working before, now as I return to the project I find the call of facebook.getAccessExpires() returning 0 every time.

My first thought was the API might be broken and some changes applied I didn’t noticed. However using an iPhone project of about same age it seems to receive an expiration date. (From what I can see with my lack of objective-c skills ^^).

Next I checked out commit 5a72863793521a96f5a9f4fb72960a27b98e441d from facebook’s github ’cause I started to implemented supporting FB around this time and thought this way I might see if the SDK changed in some dramatic way.

So far all my efforts been in vain and I can’t think of a good reason where to track down this bug.

DialogListener dialogListener = new DialogListener(){
    @Override
    public void onComplete(Bundle values) {
        mPrefsEdit.putString(USER_ACCESS_TOKEN, facebook.getAccessToken() )
                  .putLong(USER_ACCESS_EXPIR, facebook.getAccessExpires() )
                  .commit();
        }
   //other required overrides
}

Facebook facebook = new Facebook(APP_ID);    
facebook.authorize(activity, APP_PERMISSIONS, Facebook.FORCE_DIALOG_AUTH, dialogListener);
  • 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-06-08T11:26:31+00:00Added an answer on June 8, 2026 at 11:26 am

    facebook stop providing access of offline access token permission. So access token will valid for very sort time (2-8 hour). See facebook blog for more details.

    This the main reason facebook.getAccessExpires() always return 0.

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

Sidebar

Related Questions

I've just realized that if I log out from facebook.com, the access token in
So, I was just coding a bit today, and I realized that I don't
EDIT 2: I have just realised that my HTML is only displaying the artist
I just learned about list comprehension, which is a great fast way to get
I just realized that I fundamentally don't understand how .NET/SQL Server transactions work. I
I just realized that I don't see a way to collect a string from
I just realized that this piece of code works well in Firefox but not
I just realized that the MySQLWorkBench destroys the target (makes a replacement) when performing
I just realized that I need to synchronize a significant amount of data collection
I just realized that the method Element.getElementsByTagName(someTagName) returns a nodelist of all elements in

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.