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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:59:09+00:00 2026-06-05T14:59:09+00:00

I have two activities that need to use my Facebook object. The first activity

  • 0

I have two activities that need to use my Facebook object. The first activity does the logging in process the second needs the Facebook object to get a list of friends. I am using a class that extends Application to transport the Facebook object from the first activity to the second.

This works fine, but when I logout and login on the first activity I get this error when trying to use the Facebook object on the second activity

    {"error_code":104,"error_msg":"Requires valid signature","request_args"

I am updating the Facebook object when I log back in and I am updating the Facebook object in my Application class. Any idea why I might be getting this error?

  • 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-05T14:59:10+00:00Added an answer on June 5, 2026 at 2:59 pm

    You don’t need to pass the Facebook object from one activity to another, instead save the access token and expiration time into the preferences and get them in the other activity.
    This is also good if the user returns to the app later on.

    You can use the SessionStore class from the official facebook examples, which will make it easier to save/get the auth info.

    So in the first activity you can:

    Facebook facebook = new Facebook("APP_ID");
    
    if (!SessionStore.restore(facebook, this)) {
        // start the authentication process
    }
    else {
        // start the other activity
    }
    

    And in the second activity:

    Facebook facebook = new Facebook("APP_ID");
    
    if (!SessionStore.restore(facebook, this)) {
        // start the first activity to authenticate the user
    }
    else {
        // use the facebook object to make graph requests
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two activities. In first I come to the second activity from first
suppose that you have two activities A(which is the main activity) and B when
I have two activities in which I need to pass an object array between
I have two activities, A and B. Activity A implements a LocationListener that periodically
I have a problem. I have two refresh button in differents activities that It
I have an app that so far consists of two Activities: The Main Menu
This is my situation. I have two activities: ONE and TWO. In TWO activity
I have two Activities: Activity A and Activity B: 'A' is my Main Activity,
I have two activities in Recent Applications. For those that don't know, Recent Applications
I have two activities in an android application, each has a button that goes

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.