Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by davixe · Aug 25, 2013 at 01:13 AM · androidfacebookprime31

remote_app_id does not match stored id (with different hashes)

I'm working with Unity and Prime31 to build a simple Facebook app. Now I'm trying to run the sample app that comes with Prime31 but I'm getting the following error:

 Facebook login failed: remote_app_id does not match stored id 

After a lot of research and reading, I try different ways to get my hash key, I try with differents OpenSSL versions with the comand above:

 "C:\Program Files\Java\jre7\bin\keytool" -exportcert -alias androiddebugkey -keystore "~/.android/debug.keystore" | "C:\Program Files (x86)\GnuWin32\bin\openssl" sha1 -binary | "C:\Program Files (x86)\GnuWin32\bin\openssl" base64

And I get the following key from the windows console (which don't ask me for a password):

 3ZLW/TAqPvR43Zh79ejFQDOdka8=

And if I put that code on my mainactivity:

 try {
         PackageInfo info = getPackageManager().getPackageInfo(
                 "com.unity3d.player", PackageManager.GET_SIGNATURES);
         for (Signature signature : info.signatures) {
             MessageDigest md = MessageDigest.getInstance("SHA");
             md.update(signature.toByteArray());
             Log.e("MY KEY HASH:",
                     Base64.encodeToString(md.digest(), Base64.DEFAULT));
         }


I get that hash:

 h1e2HgQWtRDA/MDt4LDJTOUQdm8=

With both keys, I got the same error.

It's a sample app, and I think i follow all the steps on the doc, it shouldn't be that hard... :(

Thx for the help, and sorry for my english

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by privman · Oct 16, 2013 at 10:35 AM

There are lot of possible causes for this error, and the most common of causes involve using one keystore or alias when calculating the hash and a different keystore/alias when packaging the app. Have a look through the answers in this thread: http://stackoverflow.com/questions/4388992/key-hash-for-android-facebook-app There are quite a few relevant tips there

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by jaheroth · Sep 19, 2017 at 03:19 PM

Try first running:

"C:\Program Files\Java\jre7\bin\keytool" -exportcert -alias androiddebugkey -keystore "~/.android/debug.keystore"

What you may find is that you get an error message. In this case, you are getting the hash of this error message, not of the actual data you want. This will obviously result in problems.

I got the exact same hash, when I was adding the hashing ending to something that generated the message:

keytool error: java.lang.Exception: Keystore file does not exist: ~/.android/debug.keystore

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Prime31: Posting To Facebook 0 Answers

unity androrid facebook login,user cancelled facebook login problem. 0 Answers

How to make prime31 SocialNetworking plugin demo work? 0 Answers

Finding the “Android class name” in “AndroidManifest.xml” generated by Unity3D 0 Answers

Connect to Android in Unity 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges