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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:28:01+00:00 2026-05-24T22:28:01+00:00

I am developing an Android app which requires authentication via facebook account. For the

  • 0

I am developing an Android app which requires authentication via facebook account.
For the authentication, I used the Tutorial and Project provided by Facebook

When the mobile does not have the standard facebook app already installed, the authentication works perfectly and my application works.
On the other hand, if the mobile has the Facebook application installed, my application stops working and it goes straight to facebook app after the authentication.

Does anyone knows how can i solve that?

  • 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-24T22:28:02+00:00Added an answer on May 24, 2026 at 10:28 pm

    It appears you are using Single Sign On which btw is the right thing to do and it will authorize via Facebook app if it exists on the phone, else redirect via webview dialog. Have you added keyhash of your app into the facebook developer’s app?

    More instructions on SSO and keyhash here:

    https://developers.facebook.com/docs/guides/mobile/#android

    Few notes about keyhash:

    • Key Hash Reference Doc: Signing Your Applications.

    • Keytool command not found error: Keytool is provided by the standard Android SDK. if you get ‘Command not found’ error, you need to either add its path to your global ‘PATH’ or go to the folder to run this command. Standard location on Windows is C:\Program Files (x86)\Java\jdk1.6.0\bin and for MAC, its /usr/bin

    • Openssl: If you don’t have openssl, install it from here: Windows, MAC. For Mac, follow the instructions here.

    • Invalid Key Hash: The keytool silently generates keyhash regardless of unknown debug.keystore location or wrong password. When running the sample app, use adb logcat to track errors. The error returned for invalid key is Facebook-authorize( 2631): Login failed: invalid_key. Visual indication of invalid keyhash is when SSO slides in and out of the Facebook app without prompting any screen or GDP dialog. If you get this error, there are few possibilities:

      • keytool couldn’t find your debug.keystore location. Make sure you provide the correct path. One way to know is keytool should always ask for password when it has the correct location.

      • The password you entered is incorrect. The default Keystore password: “android”.

      • You need to click ‘Save Changes’ when adding keyhash to the Developer App on Facebook.

      • If this all fails, try using cygwin or linux box to generate hashkey.

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

Sidebar

Related Questions

I am developing an android app which requires search functionality. My app contains action
I am developing an android app which gives access to a form via a
I am developing an android app which has Facebook integration in it. I have
I am developing an Android app which needs to poll a specific webpage in
I am developing an android app in which i want to send (name,email, cell
I'm developing a Android app using Phonegap - Is there any way in which
Currently I'm developing an Android app which draws a point on the coordinates input
I am developing an Android app which creates a folder in SD Card and
I am developing an android app in which i need to display images after
I'm currently developing an Android app, which loads events from a server using JSON

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.