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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:27:14+00:00 2026-05-26T15:27:14+00:00

I obtained a key for my Android/Facebook app using the following: keytool -exportcert -alias

  • 0

I obtained a key for my Android/Facebook app using the following:

keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

I gave this to Facebook and the app now works perfectly within the emulator, both with and without the Facebook app installed. However, when I packaged the app and put it on my phone (HTC Desire), I get the invalid_key error when authenticating. Could anyone shed any light on why this is happening? Do I need to use a different key?

  • 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-26T15:27:14+00:00Added an answer on May 26, 2026 at 3:27 pm

    yes… you need to use the same key you use for actually compiling the app (the one that you use in the export process) otherwise it mismatches.

    It’s a (small) PITA, you need to keep them both on hand and swap them out, so that when you’re debugging you’re using one and when you actually compile your apk you use the other.

    I’ve gotten into the habit of just quickly compiling my apk and using adb to install/uninstall it onto my attached device, so, I don’t bother with the debug version at all… but if you prefer you can just keep swapping them out on the Facebook App editor page.

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

Sidebar

Related Questions

Just curious - is there any risk in using a public/private key obtained from
i am trying to run google map tutorial using following link http://mobiforge.com/developing/story/using-google-maps-android followed all
I just obtained a debug Google Maps API key for my new MacBook, and
This has to be obtained from a remote machine. The following query works not
In C++ using delete to free memory obtained with malloc() doesn't necessarily cause a
The app works fine in debug. But when I build it in release mode,
I am using a string username as the primary-key of a table, But when
I have obtained a Google Maps API key for my domain. The examples provided
In my app I have a database which must be protected with a key
Is set of objects obtained with Entity Framework ordered by primary key by default?

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.