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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:08:06+00:00 2026-06-15T01:08:06+00:00

I use facebook for android sdk for SSO. My activity calls fb.authorize() function to

  • 0

I use facebook for android sdk for SSO.

My activity calls fb.authorize() function to do OAuth. In this function I give a reference to the DialogListener object that is responsible to take proper actions depending on OAuth results. It is possible that the OS has killed the activity by the time user returns from FB App and the DialogListener Object is lost. In that case there’s no way to get the AccessTokens which we were supposed to get in DialogListener.

How to handle this situation?

  • 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-15T01:08:07+00:00Added an answer on June 15, 2026 at 1:08 am

    I am answering this myself.

    Facebook app after doing OAuth returns results in an intent data which we get in onActivityResult(); It is required to call mFB.authorizeCallback() in onActivityResult.

    If you look into the source of this function, you will know how to extract it from the intent data. And doing that you can get access tokens in onActivityResult.

    Here’s the link to the source
    https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/com/facebook/android/Facebook.java#L417

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

Sidebar

Related Questions

I'm trying to use the Facebook SDK for Android mobile applications. I've in this
After finally getting the Android Facebook SDK to properly import thanks to this ,
I am a beginner of android programming. I am trying to use facebook SSO,
I'm completely flabbergasted by the Facebook SDK for Android--it's quite challenging to use effectively.
I am trying to use the facebook sdk for android, available here . I
I'm trying to use Facebook SDK in my Android app. Here's the snippet: Facebook
i'm trying to use the Facebook SDK and Facebook Object in order to use
I want to use Facebook SDK on Android to send Like statuses using Open
I use facebook-android-sdk-3.0.1.b to integrate my Android app with Facebook. After user has logged
I have a problem that I want to use Facebook SDK in Android but

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.