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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:22:33+00:00 2026-05-26T08:22:33+00:00

I am developing an app which uses facebook integration. I am trying to receive

  • 0

I am developing an app which uses facebook integration. I am trying to receive the access_token and expires_in tokens from the facebook library classes. Once i am logged in I get the access_token correctly but i always get expires_in token always 0. And because of that I isSessionValid() method always returns false. Kindly let me know if anyone has faced this issue and solved it.

My code runs perfectly fine when i do not have the Facebook app installed in the emulator. I get the webview and I can log in and update status. But when I install Facebook app, clicking on the update status menu option opens the Facebook app, I get redirected to the permissions page and then I get an error saying ” Failed to receive access token”. This is infact because of the expires_in token being 0.

i do not want to ask the users of the app to uninstall the Facebook app if they have installed. kindly let me the solution to this problem.

Thanks,
Punit

  • 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-26T08:22:34+00:00Added an answer on May 26, 2026 at 8:22 am

    If you put permission offline_access, the token expiry is 0.

    For any one else having this issue (if you had put offline_access permission and later removed) follow the steps:

    • Go to your facebook profile setting and remove your app.
    • and then do login again.
    • Give permission to your app again.

    Alternately you can do this:

    • Go to your facebook profile setting > Apps > Your_App and remove “Access my data any time” permission.
    • Save changes made.
    • Re-run Your_App(i.e. with no offline_access permission now).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was developing app which uses Facebook API authentication for user login. But sometimes
I'm developing a facebook app with rails that uses external apis from my own
Developing a brand new schema/app which uses hibernate to create tables from pojo's. My
I'm currently developing an app which uses the built-in Camera. I call this snippet
I'm currently developing an app which uses tabs and google map. What I want
TickZoom is a very high performance app which uses it's own parallelization library and
I'm developing an application for Google App Engine which uses BigTable for its datastore.
I'm developing an app which uses Spring quite heavily. Spring and the Tomcat Security
I am developing an app which uses tabs. I want to customize tab look.I
Im developing an app which uses the tcp connection. currently im communicating using hard

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.