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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:42:31+00:00 2026-06-16T13:42:31+00:00

I am trying to add facebook sdk 3.0 for android to my app. I

  • 0

I am trying to add facebook sdk 3.0 for android to my app.

I am trying to login using the function

OpenSessionWithAllowLoginUI(boolean allowLoginUI)

when state of session changes the function

SessionStateChanged(session, state, exception)

is called. These functions are given below.

 public void OpenSessionWithAllowLoginUI(boolean allowLoginUI)
    {

    Session.openActiveSession(this, true, new Session.StatusCallback()
    {
           @Override
           public void call(Session session, SessionState state, Exception exception)
           {
               SessionStateChanged(session, state, exception);
           }
    })
}

public void SessionStateChanged(Session session, SessionState state, Exception exception)
{
    switch (state)
    {
        case OPENED:
              if (exception == null)
              {
                  facebook = new Facebook("6346513133546");
              }

            break;

        case CLOSED:
        case CLOSED_LOGIN_FAILED:
            Session.getActiveSession().closeAndClearTokenInformation();
            facebook = null;
            break;

        default:
            break;
    }
}

On calling the function session state changes twice. First it shows session state as “OPENING” then after logging in and clicking “ok” to the permissions popup, the session state changes to “CLOSED_LOGIN_FAILED”. The session state is never “OPENED” and i get the following exception

remote_app_id does not match stored id

Can anyone please tell me what am doing wrong here.

  • 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-16T13:42:32+00:00Added an answer on June 16, 2026 at 1:42 pm

    The problem was that i was not giving the correct key hash. I generated key hash using keytool -exportcert -alias androiddebugkey -keystore .android/debug.keystore | openssl sha1 -binary | openssl base64 and it worked

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

Sidebar

Related Questions

I'm trying to add facebook connect login to my phonegap/cordova app using the https://github.com/mgcrea/cordova-facebook-connect
I am using the Facebook SDK for Android 3.0, what I am trying to
I'm trying to integrate the Facebook Android SDK in my app, but I can't
Hi I am trying to add facebook connect to my Android app , I
I'm using Backbonejs for my app and I'm trying to add Facebook comments and
I'm trying to connect to Facebook's graph api using the PHP-SDK. The session is
I'm trying to add Facebook's comment count to my website. I'm using the Facebook
I m trying to add javascript variable value to facebook feed text function as
I am trying to add an app request from a user using Koala/Omniauth @graph
I am trying to add in the Facebook SDK binaries but I keep getting

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.